1
0
Fork 0
forked from suyu/suyu

Kernel/Thread: Remove use of Memory::GetPointer

This commit is contained in:
MerryMage 2016-04-16 10:27:32 +01:00 committed by Subv
parent aa84cab4e9
commit 1ebaaf9bb1

View file

@ -403,7 +403,7 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point,
priority = new_priority;
}
if (!Memory::GetPointer(entry_point)) {
if (!Memory::IsValidVirtualAddress(entry_point)) {
LOG_ERROR(Kernel_SVC, "(name=%s): invalid entry %08x", name.c_str(), entry_point);
// TODO: Verify error
return ResultCode(ErrorDescription::InvalidAddress, ErrorModule::Kernel,