diff --git a/kernel/arch/i386/MMU.cpp b/kernel/arch/i386/MMU.cpp index 589490ea5..80f86ebfa 100644 --- a/kernel/arch/i386/MMU.cpp +++ b/kernel/arch/i386/MMU.cpp @@ -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