From a0af8fa43288e04dfdc64e62ab7c3801d98d485a Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 24 Sep 2022 22:35:19 +0200 Subject: [PATCH] QUICK BUGFIX: Shift PDE.Address to the left by 12 bits in VMM::getPhysical, to return the actual physical address --- kernel/src/memory/VMM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/memory/VMM.cpp b/kernel/src/memory/VMM.cpp index 35f642da..9088ba26 100644 --- a/kernel/src/memory/VMM.cpp +++ b/kernel/src/memory/VMM.cpp @@ -97,7 +97,7 @@ namespace Paging else { PT = (PageTable*)((uint64_t)PDE.Address << 12); } PDE = PT->entries[P_i]; - return PDE.Address; + return PDE.Address << 12; } uint64_t VirtualMemoryManager::getFlags(uint64_t virtualAddress)