summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-05-09 00:53:13 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:36:14 +0200
commit467d43570e10b98fa33067352d35fe62ceb3cb9e (patch)
tree830b0a3b6bc7675ce3c988c86d000f1a4287214c /src/core/hle/kernel/mutex.cpp
parentARMInterface/Externals: Update dynarmic and fit to latest version. (diff)
downloadyuzu-467d43570e10b98fa33067352d35fe62ceb3cb9e.tar
yuzu-467d43570e10b98fa33067352d35fe62ceb3cb9e.tar.gz
yuzu-467d43570e10b98fa33067352d35fe62ceb3cb9e.tar.bz2
yuzu-467d43570e10b98fa33067352d35fe62ceb3cb9e.tar.lz
yuzu-467d43570e10b98fa33067352d35fe62ceb3cb9e.tar.xz
yuzu-467d43570e10b98fa33067352d35fe62ceb3cb9e.tar.zst
yuzu-467d43570e10b98fa33067352d35fe62ceb3cb9e.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/mutex.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index 32dc1ffae..8f6c944d1 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -9,7 +9,6 @@
#include "common/assert.h"
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/core.h"
#include "core/hle/kernel/errors.h"
#include "core/hle/kernel/handle_table.h"
#include "core/hle/kernel/kernel.h"
@@ -126,11 +125,11 @@ ResultCode Mutex::TryAcquire(VAddr address, Handle holding_thread_handle,
std::pair<ResultCode, std::shared_ptr<Thread>> Mutex::Unlock(std::shared_ptr<Thread> owner,
VAddr address) {
- // The mutex address must be 4-byte aligned
- if ((address % sizeof(u32)) != 0) {
- LOG_ERROR(Kernel, "Address is not 4-byte aligned! address={:016X}", address);
- return {ERR_INVALID_ADDRESS, nullptr};
- }
+ // The mutex address must be 4-byte aligned
+ if ((address % sizeof(u32)) != 0) {
+ LOG_ERROR(Kernel, "Address is not 4-byte aligned! address={:016X}", address);
+ return {ERR_INVALID_ADDRESS, nullptr};
+ }
auto [new_owner, num_waiters] = GetHighestPriorityMutexWaitingThread(owner, address);
if (new_owner == nullptr) {