From 15997d58497f4c716c227787acf9591439e5fe9c Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 31 Aug 2011 09:48:52 -0400 Subject: move the kernel to 0x80000000 --- bootmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootmain.c') diff --git a/bootmain.c b/bootmain.c index 6c9f1ff..72f3927 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 & 0xFFFFFF); + entry = (void(*)(void))(elf->entry - KERNBASE); entry(); } -- cgit v1.2.3