mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-10 01:58:49 +00:00
kern: implement process exit
This commit is contained in:
parent
3917ecad46
commit
28aab09b5d
10 changed files with 466 additions and 9 deletions
|
@ -273,8 +273,16 @@ namespace ams::kern {
|
|||
|
||||
|
||||
void KPageTableBase::Finalize() {
|
||||
/* Finalize memory blocks. */
|
||||
this->memory_block_manager.Finalize(this->memory_block_slab_manager);
|
||||
MESOSPHERE_TODO("cpu::InvalidateEntireInstructionCache();");
|
||||
|
||||
/* Free any unsafe mapped memory. */
|
||||
if (this->mapped_unsafe_physical_memory) {
|
||||
Kernel::GetUnsafeMemory().Release(this->mapped_unsafe_physical_memory);
|
||||
}
|
||||
|
||||
/* Invalidate the entire instruction cache. */
|
||||
cpu::InvalidateEntireInstructionCache();
|
||||
}
|
||||
|
||||
KProcessAddress KPageTableBase::GetRegionAddress(KMemoryState state) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue