Add clwb().
Reviewed by: alc, markj Sponsored by: The FreeBSD Foundation Approved by: re (gjb) MFC after: 3 days Differential revision: https://reviews.freebsd.org/D17070
This commit is contained in:
parent
86890cbdd5
commit
fcee4d935b
@ -115,6 +115,13 @@ clflushopt(u_long addr)
|
|||||||
__asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr));
|
__asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static __inline void
|
||||||
|
clwb(u_long addr)
|
||||||
|
{
|
||||||
|
|
||||||
|
__asm __volatile("clwb %0" : : "m" (*(char *)addr));
|
||||||
|
}
|
||||||
|
|
||||||
static __inline void
|
static __inline void
|
||||||
clts(void)
|
clts(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user