summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 9b9f9402e..36e9c48f9 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1653,10 +1653,8 @@ static void SignalProcessWideKey(Core::System& system, VAddr condition_variable_
1653 u32 update_val = 0; 1653 u32 update_val = 0;
1654 const VAddr mutex_address = thread->GetMutexWaitAddress(); 1654 const VAddr mutex_address = thread->GetMutexWaitAddress();
1655 do { 1655 do {
1656 monitor.SetExclusive32(current_core, mutex_address);
1657
1658 // If the mutex is not yet acquired, acquire it. 1656 // If the mutex is not yet acquired, acquire it.
1659 mutex_val = memory.Read32(mutex_address); 1657 mutex_val = monitor.ExclusiveRead32(current_core, mutex_address);
1660 1658
1661 if (mutex_val != 0) { 1659 if (mutex_val != 0) {
1662 update_val = mutex_val | Mutex::MutexHasWaitersFlag; 1660 update_val = mutex_val | Mutex::MutexHasWaitersFlag;