diff options
Diffstat (limited to 'x86.h')
-rw-r--r-- | x86.h | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -48,15 +48,6 @@ stosb(void *addr, int data, int cnt) "memory", "cc"); } -static inline uint -read_ebp(void) -{ - uint ebp; - - asm volatile("movl %%ebp, %0" : "=a" (ebp)); - return ebp; -} - struct segdesc; static inline void @@ -92,19 +83,13 @@ ltr(ushort sel) } static inline uint -read_eflags(void) +readeflags(void) { uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); return eflags; } -static inline void -write_eflags(uint eflags) -{ - asm volatile("pushl %0; popfl" : : "r" (eflags)); -} - static inline uint xchg(volatile uint *addr, uint newval) { |