Kernel: actually dont map page 0

This commit is contained in:
Bananymous 2023-01-13 14:45:45 +02:00
parent 416a41745f
commit 32453daf66
1 changed files with 1 additions and 1 deletions

View File

@ -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