mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Expose powerpc_mb() to user-space. Currently needed for atomic.h users,
this may go away in the future.
This commit is contained in:
parent
a14c749f04
commit
d273b006c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111267
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue