yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

core: hle: kernel: k_process: DisableDispatch on main thread.

This commit is contained in:
bunnei 2021-08-06 23:08:26 -07:00
parent 4c18a207a4
commit f13fce3953
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ void SetupMainThread(Core::System& system, KProcess& owner_process, u32 priority
thread->GetContext64().cpu_registers[0] = 0; thread->GetContext64().cpu_registers[0] = 0;
thread->GetContext32().cpu_registers[1] = thread_handle; thread->GetContext32().cpu_registers[1] = thread_handle;
thread->GetContext64().cpu_registers[1] = thread_handle; thread->GetContext64().cpu_registers[1] = thread_handle;
thread->DisableDispatch();
auto& kernel = system.Kernel(); auto& kernel = system.Kernel();
// Threads by default are dormant, wake up the main thread so it runs when the scheduler fires // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires