Browse Source

Remove the automatic segment register save and restore; most users of

REAL_CODE() don't need it.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
edcf89e2b0
1 changed files with 0 additions and 8 deletions
  1. 0
    8
      src/arch/i386/include/libkir.h

+ 0
- 8
src/arch/i386/include/libkir.h View File

216
 /* REAL_CODE: declare a fragment of code that executes in real mode */
216
 /* REAL_CODE: declare a fragment of code that executes in real mode */
217
 #define REAL_CODE( asm_code_str )	\
217
 #define REAL_CODE( asm_code_str )	\
218
 	".code16\n\t"			\
218
 	".code16\n\t"			\
219
-	"pushw %%gs\n\t"		\
220
-	"pushw %%fs\n\t"		\
221
-	"pushw %%es\n\t"		\
222
-	"pushw %%ds\n\t"		\
223
 	asm_code_str "\n\t"		\
219
 	asm_code_str "\n\t"		\
224
-	"popw %%ds\n\t"			\
225
-	"popw %%es\n\t"			\
226
-	"popw %%fs\n\t"			\
227
-	"popw %%gs\n\t"			\
228
 	".code16gcc\n\t"
220
 	".code16gcc\n\t"
229
 
221
 
230
 #endif /* ASSEMBLY */
222
 #endif /* ASSEMBLY */

Loading…
Cancel
Save