Skip to content

Commit

Permalink
Remove unused x86.h definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Clements committed Sep 2, 2011
1 parent dd4438b commit 30c1901
Showing 1 changed file with 0 additions and 62 deletions.
62 changes: 0 additions & 62 deletions x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,46 +105,6 @@ loadgs(ushort v)
asm volatile("movw %0, %%gs" : : "r" (v));
}

static inline void
loadfs(ushort v)
{
__asm volatile("movw %0, %%fs" : : "r" (v));
}

static inline void
loades(ushort v)
{
__asm volatile("movw %0, %%es" : : "r" (v));
}

static inline void
loadds(ushort v)
{
__asm volatile("movw %0, %%ds" : : "r" (v));
}

static inline void
loadss(ushort v)
{
__asm volatile("movw %0, %%ss" : : "r" (v));
}

static inline uint
rebp(void)
{
uint val;
asm volatile("movl %%ebp,%0" : "=r" (val));
return val;
}

static inline uint
resp(void)
{
uint val;
asm volatile("movl %%esp,%0" : "=r" (val));
return val;
}

static inline void
cli(void)
{
Expand All @@ -170,20 +130,6 @@ xchg(volatile uint *addr, uint newval)
return result;
}

static inline void
lcr0(uint val)
{
asm volatile("movl %0,%%cr0" : : "r" (val));
}

static inline uint
rcr0(void)
{
uint val;
asm volatile("movl %%cr0,%0" : "=r" (val));
return val;
}

static inline uint
rcr2(void)
{
Expand All @@ -198,14 +144,6 @@ lcr3(uint val)
asm volatile("movl %0,%%cr3" : : "r" (val));
}

static inline uint
rcr3(void)
{
uint val;
asm volatile("movl %%cr3,%0" : "=r" (val));
return val;
}

//PAGEBREAK: 36
// Layout of the trap frame built on the stack by the
// hardware and by trapasm.S, and passed to trap().
Expand Down

0 comments on commit 30c1901

Please sign in to comment.