summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2006-05-24 16:11:36 +0200
committerMichael Brown2006-05-24 16:11:36 +0200
commitedcf89e2b028cc8ed66ac07a56d34d51eedf1b06 (patch)
tree40f0d4fc0c87e2ad03ffaf86a51188efaeccc934
parentRemoved REAL_EXEC(); there is no longer any code using it. (diff)
downloadipxe-edcf89e2b028cc8ed66ac07a56d34d51eedf1b06.tar.gz
ipxe-edcf89e2b028cc8ed66ac07a56d34d51eedf1b06.tar.xz
ipxe-edcf89e2b028cc8ed66ac07a56d34d51eedf1b06.zip
Remove the automatic segment register save and restore; most users of
REAL_CODE() don't need it.
-rw-r--r--src/arch/i386/include/libkir.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/arch/i386/include/libkir.h b/src/arch/i386/include/libkir.h
index 008dff7e8..82df82222 100644
--- a/src/arch/i386/include/libkir.h
+++ b/src/arch/i386/include/libkir.h
@@ -216,15 +216,7 @@ virt_to_user ( void * virtual ) {
/* REAL_CODE: declare a fragment of code that executes in real mode */
#define REAL_CODE( asm_code_str ) \
".code16\n\t" \
- "pushw %%gs\n\t" \
- "pushw %%fs\n\t" \
- "pushw %%es\n\t" \
- "pushw %%ds\n\t" \
asm_code_str "\n\t" \
- "popw %%ds\n\t" \
- "popw %%es\n\t" \
- "popw %%fs\n\t" \
- "popw %%gs\n\t" \
".code16gcc\n\t"
#endif /* ASSEMBLY */