diff options
| author | 2021-08-06 23:08:26 -0700 | |
|---|---|---|
| committer | 2021-12-06 16:39:16 -0800 | |
| commit | f13fce3953b376d2321645b4de4d023da0d6713d (patch) | |
| tree | ab9e11c67dd7998c13ae2478f4311d1c62614588 /src/core/hle/kernel | |
| parent | core: hle: kernel: k_handle_table: Use KScopedDisableDispatch as necessary. (diff) | |
| download | yuzu-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.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 | |||
| 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 |