diff options
author | Liam <byteslice@airmail.cc> | 2022-06-16 02:53:49 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-16 02:53:49 +0200 |
commit | 744a20876301bd97dab06022e38a07553434f10f (patch) | |
tree | 629a48fa2061504484c692a35feefb2d076e35e9 /src/core/hle/kernel/k_thread.cpp | |
parent | Merge pull request #8457 from liamwhite/kprocess-suspend (diff) | |
download | yuzu-744a20876301bd97dab06022e38a07553434f10f.tar yuzu-744a20876301bd97dab06022e38a07553434f10f.tar.gz yuzu-744a20876301bd97dab06022e38a07553434f10f.tar.bz2 yuzu-744a20876301bd97dab06022e38a07553434f10f.tar.lz yuzu-744a20876301bd97dab06022e38a07553434f10f.tar.xz yuzu-744a20876301bd97dab06022e38a07553434f10f.tar.zst yuzu-744a20876301bd97dab06022e38a07553434f10f.zip |
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index 8d48a7901..268789150 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -225,7 +225,7 @@ ResultCode KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_s // Setup the stack parameters. StackParameters& sp = GetStackParameters(); sp.cur_thread = this; - sp.disable_count = 0; + sp.disable_count = 1; SetInExceptionHandler(); // Set thread ID. @@ -1014,8 +1014,6 @@ ResultCode KThread::Run() { // Set our state and finish. SetState(ThreadState::Runnable); - DisableDispatch(); - return ResultSuccess; } } |