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

This commit is contained in:
Michael Scire 2018-06-22 00:47:59 -06:00
parent 5f8aa02584
commit 067ac434ba
4 changed files with 27 additions and 17 deletions

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;
}