aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/3dsx.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-07-21 21:17:57 -0500
committerSubv <subv2112@gmail.com>2017-09-10 15:13:41 -0500
commit36100ec791313e4653664d68119c0fa29f550fce (patch)
tree418be08a059813466e7ed4495fd6198b16aa4ddc /src/core/loader/3dsx.cpp
parent95fd4a5e9d2c03c014ba9c7f753cb3b85001da27 (diff)
Kernel/Memory: Give each Process its own page table.
The loader is in charge of setting the newly created process's page table as the main one during the loading process.
Diffstat (limited to 'src/core/loader/3dsx.cpp')
-rw-r--r--src/core/loader/3dsx.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cpp
index 74e3364874..69cdc0867e 100644
--- a/src/core/loader/3dsx.cpp
+++ b/src/core/loader/3dsx.cpp
@@ -270,6 +270,7 @@ ResultStatus AppLoader_THREEDSX::Load() {
Kernel::g_current_process = Kernel::Process::Create(std::move(codeset));
Kernel::g_current_process->svc_access_mask.set();
Kernel::g_current_process->address_mappings = default_address_mappings;
+ Memory::current_page_table = &Kernel::g_current_process->vm_manager.page_table;
// Attach the default resource limit (APPLICATION) to the process
Kernel::g_current_process->resource_limit =