svn commit: r234653 - head/sys/powerpc/include

Nathan Whitehorn nwhitehorn at FreeBSD.org
Tue Apr 24 13:37:44 UTC 2012


Author: nwhitehorn
Date: Tue Apr 24 13:37:43 2012
New Revision: 234653
URL: http://svn.freebsd.org/changeset/base/234653

Log:
  Switch the default I/O memory barrier to eieio, as it should be. This
  does not appear to cause any problems due to fixes elsewhere.
  
  MFC after:	2 months

Modified:
  head/sys/powerpc/include/pio.h

Modified: head/sys/powerpc/include/pio.h
==============================================================================
--- head/sys/powerpc/include/pio.h	Tue Apr 24 13:36:41 2012	(r234652)
+++ head/sys/powerpc/include/pio.h	Tue Apr 24 13:37:43 2012	(r234653)
@@ -39,11 +39,7 @@
  * I/O macros.
  */
 
-/*
- * Note: this should be eieio, but many drivers expect ordering with
- * main storage too.
- */
-#define powerpc_iomb() __asm __volatile("sync" : : : "memory")
+#define powerpc_iomb() __asm __volatile("eieio" : : : "memory")
 
 static __inline void
 __outb(volatile u_int8_t *a, u_int8_t v)


More information about the svn-src-head mailing list