summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-04-24 13:37:43 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-04-24 13:37:43 +0000
commit337d2f2292803bdbaab0250394ad681a3c599e5b (patch)
treef95da1fabcfcc2bc1f55fb5a5d196e49ff1a6e4e /sys/powerpc/include
parentd5494b21d8777f15bcd6c25eb7badcf146b45713 (diff)
downloadFreeBSD-src-337d2f2292803bdbaab0250394ad681a3c599e5b.zip
FreeBSD-src-337d2f2292803bdbaab0250394ad681a3c599e5b.tar.gz
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
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/pio.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/powerpc/include/pio.h b/sys/powerpc/include/pio.h
index b44c94c..0994ed1 100644
--- a/sys/powerpc/include/pio.h
+++ b/sys/powerpc/include/pio.h
@@ -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)
OpenPOWER on IntegriCloud