diff options
Diffstat (limited to 'x86.h')
-rw-r--r-- | x86.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -104,6 +104,12 @@ xchg(volatile uint *addr, uint newval) } static inline void +setgs(ushort gs) +{ + asm volatile("movw %0, %%gs" : : "r" (gs)); +} + +static inline void cli(void) { asm volatile("cli"); |