Skip to content
This repository
Browse code

Remove unused x86.h definitions

  • Loading branch information...
commit 30c1901a5a6beaac2ede35bb2a7505690bda9590 1 parent dd4438b
Austin Clements authored September 02, 2011

Showing 1 changed file with 0 additions and 62 deletions. Show diff stats Hide diff stats

  1. 62  x86.h
62  x86.h
@@ -106,46 +106,6 @@ loadgs(ushort v)
106 106
 }
107 107
 
108 108
 static inline void
109  
-loadfs(ushort v)
110  
-{
111  
-  __asm volatile("movw %0, %%fs" : : "r" (v));
112  
-}
113  
-
114  
-static inline void
115  
-loades(ushort v)
116  
-{
117  
-  __asm volatile("movw %0, %%es" : : "r" (v));
118  
-}
119  
-
120  
-static inline void
121  
-loadds(ushort v)
122  
-{
123  
-  __asm volatile("movw %0, %%ds" : : "r" (v));
124  
-}
125  
-
126  
-static inline void
127  
-loadss(ushort v)
128  
-{
129  
-  __asm volatile("movw %0, %%ss" : : "r" (v));
130  
-}
131  
-
132  
-static inline uint
133  
-rebp(void)
134  
-{
135  
-  uint val;
136  
-  asm volatile("movl %%ebp,%0" : "=r" (val));
137  
-  return val;
138  
-}
139  
-
140  
-static inline uint
141  
-resp(void)
142  
-{
143  
-  uint val;
144  
-  asm volatile("movl %%esp,%0" : "=r" (val));
145  
-  return val;
146  
-}
147  
-
148  
-static inline void
149 109
 cli(void)
150 110
 {
151 111
   asm volatile("cli");
@@ -170,20 +130,6 @@ xchg(volatile uint *addr, uint newval)
170 130
   return result;
171 131
 }
172 132
 
173  
-static inline void
174  
-lcr0(uint val)
175  
-{
176  
-  asm volatile("movl %0,%%cr0" : : "r" (val));
177  
-}
178  
-
179  
-static inline uint
180  
-rcr0(void)
181  
-{
182  
-  uint val;
183  
-  asm volatile("movl %%cr0,%0" : "=r" (val));
184  
-  return val;
185  
-}
186  
-
187 133
 static inline uint
188 134
 rcr2(void)
189 135
 {
@@ -198,14 +144,6 @@ lcr3(uint val)
198 144
   asm volatile("movl %0,%%cr3" : : "r" (val));
199 145
 }
200 146
 
201  
-static inline uint
202  
-rcr3(void)
203  
-{
204  
-  uint val;
205  
-  asm volatile("movl %%cr3,%0" : "=r" (val));
206  
-  return val;
207  
-}
208  
-
209 147
 //PAGEBREAK: 36
210 148
 // Layout of the trap frame built on the stack by the
211 149
 // hardware and by trapasm.S, and passed to trap().

0 notes on commit 30c1901

Please sign in to comment.
Something went wrong with that request. Please try again.