diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-03 20:33:59 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-03 20:45:45 +0200 |
commit | 2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9 (patch) | |
tree | 8decd2e8d79f579920f1da76190b46a68eac5f88 /src/core/hle/kernel/process.cpp | |
parent | Merge pull request #908 from lioncash/memory (diff) | |
download | yuzu-2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9.tar yuzu-2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9.tar.gz yuzu-2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9.tar.bz2 yuzu-2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9.tar.lz yuzu-2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9.tar.xz yuzu-2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9.tar.zst yuzu-2beda7c2b3d2fe70ff36edf178d9bb2f5b308bf9.zip |
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 5403ceef5..edf34c5a3 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -142,9 +142,9 @@ void Process::LoadModule(SharedPtr<CodeSet> module_, VAddr base_addr) { }; // Map CodeSet segments - MapSegment(module_->code, VMAPermission::ReadExecute, MemoryState::CodeStatic); - MapSegment(module_->rodata, VMAPermission::Read, MemoryState::CodeMutable); - MapSegment(module_->data, VMAPermission::ReadWrite, MemoryState::CodeMutable); + MapSegment(module_->CodeSegment(), VMAPermission::ReadExecute, MemoryState::CodeStatic); + MapSegment(module_->RODataSegment(), VMAPermission::Read, MemoryState::CodeMutable); + MapSegment(module_->DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeMutable); } ResultVal<VAddr> Process::HeapAllocate(VAddr target, u64 size, VMAPermission perms) { |