From 725127eafa3433add89e92384938a0953e115d44 Mon Sep 17 00:00:00 2001 From: Ivan Chikish Date: Thu, 13 Jul 2023 14:23:14 +0300 Subject: [PATCH] [orbis-kernel] Hack PI mutex Maybe it will work as normal for now. --- orbis-kernel/src/umtx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orbis-kernel/src/umtx.cpp b/orbis-kernel/src/umtx.cpp index 000de7319..1c7143dd5 100644 --- a/orbis-kernel/src/umtx.cpp +++ b/orbis-kernel/src/umtx.cpp @@ -174,7 +174,7 @@ static ErrorCode do_lock_normal(Thread *thread, ptr m, uint flags, static ErrorCode do_lock_pi(Thread *thread, ptr m, uint flags, std::uint64_t ut, umutex_lock_mode mode) { ORBIS_LOG_TODO(__FUNCTION__, m, flags, ut, mode); - return ErrorCode::NOSYS; + return do_lock_normal(thread, m, flags, ut, mode); } static ErrorCode do_lock_pp(Thread *thread, ptr m, uint flags, std::uint64_t ut, umutex_lock_mode mode) { @@ -205,7 +205,7 @@ static ErrorCode do_unlock_normal(Thread *thread, ptr m, uint flags) { } static ErrorCode do_unlock_pi(Thread *thread, ptr m, uint flags) { ORBIS_LOG_TODO(__FUNCTION__, m, flags); - return ErrorCode::NOSYS; + return do_unlock_normal(thread, m, flags); } static ErrorCode do_unlock_pp(Thread *thread, ptr m, uint flags) { ORBIS_LOG_TODO(__FUNCTION__, m, flags);