Просмотр исходного кода

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

REAL_CODE() don't need it.
tags/v0.9.3
Michael Brown 18 лет назад
Родитель
Сommit
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 */

Загрузка…
Отмена
Сохранить