aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-06-21 15:30:27 -0700
committerGitHub <noreply@github.com>2022-06-21 15:30:27 -0700
commitd1d50f28c896f829e2bce22ad23a3b15637eb7fc (patch)
tree4485c500f91b1cb41bd81c16624b74d8c96b0d03 /src/core/hle/kernel/k_thread.cpp
parentf4d876be3ce425fa35e93f4b5bafb923548fb150 (diff)
parent6d5cc6b2a2ab5257914ccb720d11ebd05d77136e (diff)
Merge pull request #8468 from liamwhite/dispatch-tracking
kernel: fix some uses of disable_count
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r--src/core/hle/kernel/k_thread.cpp4
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 8d48a79014..2687891502 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;
}
}