From bb87c74c1bca310b3b188a28b267048b45a38f72 Mon Sep 17 00:00:00 2001 From: benno Date: Sat, 29 Jun 2002 10:00:07 +0000 Subject: Add an inline to call eieio. ("Enforce In-order Execution of I/O". I am not making this up.) --- sys/powerpc/include/cpufunc.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys') 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) { -- cgit v1.1