diff options
| author | bunnei <bunneidev@gmail.com> | 2023-01-27 15:06:09 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-27 15:06:09 -0800 |
| commit | 32b2a72e7b68427c619d2dae4daef963a826bb9e (patch) | |
| tree | 50129dff54c382ab8dfe7bd1c0af803dcc9cf851 /src/core/hle/kernel/k_light_lock.cpp | |
| parent | e54d08fc1fa79f6c0e66f2e2ef06f21ca36cf881 (diff) | |
| parent | 693cad8e9b45cb61370bbc05e8e0022ea42044f9 (diff) | |
Merge pull request #9666 from liamwhite/wait-for-me
kernel: fix incorrect locking order in suspension
Diffstat (limited to 'src/core/hle/kernel/k_light_lock.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_light_lock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_light_lock.cpp b/src/core/hle/kernel/k_light_lock.cpp index 43185320d..d791acbe3 100644 --- a/src/core/hle/kernel/k_light_lock.cpp +++ b/src/core/hle/kernel/k_light_lock.cpp @@ -68,7 +68,7 @@ bool KLightLock::LockSlowPath(uintptr_t _owner, uintptr_t _cur_thread) { // Add the current thread as a waiter on the owner. KThread* owner_thread = reinterpret_cast<KThread*>(_owner & ~1ULL); - cur_thread->SetAddressKey(reinterpret_cast<uintptr_t>(std::addressof(tag))); + cur_thread->SetKernelAddressKey(reinterpret_cast<uintptr_t>(std::addressof(tag))); owner_thread->AddWaiter(cur_thread); // Begin waiting to hold the lock. |
