summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'x86.h')
-rw-r--r--x86.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/x86.h b/x86.h
index 08e1798..80d7487 100644
--- a/x86.h
+++ b/x86.h
@@ -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)
{