diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-22 17:17:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 17:17:36 +0200 |
commit | b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f (patch) | |
tree | 14f41563aac7e5513bad341805afb164f1bf2f4f /src/core/hle/kernel/svc/svc_code_memory.cpp | |
parent | Merge pull request #11098 from GPUCode/texel-buffers (diff) | |
parent | kernel: reduce page table region checking (diff) | |
download | yuzu-b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f.tar yuzu-b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f.tar.gz yuzu-b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f.tar.bz2 yuzu-b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f.tar.lz yuzu-b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f.tar.xz yuzu-b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f.tar.zst yuzu-b1aed2c5b79dc8c3ba858e21308312a5dc10dd2f.zip |
Diffstat (limited to 'src/core/hle/kernel/svc/svc_code_memory.cpp')
-rw-r--r-- | src/core/hle/kernel/svc/svc_code_memory.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/svc/svc_code_memory.cpp b/src/core/hle/kernel/svc/svc_code_memory.cpp index 687baff82..bae4cb0cd 100644 --- a/src/core/hle/kernel/svc/svc_code_memory.cpp +++ b/src/core/hle/kernel/svc/svc_code_memory.cpp @@ -48,7 +48,7 @@ Result CreateCodeMemory(Core::System& system, Handle* out, u64 address, uint64_t SCOPE_EXIT({ code_mem->Close(); }); // Verify that the region is in range. - R_UNLESS(GetCurrentProcess(system.Kernel()).PageTable().Contains(address, size), + R_UNLESS(GetCurrentProcess(system.Kernel()).GetPageTable().Contains(address, size), ResultInvalidCurrentMemory); // Initialize the code memory. @@ -92,7 +92,7 @@ Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, case CodeMemoryOperation::Map: { // Check that the region is in range. R_UNLESS(GetCurrentProcess(system.Kernel()) - .PageTable() + .GetPageTable() .CanContain(address, size, KMemoryState::CodeOut), ResultInvalidMemoryRegion); @@ -105,7 +105,7 @@ Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, case CodeMemoryOperation::Unmap: { // Check that the region is in range. R_UNLESS(GetCurrentProcess(system.Kernel()) - .PageTable() + .GetPageTable() .CanContain(address, size, KMemoryState::CodeOut), ResultInvalidMemoryRegion); @@ -117,8 +117,8 @@ Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, } break; case CodeMemoryOperation::MapToOwner: { // Check that the region is in range. - R_UNLESS(code_mem->GetOwner()->PageTable().CanContain(address, size, - KMemoryState::GeneratedCode), + R_UNLESS(code_mem->GetOwner()->GetPageTable().CanContain(address, size, + KMemoryState::GeneratedCode), ResultInvalidMemoryRegion); // Check the memory permission. @@ -129,8 +129,8 @@ Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, } break; case CodeMemoryOperation::UnmapFromOwner: { // Check that the region is in range. - R_UNLESS(code_mem->GetOwner()->PageTable().CanContain(address, size, - KMemoryState::GeneratedCode), + R_UNLESS(code_mem->GetOwner()->GetPageTable().CanContain(address, size, + KMemoryState::GeneratedCode), ResultInvalidMemoryRegion); // Check the memory permission. |