Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/cpufunc.h
Show First 20 Lines • Show All 830 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static __inline void | static __inline void | ||||
intr_restore(register_t rflags) | intr_restore(register_t rflags) | ||||
{ | { | ||||
write_rflags(rflags); | write_rflags(rflags); | ||||
} | } | ||||
static __inline void | |||||
slac(void) | |||||
jhb: s/slac/stac/? (I don't think this is used in any C code though as it wouldn't compile if so?) | |||||
{ | |||||
__asm __volatile("slac" : : : "cc"); | |||||
} | |||||
static __inline void | |||||
clac(void) | |||||
{ | |||||
__asm __volatile("clac" : : : "cc"); | |||||
} | |||||
enum { | enum { | ||||
SGX_ECREATE = 0x0, | SGX_ECREATE = 0x0, | ||||
SGX_EADD = 0x1, | SGX_EADD = 0x1, | ||||
SGX_EINIT = 0x2, | SGX_EINIT = 0x2, | ||||
SGX_EREMOVE = 0x3, | SGX_EREMOVE = 0x3, | ||||
SGX_EDGBRD = 0x4, | SGX_EDGBRD = 0x4, | ||||
SGX_EDGBWR = 0x5, | SGX_EDGBWR = 0x5, | ||||
SGX_EEXTEND = 0x6, | SGX_EEXTEND = 0x6, | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |
s/slac/stac/? (I don't think this is used in any C code though as it wouldn't compile if so?)