mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-05 14:57:44 +01:00
Kernel/Memory: Make IsValidPhysicalAddress not go through the current process' virtual memory mapping.
This commit is contained in:
1 parent
9200465e55
commit
8932f435fc
1 file changed
+1
-2
+1
-2
@@ -208,8 +208,7 @@ bool IsValidVirtualAddress(const VAddr vaddr) {
|
||||
}
|
||||
|
||||
bool IsValidPhysicalAddress(const PAddr paddr) {
|
||||
boost::optional<VAddr> vaddr = PhysicalToVirtualAddress(paddr);
|
||||
return vaddr && IsValidVirtualAddress(*vaddr);
|
||||
return GetPhysicalPointer(paddr) != nullptr;
|
||||
}
|
||||
|
||||
u8* GetPointer(const VAddr vaddr) {
|
||||
|
||||
Reference in new issue
Block a user