QUICK BUGFIX: Shift PDE.Address to the left by 12 bits in VMM::getPhysical, to return the actual physical address

This commit is contained in:
apio 2022-09-24 22:35:19 +02:00
parent a2d23efd1b
commit a0af8fa432

View File

@ -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)