Kernel/Arbiters: Fix casts, cleanup comments/magic numbers

This commit is contained in:
Michael Scire committed 2018-06-22 00:47:59 -06:00
1 parent 5f8aa02584
commit 067ac434ba
4 files changed
+27 -17

No files matched your search

+4
View File
@@ -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;
}