summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2007-07-17 02:43:19 +0200
committerMichael Brown2007-07-17 02:43:19 +0200
commitdc52db49202e333a7b1aafcf73df3c612d0638ae (patch)
tree2ca9dc1efa302ae96b5397b23838b084ffce6969 /src/arch
parentAdded missing "static" declarations (diff)
downloadipxe-dc52db49202e333a7b1aafcf73df3c612d0638ae.tar.gz
ipxe-dc52db49202e333a7b1aafcf73df3c612d0638ae.tar.xz
ipxe-dc52db49202e333a7b1aafcf73df3c612d0638ae.zip
Removed dead code identified by symcheck
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/core/realmode.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/arch/i386/core/realmode.c b/src/arch/i386/core/realmode.c
index 32252bd3b..9a77bd8a4 100644
--- a/src/arch/i386/core/realmode.c
+++ b/src/arch/i386/core/realmode.c
@@ -21,20 +21,3 @@ void memcpy_from_real ( void *dest, segoff_t src, size_t n ) {
}
#endif /* KEEP_IT_REAL */
-
-
-#define RM_STACK_SIZE ( 0x1000 )
-
-/* gcc won't let us use extended asm outside a function (compiler
- * bug), ao we have to put these asm statements inside a dummy
- * function.
- */
-static void work_around_gcc_bug ( void ) __attribute__ ((used));
-static void work_around_gcc_bug ( void ) {
- /* Export _real_mode_stack_size as absolute linker symbol */
- __asm__ ( ".globl real_mode_stack_size" );
- __asm__ ( ".equ real_mode_stack_size, %c0" : : "i" (RM_STACK_SIZE) );
-}
-
-char *real_mode_stack;
-int lock_real_mode_stack;