Kernel: actually dont map page 0
This commit is contained in:
parent
416a41745f
commit
32453daf66
|
@ -63,7 +63,7 @@ MMU::MMU()
|
|||
|
||||
// dont map first page (0 -> 4 KiB) so that nullptr dereference
|
||||
// causes page fault :)
|
||||
uint64_t* page_table1 = (uint64_t*)page_directory1[0];
|
||||
uint64_t* page_table1 = (uint64_t*)(page_directory1[0] & PAGE_MASK);
|
||||
page_table1[0] = 0;
|
||||
|
||||
// reload this new pdpt
|
||||
|
|
Loading…
Reference in New Issue