diff options
author | Michael Scire <SciresM@gmail.com> | 2018-06-22 08:47:59 +0200 |
---|---|---|
committer | Michael Scire <SciresM@gmail.com> | 2018-06-22 08:47:59 +0200 |
commit | 067ac434ba90084359babef1638970e849a5f2ce (patch) | |
tree | 9ad25d486e91209de4dc039d652f436868e2d707 /src/core/memory.cpp | |
parent | Add additional missing format. (diff) | |
download | yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.gz yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.bz2 yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.lz yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.xz yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.zst yuzu-067ac434ba90084359babef1638970e849a5f2ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/memory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 3b81acd63..f070dee7d 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -241,6 +241,10 @@ bool IsValidVirtualAddress(const VAddr vaddr) { return IsValidVirtualAddress(*Core::CurrentProcess(), vaddr); } +bool IsKernelVirtualAddress(const VAddr vaddr) { + return KERNEL_REGION_VADDR <= vaddr && vaddr < KERNEL_REGION_END; +} + bool IsValidPhysicalAddress(const PAddr paddr) { return GetPhysicalPointer(paddr) != nullptr; } |