diff options
author | benno <benno@FreeBSD.org> | 2002-06-29 10:00:07 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-06-29 10:00:07 +0000 |
commit | bb87c74c1bca310b3b188a28b267048b45a38f72 (patch) | |
tree | 63d7a1a141f596f9c377824e706ba1d33daf50e9 /sys/powerpc/include | |
parent | a55c84e3694311fd019a267dbfca5b9e164b8d4e (diff) | |
download | FreeBSD-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/powerpc/include')
-rw-r--r-- | sys/powerpc/include/cpufunc.h | 7 |
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) { |