[Zion] Actually free memory pages when a MemoryObject goes out of scope

This commit is contained in:
Drew Galbraith 2023-11-19 21:37:30 -08:00
parent 344e84c313
commit 4d1846a7d5
8 changed files with 63 additions and 21 deletions

View file

@ -14,7 +14,7 @@ glcr::RefPtr<AddressSpace> AddressSpace::ForRoot() {
}
AddressSpace::AddressSpace() {
cr3_ = phys_mem::AllocatePage();
cr3_ = phys_mem::AllocateAndZeroPage();
InitializePml4(cr3_);
}