diff options
author | B3n30 <bene_thomas@web.de> | 2017-09-25 08:29:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 08:29:32 +0200 |
commit | d881dee818e7e59b72cb11cea634eb70bdcd3d35 (patch) | |
tree | 4f9b241fb63b90647e2992e83d83de7d25bb5d42 /src/core/loader | |
parent | Merge pull request #2951 from huwpascoe/perf-4 (diff) | |
parent | ARM_Interface: Implement PageTableChanged (diff) | |
download | yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar.gz yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar.bz2 yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar.lz yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar.xz yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar.zst yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.zip |
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/3dsx.cpp | 2 | ||||
-rw-r--r-- | src/core/loader/elf.cpp | 2 | ||||
-rw-r--r-- | src/core/loader/ncch.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cpp index 69cdc0867..a03515e6e 100644 --- a/src/core/loader/3dsx.cpp +++ b/src/core/loader/3dsx.cpp @@ -270,7 +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; + Memory::SetCurrentPageTable(&Kernel::g_current_process->vm_manager.page_table); // Attach the default resource limit (APPLICATION) to the process Kernel::g_current_process->resource_limit = diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index 2f27606a1..2de1f4e81 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp @@ -397,7 +397,7 @@ ResultStatus AppLoader_ELF::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; + Memory::SetCurrentPageTable(&Kernel::g_current_process->vm_manager.page_table); // Attach the default resource limit (APPLICATION) to the process Kernel::g_current_process->resource_limit = diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index bef7fa567..c46d7cfc6 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp @@ -108,7 +108,7 @@ ResultStatus AppLoader_NCCH::LoadExec() { codeset->memory = std::make_shared<std::vector<u8>>(std::move(code)); Kernel::g_current_process = Kernel::Process::Create(std::move(codeset)); - Memory::current_page_table = &Kernel::g_current_process->vm_manager.page_table; + Memory::SetCurrentPageTable(&Kernel::g_current_process->vm_manager.page_table); // Attach a resource limit to the process based on the resource limit category Kernel::g_current_process->resource_limit = |