Kernel: fix MMU::map_page_at()

We used to only reassign if flags changed
This commit is contained in:
Bananymous 2023-05-28 17:57:05 +03:00
parent 481c8406f3
commit 83eb3dc0cb
1 changed files with 1 additions and 2 deletions

View File

@ -250,8 +250,7 @@ namespace Kernel
}
uint64_t* pt = (uint64_t*)(pd[pde] & PAGE_MASK);
if ((pt[pte] & flags) != flags)
pt[pte] = paddr | flags;
pt[pte] = paddr | flags;
}
uint64_t MMU::get_page_data(vaddr_t address) const