[Zion] Free all user space mappings when exitting a process.
This commit is contained in:
parent
e50d3f8abc
commit
39ac0216dd
2 changed files with 5 additions and 1 deletions
|
|
@ -101,7 +101,9 @@ void Process::Cleanup() {
|
|||
// 2. Release all capabailities.
|
||||
caps_.ReleaseAll();
|
||||
|
||||
// 3. Unmap all user memory. TODO
|
||||
// 3. Unmap all user memory.
|
||||
PANIC_ON_ERR(vmas_->FreeAddressRange(0, kUserSpaceMax),
|
||||
"Failed to cleanup userspace mappings in process exit.");
|
||||
|
||||
// 4. Release paging structures. TODO
|
||||
state_ = FINISHED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue