summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-10 03:39:32 +0200
committerbunnei <bunneidev@gmail.com>2017-10-10 03:39:32 +0200
commit23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6 (patch)
tree168e7793c6d68eb8b195850a056443ea98f430a9 /src/core/hle/kernel/process.cpp
parentloader: Add support for NRO, as well as various fixes and shared linker. (diff)
downloadyuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar
yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar.gz
yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar.bz2
yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar.lz
yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar.xz
yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar.zst
yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.zip
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 2a80c2492..84ebdbc58 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -147,9 +147,9 @@ void Process::LoadModule(SharedPtr<CodeSet> module_, VAddr base_addr) {
};
// Map CodeSet segments
- MapSegment(module_->code, VMAPermission::ReadExecute, MemoryState::Code);
- MapSegment(module_->rodata, VMAPermission::Read, MemoryState::Code);
- MapSegment(module_->data, VMAPermission::ReadWrite, MemoryState::Private);
+ MapSegment(module_->code, VMAPermission::ReadWrite, MemoryState::Private);
+ MapSegment(module_->rodata, VMAPermission::Read, MemoryState::Static);
+ MapSegment(module_->data, VMAPermission::ReadWrite, MemoryState::Static);
}
VAddr Process::GetLinearHeapAreaAddress() const {