Order newly added functions alphabetically.
Requested by: bde MFC after: 3 days
This commit is contained in:
parent
3ba9d9e926
commit
5be9d54a2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230538
@ -669,17 +669,6 @@ intr_restore(register_t rflags)
|
||||
write_rflags(rflags);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
xsetbv(uint32_t reg, uint64_t val)
|
||||
{
|
||||
uint32_t low, hi;
|
||||
|
||||
low = val;
|
||||
hi = val >> 32;
|
||||
__asm __volatile(".byte 0x0f,0x01,0xd1" : :
|
||||
"c" (reg), "a" (low), "d" (hi));
|
||||
}
|
||||
|
||||
static __inline void
|
||||
xsave(char *addr, uint64_t mask)
|
||||
{
|
||||
@ -692,6 +681,17 @@ xsave(char *addr, uint64_t mask)
|
||||
"a" (low), "d" (hi), "D" (addr) : "memory");
|
||||
}
|
||||
|
||||
static __inline void
|
||||
xsetbv(uint32_t reg, uint64_t val)
|
||||
{
|
||||
uint32_t low, hi;
|
||||
|
||||
low = val;
|
||||
hi = val >> 32;
|
||||
__asm __volatile(".byte 0x0f,0x01,0xd1" : :
|
||||
"c" (reg), "a" (low), "d" (hi));
|
||||
}
|
||||
|
||||
static __inline void
|
||||
xrstor(char *addr, uint64_t mask)
|
||||
{
|
||||
@ -768,8 +768,8 @@ u_int rgs(void);
|
||||
void wbinvd(void);
|
||||
void write_rflags(u_int rf);
|
||||
void wrmsr(u_int msr, uint64_t newval);
|
||||
void xsetbv(uint32_t reg, uint64_t val);
|
||||
void xsave(char *addr, uint64_t mask);
|
||||
void xsetbv(uint32_t reg, uint64_t val);
|
||||
void xrstor(char *addr, uint64_t mask);
|
||||
|
||||
#endif /* __GNUCLIKE_ASM && __CC_SUPPORTS___INLINE */
|
||||
|
Loading…
Reference in New Issue
Block a user