diff options
author | bunnei <bunneidev@gmail.com> | 2021-11-22 23:06:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 23:06:09 +0100 |
commit | daecbd3a7febd8ec9f119b3e8937e8d27fba990f (patch) | |
tree | 36d6ce1d58016d324a121e25d9154eecca03e1fc /src/core/hle/kernel/k_process.cpp | |
parent | Merge pull request #7406 from heinermann/tas_menu (diff) | |
parent | kernel: svc: Move all IsValid functions to an anonymous namespace (diff) | |
download | yuzu-daecbd3a7febd8ec9f119b3e8937e8d27fba990f.tar yuzu-daecbd3a7febd8ec9f119b3e8937e8d27fba990f.tar.gz yuzu-daecbd3a7febd8ec9f119b3e8937e8d27fba990f.tar.bz2 yuzu-daecbd3a7febd8ec9f119b3e8937e8d27fba990f.tar.lz yuzu-daecbd3a7febd8ec9f119b3e8937e8d27fba990f.tar.xz yuzu-daecbd3a7febd8ec9f119b3e8937e8d27fba990f.tar.zst yuzu-daecbd3a7febd8ec9f119b3e8937e8d27fba990f.zip |
Diffstat (limited to 'src/core/hle/kernel/k_process.cpp')
-rw-r--r-- | src/core/hle/kernel/k_process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index 76fd8c285..1aad061e1 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -528,7 +528,7 @@ void KProcess::LoadModule(CodeSet code_set, VAddr base_addr) { std::lock_guard lock{HLE::g_hle_lock}; const auto ReprotectSegment = [&](const CodeSet::Segment& segment, KMemoryPermission permission) { - page_table->SetCodeMemoryPermission(segment.addr + base_addr, segment.size, permission); + page_table->SetProcessMemoryPermission(segment.addr + base_addr, segment.size, permission); }; kernel.System().Memory().WriteBlock(*this, base_addr, code_set.memory.data(), |