[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

@ -29,5 +29,6 @@ z_err_t AddressSpaceUnmap(ZAddressSpaceUnmapReq* req) {
RET_ERR(ValidateCapability<AddressSpace>(vmas_cap, kZionPerm_Write));
auto vmas = vmas_cap->obj<AddressSpace>();
return vmas->FreeAddressRange(req->lower_addr, req->upper_addr);
return vmas->FreeAddressRange(req->lower_addr, req->upper_addr,
/* is_dying_proc= */ true);
}