diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-06-07 20:59:52 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-07 20:59:52 -0700 |
commit | 69bb4b204e8d29c89597961e94807d1acba2cd4b (patch) | |
tree | 143b21d9e0956d443165ac97ab8ba410f1b4cd97 /memdisk/start32.S | |
parent | 1e4de8c54d7e007cf6002a87658f3d03c796bfc6 (diff) | |
download | syslinux-69bb4b204e8d29c89597961e94807d1acba2cd4b.tar.gz |
memdisk: additional cleanups
Additional stylistic cleanups. Rename "syscall" to "intcall" (we
can't call it __intcall without clashing with com32.h); use macros
instead of copying variables to different places with only the type
being different.
Also, only change the rm/pm jump instructions when actually relocating
the code.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'memdisk/start32.S')
-rw-r--r-- | memdisk/start32.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/memdisk/start32.S b/memdisk/start32.S index 8fcebcc6..4fb05374 100644 --- a/memdisk/start32.S +++ b/memdisk/start32.S @@ -72,8 +72,16 @@ _start: jmp *(rm_args) /* First argument is return */ .section ".text","ax" + .globl intcall + .type intcall, @function +intcall: + jmp *(rm_args+1*4) /* Intcall is argument 1 */ + .size intcall, .-intcall + + .type handle_interrupt, @function handle_interrupt: jmp *(rm_args+4*4) /* Interrupt pointer is argument 4 */ + .size handle_interrupt, .-handle_interrupt .section ".rodata","a" idt_ptr: |