MFC r289824:

Add CLFLUSHOPT instruction wrappers.

MFC r290188:
Fix prefix on i386.
This commit is contained in:
kib 2015-10-30 10:02:57 +00:00
parent 1d3471fc07
commit 70c328a1bb
2 changed files with 14 additions and 0 deletions

View File

@ -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)
{

View File

@ -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)
{