[Zion] Mark pages as not present before calling invlpg.

This commit is contained in:
Drew Galbraith 2023-12-05 16:11:37 -08:00
parent 1f8085f791
commit 815a603c1c
6 changed files with 48 additions and 17 deletions

View file

@ -103,8 +103,9 @@ void Process::Cleanup() {
caps_.ReleaseAll();
// 3. Unmap all user memory.
PANIC_ON_ERR(vmas_->FreeAddressRange(0, kUserSpaceMax),
"Failed to cleanup userspace mappings in process exit.");
PANIC_ON_ERR(
vmas_->FreeAddressRange(0, kUserSpaceMax, /* is_dying_proc= */ true),
"Failed to cleanup userspace mappings in process exit.");
// 4. Release paging structures.
vmas_ = nullptr;