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 | f13fce3953b376d2321645b4de4d023da0d6713d (patch) | |
tree | ab9e11c67dd7998c13ae2478f4311d1c62614588 /src | |
parent | 4c18a207a4898f391afab5d7e44c1c2921bc9d6f (diff) |
core: hle: kernel: k_process: DisableDispatch on main thread.
Diffstat (limited to 'src')
-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 1aad061e1..7cc2061ea 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 |