summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
authorrsc <rsc>2009-03-08 22:07:13 +0000
committerrsc <rsc>2009-03-08 22:07:13 +0000
commit2157576107d6e81c643e14e134b60b8ae519c256 (patch)
tree88ff770d321b4b2ef1ef1fcc0e17508ede6001bf /x86.h
parentb7f653dc49dd4af29a3b7bdd66cd712bea166623 (diff)
downloadxv6-labs-2157576107d6e81c643e14e134b60b8ae519c256.tar.gz
xv6-labs-2157576107d6e81c643e14e134b60b8ae519c256.tar.bz2
xv6-labs-2157576107d6e81c643e14e134b60b8ae519c256.zip
be consistent: no underscores in function names
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)
{