summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-06-29 10:00:07 +0000
committerbenno <benno@FreeBSD.org>2002-06-29 10:00:07 +0000
commitbb87c74c1bca310b3b188a28b267048b45a38f72 (patch)
tree63d7a1a141f596f9c377824e706ba1d33daf50e9 /sys
parenta55c84e3694311fd019a267dbfca5b9e164b8d4e (diff)
downloadFreeBSD-src-bb87c74c1bca310b3b188a28b267048b45a38f72.zip
FreeBSD-src-bb87c74c1bca310b3b188a28b267048b45a38f72.tar.gz
Add an inline to call eieio.
("Enforce In-order Execution of I/O". I am not making this up.)
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/include/cpufunc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index 9e42009..869a314 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -102,6 +102,13 @@ mfdec(void)
}
static __inline void
+eieio(void)
+{
+
+ __asm __volatile ("eieio");
+}
+
+static __inline void
isync(void)
{
OpenPOWER on IntegriCloud