Expose powerpc_mb() to user-space. Currently needed for atomic.h users,

this may go away in the future.
This commit is contained in:
Peter Grehan 2003-02-22 22:58:13 +00:00
parent a14c749f04
commit d273b006c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111267

View file

@ -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>