diff options
| author | rsc <rsc> | 2009-03-08 22:07:13 +0000 | 
|---|---|---|
| committer | rsc <rsc> | 2009-03-08 22:07:13 +0000 | 
| commit | 2157576107d6e81c643e14e134b60b8ae519c256 (patch) | |
| tree | 88ff770d321b4b2ef1ef1fcc0e17508ede6001bf /x86.h | |
| parent | b7f653dc49dd4af29a3b7bdd66cd712bea166623 (diff) | |
| download | xv6-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.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)  { | 
