diff options
author | grehan <grehan@FreeBSD.org> | 2003-02-22 22:58:13 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2003-02-22 22:58:13 +0000 |
commit | 9e23e010b0836a5077181c5e02436145cc3b007c (patch) | |
tree | 3d5e7a27a9a28225136fe366b6bb4d50ebb74ce5 | |
parent | e56303ef045508b5666b969dc67b9f540f4cba0c (diff) | |
download | FreeBSD-src-9e23e010b0836a5077181c5e02436145cc3b007c.zip FreeBSD-src-9e23e010b0836a5077181c5e02436145cc3b007c.tar.gz |
Expose powerpc_mb() to user-space. Currently needed for atomic.h users,
this may go away in the future.
-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> |