summaryrefslogtreecommitdiff
path: root/bootmain.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2011-08-31 09:48:52 -0400
committerRobert Morris <[email protected]>2011-08-31 09:48:52 -0400
commit15997d58497f4c716c227787acf9591439e5fe9c (patch)
treee3a14381f70030ec8034afb8450b7e8aef6c2af7 /bootmain.c
parent5c292b3d7167022e765c7228b0748cb50ab7d7f1 (diff)
downloadxv6-labs-15997d58497f4c716c227787acf9591439e5fe9c.tar.gz
xv6-labs-15997d58497f4c716c227787acf9591439e5fe9c.tar.bz2
xv6-labs-15997d58497f4c716c227787acf9591439e5fe9c.zip
move the kernel to 0x80000000
Diffstat (limited to 'bootmain.c')
-rw-r--r--bootmain.c2
1 files changed, 1 insertions, 1 deletions
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();
}