Higher-half kernel mapping. Unmap where possible, freeing up lower memory

This commit is contained in:
Jeremy Soller 2016-09-14 20:47:55 -06:00
parent 6e16298e71
commit 83bc8a0da5
7 changed files with 68 additions and 30 deletions

View file

@ -65,7 +65,7 @@ pub unsafe extern fn kstart() -> ! {
}
// Initialize memory management
memory::init(0, &__end as *const u8 as usize);
memory::init(0, &__end as *const u8 as usize - ::KERNEL_OFFSET);
// TODO: allocate a stack
let stack_start = 0x00080000;