diff options
| author | 2021-08-06 23:08:26 -0700 | |
|---|---|---|
| committer | 2021-08-07 12:18:47 -0700 | |
| commit | 7569d6774d2d445d261713b42472fd429ce782a0 (patch) | |
| tree | fe63918a09633700793d8276ea30e84afa34d5ba /src | |
| parent | core: hle: kernel: k_handle_table: Use KScopedDisableDispatch as necessary. (diff) | |
| download | yuzu-7569d6774d2d445d261713b42472fd429ce782a0.tar.gz yuzu-7569d6774d2d445d261713b42472fd429ce782a0.tar.xz yuzu-7569d6774d2d445d261713b42472fd429ce782a0.zip | |
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 8ead1a769..3d7e6707e 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 | |||
| 59 | thread->GetContext64().cpu_registers[0] = 0; | 59 | thread->GetContext64().cpu_registers[0] = 0; |
| 60 | thread->GetContext32().cpu_registers[1] = thread_handle; | 60 | thread->GetContext32().cpu_registers[1] = thread_handle; |
| 61 | thread->GetContext64().cpu_registers[1] = thread_handle; | 61 | thread->GetContext64().cpu_registers[1] = thread_handle; |
| 62 | thread->DisableDispatch(); | ||
| 62 | 63 | ||
| 63 | auto& kernel = system.Kernel(); | 64 | auto& kernel = system.Kernel(); |
| 64 | // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires | 65 | // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires |