aboutsummaryrefslogtreecommitdiff
path: root/x86_64/boothdr.S
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/boothdr.S')
-rw-r--r--x86_64/boothdr.S15
1 files changed, 2 insertions, 13 deletions
diff --git a/x86_64/boothdr.S b/x86_64/boothdr.S
index 5ea7834d..d81f9a78 100644
--- a/x86_64/boothdr.S
+++ b/x86_64/boothdr.S
@@ -26,8 +26,6 @@
*/
.section .boot.text,"ax"
/* We should never be entered this way. */
- .globl _start
-_start:
.globl boot_start
boot_start:
@@ -36,11 +34,7 @@ boot_start:
/* MultiBoot header - see multiboot.h. */
#define MULTIBOOT_MAGIC 0x1BADB002
-#ifdef __ELF__
#define MULTIBOOT_FLAGS 0x00000003
-#else /* __ELF__ */
-#define MULTIBOOT_FLAGS 0x00010003
-#endif /* __ELF__ */
P2ALIGN(2)
boot_hdr:
.long MULTIBOOT_MAGIC
@@ -50,14 +44,9 @@ boot_hdr:
* XX this works OK until we need at least the 30th bit.
*/
.long - (MULTIBOOT_MAGIC+MULTIBOOT_FLAGS)
-#ifndef __ELF__ /* a.out kludge */
- .long boot_hdr /* header_addr */
- .long _start /* load_addr */
- .long _edata /* load_end_addr */
- .long _end /* bss_end_addr */
- .long boot_entry /* entry */
-#endif /* __ELF__ */
+ .global _start
+_start:
boot_entry:
/*
* Prepare minimal page mapping to jump to 64 bit and to C code.