commit f446c577058046234a369720c109eba6493fb26e
parent 645f9acbb0c5965e38e9e77d4387ec8bcbb40f70
Author: Brian Swetland <swetland@frotz.net>
Date: Thu, 2 Jan 2014 17:37:23 -0800
provide extended multiboot header in the 32bit build
This will allow the kernel to be booted by a multiboot compatible
bootloader that does not know how to parse ELF headers.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/kernel/entry.S b/kernel/entry.S
@@ -25,10 +25,15 @@
.globl multiboot_header
multiboot_header:
#define magic 0x1badb002
- #define flags 0
+ #define flags 0x10000
.long magic
.long flags
.long (-magic-flags)
+ .long V2P_WO(multiboot_header)
+ .long V2P_WO(multiboot_header)
+ .long V2P_WO(edata)
+ .long V2P_WO(end)
+ .long _start
# By convention, the _start symbol specifies the ELF entry point.
# Since we haven't set up virtual memory yet, our entry point is