[Zion] Free paging structures after process exit.

This commit is contained in:
Drew Galbraith 2023-11-24 17:19:32 -08:00
parent 39ac0216dd
commit 46ae5de30a
5 changed files with 39 additions and 1 deletions

View file

@ -62,6 +62,10 @@ class AddressSpace : public KernelObject {
AddressSpace(const AddressSpace&) = delete;
AddressSpace(AddressSpace&&) = delete;
// Deconstructing an address space will free all paging structures associated
// with this address space.
~AddressSpace();
uint64_t cr3() { return cr3_; }
// User Mappings.