diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-04 08:17:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-04 08:17:25 +0200 |
commit | 206f2e3436a2c1dddee7503edc4e142fb9a9dbd4 (patch) | |
tree | 69c99523b435fe2c2bff9b022534035a9b4b4020 /src/core/hle/kernel/process.cpp | |
parent | Merge pull request #917 from lioncash/crash (diff) | |
parent | kernel/process: Use std::array where applicable (diff) | |
download | yuzu-206f2e3436a2c1dddee7503edc4e142fb9a9dbd4.tar yuzu-206f2e3436a2c1dddee7503edc4e142fb9a9dbd4.tar.gz yuzu-206f2e3436a2c1dddee7503edc4e142fb9a9dbd4.tar.bz2 yuzu-206f2e3436a2c1dddee7503edc4e142fb9a9dbd4.tar.lz yuzu-206f2e3436a2c1dddee7503edc4e142fb9a9dbd4.tar.xz yuzu-206f2e3436a2c1dddee7503edc4e142fb9a9dbd4.tar.zst yuzu-206f2e3436a2c1dddee7503edc4e142fb9a9dbd4.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) { |