MFC r289824:
Add CLFLUSHOPT instruction wrappers. MFC r290188: Fix prefix on i386.
This commit is contained in:
parent
1d3471fc07
commit
70c328a1bb
@ -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)
|
||||
{
|
||||
|
@ -96,6 +96,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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user