From 83eb3dc0cb9d1f7654dddaa2ffe61bd3dfce847a Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 28 May 2023 17:57:05 +0300 Subject: [PATCH] Kernel: fix MMU::map_page_at() We used to only reassign if flags changed --- kernel/arch/x86_64/MMU.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/arch/x86_64/MMU.cpp b/kernel/arch/x86_64/MMU.cpp index 67a2d60c..6b8f269f 100644 --- a/kernel/arch/x86_64/MMU.cpp +++ b/kernel/arch/x86_64/MMU.cpp @@ -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