summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc/svc_physical_memory.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-07-15 03:58:20 +0200
committerLiam <byteslice@airmail.cc>2023-07-15 04:33:10 +0200
commit474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd (patch)
tree288901313abc231a71faf3a95b24eabbca3a04d0 /src/core/hle/kernel/svc/svc_physical_memory.cpp
parentk_process: PageTable -> GetPageTable (diff)
downloadyuzu-474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd.tar
yuzu-474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd.tar.gz
yuzu-474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd.tar.bz2
yuzu-474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd.tar.lz
yuzu-474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd.tar.xz
yuzu-474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd.tar.zst
yuzu-474db2d8dafebffc9a16dd3c9d1d21a63fdbeddd.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc/svc_physical_memory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc/svc_physical_memory.cpp b/src/core/hle/kernel/svc/svc_physical_memory.cpp
index 56643c75c..d3545f232 100644
--- a/src/core/hle/kernel/svc/svc_physical_memory.cpp
+++ b/src/core/hle/kernel/svc/svc_physical_memory.cpp
@@ -51,14 +51,14 @@ Result MapPhysicalMemory(Core::System& system, u64 addr, u64 size) {
R_THROW(ResultInvalidState);
}
- if (!page_table.IsInsideAddressSpace(addr, size)) {
+ if (!page_table.Contains(addr, size)) {
LOG_ERROR(Kernel_SVC,
"Address is not within the address space, addr=0x{:016X}, size=0x{:016X}", addr,
size);
R_THROW(ResultInvalidMemoryRegion);
}
- if (page_table.IsOutsideAliasRegion(addr, size)) {
+ if (!page_table.IsInAliasRegion(addr, size)) {
LOG_ERROR(Kernel_SVC,
"Address is not within the alias region, addr=0x{:016X}, size=0x{:016X}", addr,
size);
@@ -100,14 +100,14 @@ Result UnmapPhysicalMemory(Core::System& system, u64 addr, u64 size) {
R_THROW(ResultInvalidState);
}
- if (!page_table.IsInsideAddressSpace(addr, size)) {
+ if (!page_table.Contains(addr, size)) {
LOG_ERROR(Kernel_SVC,
"Address is not within the address space, addr=0x{:016X}, size=0x{:016X}", addr,
size);
R_THROW(ResultInvalidMemoryRegion);
}
- if (page_table.IsOutsideAliasRegion(addr, size)) {
+ if (!page_table.IsInAliasRegion(addr, size)) {
LOG_ERROR(Kernel_SVC,
"Address is not within the alias region, addr=0x{:016X}, size=0x{:016X}", addr,
size);