Fix kernel mapping

This commit is contained in:
Alex
2023-03-27 20:30:19 +03:00
parent 98677c7b5b
commit 678744f65d
3 changed files with 11 additions and 4 deletions

View File

@ -49,6 +49,8 @@ namespace Memory
return;
}
Flags |= PTFlag::P;
PageMapIndexer Index = PageMapIndexer((uintptr_t)VirtualAddress);
// Clear any flags that are not 1 << 0 (Present) - 1 << 5 (Accessed) because rest are for page table entries only
uint64_t DirectoryFlags = Flags & 0x3F;