summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_process.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-07 08:08:26 +0200
committerbunnei <bunneidev@gmail.com>2021-12-07 01:39:16 +0100
commitf13fce3953b376d2321645b4de4d023da0d6713d (patch)
treeab9e11c67dd7998c13ae2478f4311d1c62614588 /src/core/hle/kernel/k_process.cpp
parentcore: hle: kernel: k_handle_table: Use KScopedDisableDispatch as necessary. (diff)
downloadyuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar.gz
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar.bz2
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar.lz
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar.xz
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar.zst
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.zip
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 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