david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Removed dead code identified by symcheck

This commit is contained in:
Michael Brown 2007-07-17 01:43:19 +01:00
parent 94415b7669
commit dc52db4920
1 changed files with 0 additions and 17 deletions

View File

@ -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;