diff options
-rw-r--r-- | x86_64/boothdr.S | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/x86_64/boothdr.S b/x86_64/boothdr.S index 12fc7ca2..5ea7834d 100644 --- a/x86_64/boothdr.S +++ b/x86_64/boothdr.S @@ -25,11 +25,13 @@ * This section will be put first into .boot. See also x86_64/ldscript. */ .section .boot.text,"ax" - .globl boot_start - /* We should never be entered this way. */ - .code32 + .globl _start +_start: + .globl boot_start boot_start: + + .code32 jmp boot_entry /* MultiBoot header - see multiboot.h. */ @@ -165,10 +167,6 @@ switch64: .code64 - /* why do we need this? it seems overwritten by linker */ - .globl _start -_start: - boot_entry64: /* Switch to our own interrupt stack. */ movq $(_intstack+INTSTACK_SIZE),%rax |