Memory: move IsValidVirtualAddress into class

This commit is contained in:
Weiyi Wang committed 2018-12-05 20:21:14 -05:00
1 parent 296c458e0e
commit 405218c3a7
6 files changed
+27 -26

No files matched your search

+1 -1
View File
@@ -303,7 +303,7 @@ ResultVal<SharedPtr<Thread>> KernelSystem::CreateThread(std::string name, VAddr
// TODO(yuriks): Other checks, returning 0xD9001BEA
if (!Memory::IsValidVirtualAddress(owner_process, entry_point)) {
if (!memory.IsValidVirtualAddress(owner_process, entry_point)) {
LOG_ERROR(Kernel_SVC, "(name={}): invalid entry {:08x}", name, entry_point);
// TODO: Verify error
return ResultCode(ErrorDescription::InvalidAddress, ErrorModule::Kernel,