diff options
| author | bunnei <bunneidev@gmail.com> | 2021-08-06 23:08:26 -0700 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2021-12-06 16:39:16 -0800 |
| commit | 3ca8aca719dfe3b71c464d1174afb895a2233703 (patch) | |
| tree | ab9e11c67dd7998c13ae2478f4311d1c62614588 /src/core/hle/kernel/k_process.cpp | |
| parent | 67e8861da4933ba07de6d7791bb02f4f5770f87a (diff) | |
core: hle: kernel: k_process: DisableDispatch on main thread.
Diffstat (limited to 'src/core/hle/kernel/k_process.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_process.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index 1aad061e16..7cc2061ea2 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -60,6 +60,7 @@ void SetupMainThread(Core::System& system, KProcess& owner_process, u32 priority thread->GetContext64().cpu_registers[0] = 0; thread->GetContext32().cpu_registers[1] = thread_handle; thread->GetContext64().cpu_registers[1] = thread_handle; + thread->DisableDispatch(); auto& kernel = system.Kernel(); // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires |
