diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-11-21 02:05:02 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-11-21 04:18:56 +0100 |
commit | 281437c811847adbc38b69ef3638996c666f65c3 (patch) | |
tree | 81b7eb955b632bd40a2556e4df7c36ae8cab0485 /src/core/hle/service | |
parent | Merge pull request #7368 from FernandoS27/vulkan-conv (diff) | |
download | yuzu-281437c811847adbc38b69ef3638996c666f65c3.tar yuzu-281437c811847adbc38b69ef3638996c666f65c3.tar.gz yuzu-281437c811847adbc38b69ef3638996c666f65c3.tar.bz2 yuzu-281437c811847adbc38b69ef3638996c666f65c3.tar.lz yuzu-281437c811847adbc38b69ef3638996c666f65c3.tar.xz yuzu-281437c811847adbc38b69ef3638996c666f65c3.tar.zst yuzu-281437c811847adbc38b69ef3638996c666f65c3.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/ldr/ldr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp index 32eff3b2a..3782703d2 100644 --- a/src/core/hle/service/ldr/ldr.cpp +++ b/src/core/hle/service/ldr/ldr.cpp @@ -396,12 +396,12 @@ public: CopyCode(nro_addr + nro_header.segment_headers[DATA_INDEX].memory_offset, data_start, nro_header.segment_headers[DATA_INDEX].memory_size); - CASCADE_CODE(process->PageTable().SetCodeMemoryPermission( + CASCADE_CODE(process->PageTable().SetProcessMemoryPermission( text_start, ro_start - text_start, Kernel::KMemoryPermission::ReadAndExecute)); - CASCADE_CODE(process->PageTable().SetCodeMemoryPermission(ro_start, data_start - ro_start, - Kernel::KMemoryPermission::Read)); + CASCADE_CODE(process->PageTable().SetProcessMemoryPermission( + ro_start, data_start - ro_start, Kernel::KMemoryPermission::Read)); - return process->PageTable().SetCodeMemoryPermission( + return process->PageTable().SetProcessMemoryPermission( data_start, bss_end_addr - data_start, Kernel::KMemoryPermission::ReadAndWrite); } |