kernel: be more careful about initialization path for HLE threads

This commit is contained in:
Liam
2022-07-09 18:47:32 -04:00
parent da07e13e07
commit 77137583cd
2 changed files with 8 additions and 1 deletions

View File

@ -70,6 +70,7 @@ void KScheduler::EnableScheduling(KernelCore& kernel, u64 cores_needing_scheduli
GetCurrentThread(kernel).IfDummyThreadTryWait();
}
GetCurrentThread(kernel).EnableDispatch();
ASSERT(GetCurrentThread(kernel).GetState() != ThreadState::Waiting);
return;
}