david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

<name>_size variable is no longer needed, since we don't copy the code.

However, it's worth adding a .size directive so that objdump reports the
correct sizes for the code fragments.
This commit is contained in:
Michael Brown 2006-05-02 16:38:46 +00:00
parent 9fcded3d23
commit 9e1dd6402d
1 changed files with 1 additions and 3 deletions

View File

@ -77,7 +77,6 @@ extern void remove_from_rm_stack ( void *data, size_t size );
/* REAL_FRAGMENT: Declare and define a real-mode code fragment in .text16 */
#define REAL_FRAGMENT( name, asm_code_str ) \
extern void name ( void ); \
extern char name ## _size[]; \
__asm__ __volatile__ ( \
".section \".text16\"\n\t" \
".code16\n\t" \
@ -85,8 +84,7 @@ extern void remove_from_rm_stack ( void *data, size_t size );
#name ":\n\t" \
asm_code_str "\n\t" \
"ret\n\t" \
#name "_end:\n\t" \
".equ " #name "_size, " #name "_end - " #name "\n\t" \
".size " #name ", . - " #name "\n\t" \
".code32\n\t" \
".previous\n\t" \
: : \