Mark kernel memory global
This commit is contained in:
parent
2e575db3db
commit
9c2a45d0bf
6 changed files with 20 additions and 18 deletions
|
@ -101,7 +101,7 @@ pub unsafe extern fn kstart() -> ! {
|
|||
let heap_start_page = Page::containing_address(VirtualAddress::new(::KERNEL_HEAP_OFFSET));
|
||||
let heap_end_page = Page::containing_address(VirtualAddress::new(::KERNEL_HEAP_OFFSET + ::KERNEL_HEAP_SIZE-1));
|
||||
for page in Page::range_inclusive(heap_start_page, heap_end_page) {
|
||||
active_table.map(page, entry::WRITABLE | entry::NO_EXECUTE);
|
||||
active_table.map(page, entry::PRESENT | entry::GLOBAL | entry::WRITABLE | entry::NO_EXECUTE);
|
||||
}
|
||||
|
||||
// Init the allocator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue