浏览代码

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

REAL_CODE() don't need it.
tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
edcf89e2b0
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0
    8
      src/arch/i386/include/libkir.h

+ 0
- 8
src/arch/i386/include/libkir.h 查看文件

@@ -216,15 +216,7 @@ virt_to_user ( void * virtual ) {
216 216
 /* REAL_CODE: declare a fragment of code that executes in real mode */
217 217
 #define REAL_CODE( asm_code_str )	\
218 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 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 220
 	".code16gcc\n\t"
229 221
 
230 222
 #endif /* ASSEMBLY */

正在加载...
取消
保存