diff options
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r-- | sys/powerpc/include/cpufunc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index fbbb501..87e5e90 100644 --- a/sys/powerpc/include/cpufunc.h +++ b/sys/powerpc/include/cpufunc.h @@ -29,6 +29,16 @@ #ifndef _MACHINE_CPUFUNC_H_ #define _MACHINE_CPUFUNC_H_ +/* + * Required for user-space atomic.h includes + */ +static __inline void +powerpc_mb(void) +{ + + __asm __volatile("eieio; sync" : : : "memory"); +} + #ifdef _KERNEL #include <sys/types.h> |