summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc/svc_process_memory.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-07-15 03:43:15 +0200
committerLiam <byteslice@airmail.cc>2023-07-15 03:43:15 +0200
commita85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb (patch)
tree40f818c29a9e19dbc2c7aeb352d7892c59d7e858 /src/core/hle/kernel/svc/svc_process_memory.cpp
parentfile_sys/content_archive: Detect compressed NCAs (#11047) (diff)
downloadyuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.gz
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.bz2
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.lz
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.xz
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.zst
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc/svc_process_memory.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/svc/svc_process_memory.cpp b/src/core/hle/kernel/svc/svc_process_memory.cpp
index aee0f2f36..ee11e9639 100644
--- a/src/core/hle/kernel/svc/svc_process_memory.cpp
+++ b/src/core/hle/kernel/svc/svc_process_memory.cpp
@@ -49,7 +49,7 @@ Result SetProcessMemoryPermission(Core::System& system, Handle process_handle, u
R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
// Validate that the address is in range.
- auto& page_table = process->PageTable();
+ auto& page_table = process->GetPageTable();
R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
// Set the memory permission.
@@ -77,8 +77,8 @@ Result MapProcessMemory(Core::System& system, u64 dst_address, Handle process_ha
R_UNLESS(src_process.IsNotNull(), ResultInvalidHandle);
// Get the page tables.
- auto& dst_pt = dst_process->PageTable();
- auto& src_pt = src_process->PageTable();
+ auto& dst_pt = dst_process->GetPageTable();
+ auto& src_pt = src_process->GetPageTable();
// Validate that the mapping is in range.
R_UNLESS(src_pt.Contains(src_address, size), ResultInvalidCurrentMemory);
@@ -118,8 +118,8 @@ Result UnmapProcessMemory(Core::System& system, u64 dst_address, Handle process_
R_UNLESS(src_process.IsNotNull(), ResultInvalidHandle);
// Get the page tables.
- auto& dst_pt = dst_process->PageTable();
- auto& src_pt = src_process->PageTable();
+ auto& dst_pt = dst_process->GetPageTable();
+ auto& src_pt = src_process->GetPageTable();
// Validate that the mapping is in range.
R_UNLESS(src_pt.Contains(src_address, size), ResultInvalidCurrentMemory);
@@ -178,7 +178,7 @@ Result MapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst
R_THROW(ResultInvalidHandle);
}
- auto& page_table = process->PageTable();
+ auto& page_table = process->GetPageTable();
if (!page_table.IsInsideAddressSpace(src_address, size)) {
LOG_ERROR(Kernel_SVC,
"Source address range is not within the address space (src_address=0x{:016X}, "
@@ -246,7 +246,7 @@ Result UnmapProcessCodeMemory(Core::System& system, Handle process_handle, u64 d
R_THROW(ResultInvalidHandle);
}
- auto& page_table = process->PageTable();
+ auto& page_table = process->GetPageTable();
if (!page_table.IsInsideAddressSpace(src_address, size)) {
LOG_ERROR(Kernel_SVC,
"Source address range is not within the address space (src_address=0x{:016X}, "