diff options
| author | bunnei <bunneidev@gmail.com> | 2021-08-18 15:42:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 15:42:46 -0700 |
| commit | aa40084c241129ef08081bae72bd5de1b4c86348 (patch) | |
| tree | b4f406cbf0f230cf9064040992ce3ef8bf54e5a7 /src/core/hle/kernel/k_process.cpp | |
| parent | 521e6ac17483e975e2fc731fed879e9f3edf7547 (diff) | |
| parent | aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0 (diff) | |
Merge pull request #6832 from bunnei/scheduler-improvements
kernel: Various improvements to scheduler
Diffstat (limited to 'src/core/hle/kernel/k_process.cpp')
| -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 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 |
