mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-10 16:47:56 -05:00
Kernel/Arbiters: Fix casts, cleanup comments/magic numbers
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user