Kernel/Memory: Make IsValidPhysicalAddress not go through the current process' virtual memory mapping.
This commit is contained in:
		| @@ -208,8 +208,7 @@ bool IsValidVirtualAddress(const VAddr vaddr) { | |||||||
| } | } | ||||||
|  |  | ||||||
| bool IsValidPhysicalAddress(const PAddr paddr) { | bool IsValidPhysicalAddress(const PAddr paddr) { | ||||||
|     boost::optional<VAddr> vaddr = PhysicalToVirtualAddress(paddr); |     return GetPhysicalPointer(paddr) != nullptr; | ||||||
|     return vaddr && IsValidVirtualAddress(*vaddr); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| u8* GetPointer(const VAddr vaddr) { | u8* GetPointer(const VAddr vaddr) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user