Kernel: actually dont map page 0

This commit is contained in:
2023-01-13 15:04:06 +02:00
parent 416a41745f
commit 32453daf66
+1 -1
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