aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_process.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-06 23:08:26 -0700
committerbunnei <bunneidev@gmail.com>2021-08-07 12:18:47 -0700
commitcba49de65b83caf50ea3f65c83f510c8ce93811f (patch)
treefe63918a09633700793d8276ea30e84afa34d5ba /src/core/hle/kernel/k_process.cpp
parent92ef6e44ee0b29162c93576ea939f770d5f79ebc (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.cpp1
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 8ead1a769d..3d7e6707ea 100644
--- a/src/core/hle/kernel/k_process.cpp
+++ b/src/core/hle/kernel/k_process.cpp
@@ -59,6 +59,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