From 2fc6c35b2fd64a15d7c4cc54c9e8733c3632039d Mon Sep 17 00:00:00 2001 From: Austin Clements <amdragon@mit.edu> Date: Sun, 4 Sep 2011 15:51:46 -0400 Subject: Make the ELF entry point a physical address This way, the bootloader doesn't have to translate the entry point. This also makes xv6 multiboot-compliant and follows the convention used by Linux. --- bootmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootmain.c') diff --git a/bootmain.c b/bootmain.c index 72f3927..d24bf66 100644 --- a/bootmain.c +++ b/bootmain.c @@ -43,7 +43,7 @@ bootmain(void) // Call the entry point from the ELF header. // Does not return! - entry = (void(*)(void))(elf->entry - KERNBASE); + entry = (void(*)(void))(elf->entry); entry(); } -- cgit v1.2.3