Add CLFLUSHOPT instruction wrappers.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
89907eb85e
commit
7eb36dd3f9
@ -106,6 +106,13 @@ clflush(u_long addr)
|
||||
__asm __volatile("clflush %0" : : "m" (*(char *)addr));
|
||||
}
|
||||
|
||||
static __inline void
|
||||
clflushopt(u_long addr)
|
||||
{
|
||||
|
||||
__asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr));
|
||||
}
|
||||
|
||||
static __inline void
|
||||
clts(void)
|
||||
{
|
||||
|
@ -85,6 +85,13 @@ clflush(u_long addr)
|
||||
__asm __volatile("clflush %0" : : "m" (*(char *)addr));
|
||||
}
|
||||
|
||||
static __inline void
|
||||
clflushopt(u_long addr)
|
||||
{
|
||||
|
||||
__asm __volatile(".byte 66;clflush %0" : : "m" (*(char *)addr));
|
||||
}
|
||||
|
||||
static __inline void
|
||||
clts(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user