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

this may go away in the future.
This commit is contained in:
grehan 2003-02-22 22:58:13 +00:00
parent f6b22a92ae
commit 7acd29f1d6

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>