Higher-half kernel mapping. Unmap where possible, freeing up lower memory
This commit is contained in:
parent
6e16298e71
commit
83bc8a0da5
7 changed files with 68 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue