diff options
| author | 2018-06-22 12:08:39 -0400 | |
|---|---|---|
| committer | 2018-06-22 12:08:39 -0400 | |
| commit | 6d7941042bd8badcd8e93521b40cbbc29215351e (patch) | |
| tree | f4b72f5d717e1fffe784b1f4100fe01177b6b02a /src/core/memory.cpp | |
| parent | Merge pull request #581 from mailwl/empty-buf-skip (diff) | |
| parent | Kernel/Arbiters: Fix casts, cleanup comments/magic numbers (diff) | |
| download | yuzu-6d7941042bd8badcd8e93521b40cbbc29215351e.tar.gz yuzu-6d7941042bd8badcd8e93521b40cbbc29215351e.tar.xz yuzu-6d7941042bd8badcd8e93521b40cbbc29215351e.zip | |
Merge pull request #579 from SciresM/master
svc: Fully implement svcSignalToAddress and svcWaitForAddress
Diffstat (limited to 'src/core/memory.cpp')
| -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) { | |||
| 241 | return IsValidVirtualAddress(*Core::CurrentProcess(), vaddr); | 241 | return IsValidVirtualAddress(*Core::CurrentProcess(), vaddr); |
| 242 | } | 242 | } |
| 243 | 243 | ||
| 244 | bool IsKernelVirtualAddress(const VAddr vaddr) { | ||
| 245 | return KERNEL_REGION_VADDR <= vaddr && vaddr < KERNEL_REGION_END; | ||
| 246 | } | ||
| 247 | |||
| 244 | bool IsValidPhysicalAddress(const PAddr paddr) { | 248 | bool IsValidPhysicalAddress(const PAddr paddr) { |
| 245 | return GetPhysicalPointer(paddr) != nullptr; | 249 | return GetPhysicalPointer(paddr) != nullptr; |
| 246 | } | 250 | } |