summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar bunnei2021-08-06 23:08:26 -0700
committerGravatar bunnei2021-12-06 16:39:16 -0800
commitf13fce3953b376d2321645b4de4d023da0d6713d (patch)
treeab9e11c67dd7998c13ae2478f4311d1c62614588 /src/core/hle/kernel
parentcore: hle: kernel: k_handle_table: Use KScopedDisableDispatch as necessary. (diff)
downloadyuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar.gz
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.tar.xz
yuzu-f13fce3953b376d2321645b4de4d023da0d6713d.zip
core: hle: kernel: k_process: DisableDispatch on main thread.
Diffstat (limited to 'src/core/hle/kernel')
-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
60 thread->GetContext64().cpu_registers[0] = 0; 60 thread->GetContext64().cpu_registers[0] = 0;
61 thread->GetContext32().cpu_registers[1] = thread_handle; 61 thread->GetContext32().cpu_registers[1] = thread_handle;
62 thread->GetContext64().cpu_registers[1] = thread_handle; 62 thread->GetContext64().cpu_registers[1] = thread_handle;
63 thread->DisableDispatch();
63 64
64 auto& kernel = system.Kernel(); 65 auto& kernel = system.Kernel();
65 // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires 66 // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires