diff options
| author | 2017-09-15 22:41:45 +0200 | |
|---|---|---|
| committer | 2017-09-15 22:41:45 +0200 | |
| commit | 813837c5cf3e63a4ac08f4ec463bd2b2b87ab1c6 (patch) | |
| tree | df43bf978de3b699a22650d3ff2a3ebb5d86b2de /src/core/loader/ncch.cpp | |
| parent | Merge pull request #2915 from wwylele/font-archive-2 (diff) | |
| parent | CPU/Dynarmic: Disable the fast page-table access in dynarmic until it support... (diff) | |
| download | yuzu-813837c5cf3e63a4ac08f4ec463bd2b2b87ab1c6.tar.gz yuzu-813837c5cf3e63a4ac08f4ec463bd2b2b87ab1c6.tar.xz yuzu-813837c5cf3e63a4ac08f4ec463bd2b2b87ab1c6.zip | |
Merge pull request #2842 from Subv/switchable_page_table
Kernel/Memory: Give each process its own page table and allow switching the current page table upon reschedule
Diffstat (limited to 'src/core/loader/ncch.cpp')
| -rw-r--r-- | src/core/loader/ncch.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index 7aff7f29b..79ea50147 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp | |||
| @@ -172,6 +172,7 @@ ResultStatus AppLoader_NCCH::LoadExec() { | |||
| 172 | codeset->memory = std::make_shared<std::vector<u8>>(std::move(code)); | 172 | codeset->memory = std::make_shared<std::vector<u8>>(std::move(code)); |
| 173 | 173 | ||
| 174 | Kernel::g_current_process = Kernel::Process::Create(std::move(codeset)); | 174 | Kernel::g_current_process = Kernel::Process::Create(std::move(codeset)); |
| 175 | Memory::current_page_table = &Kernel::g_current_process->vm_manager.page_table; | ||
| 175 | 176 | ||
| 176 | // Attach a resource limit to the process based on the resource limit category | 177 | // Attach a resource limit to the process based on the resource limit category |
| 177 | Kernel::g_current_process->resource_limit = | 178 | Kernel::g_current_process->resource_limit = |