Add lfence().
MFC after: 1 week
This commit is contained in:
parent
879eedbc7b
commit
0220d04fe3
@ -289,6 +289,13 @@ popcntq(u_long mask)
|
|||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static __inline void
|
||||||
|
lfence(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
__asm __volatile("lfence" : : : "memory");
|
||||||
|
}
|
||||||
|
|
||||||
static __inline void
|
static __inline void
|
||||||
mfence(void)
|
mfence(void)
|
||||||
{
|
{
|
||||||
|
@ -154,6 +154,13 @@ cpu_mwait(u_long extensions, u_int hints)
|
|||||||
__asm __volatile("mwait" : : "a" (hints), "c" (extensions));
|
__asm __volatile("mwait" : : "a" (hints), "c" (extensions));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static __inline void
|
||||||
|
lfence(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
__asm __volatile("lfence" : : : "memory");
|
||||||
|
}
|
||||||
|
|
||||||
static __inline void
|
static __inline void
|
||||||
mfence(void)
|
mfence(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user