From 30e365e4fccacff969c2210208f90cb05ad73b93 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 11 Dec 2019 07:11:47 -0500 Subject: kernel/svc: Correct function signature of SignalProcessWideKey This function doesn't actually return a result code, so we can amend the signature of it to match. --- src/core/hle/kernel/svc.cpp | 5 +---- src/core/hle/kernel/svc_wrap.h | 10 +++++----- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'src/core/hle/kernel') diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 35ff26c39..dbcdb0b88 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1650,8 +1650,7 @@ static ResultCode WaitProcessWideKeyAtomic(Core::System& system, VAddr mutex_add } /// Signal process wide key -static ResultCode SignalProcessWideKey(Core::System& system, VAddr condition_variable_addr, - s32 target) { +static void SignalProcessWideKey(Core::System& system, VAddr condition_variable_addr, s32 target) { LOG_TRACE(Kernel_SVC, "called, condition_variable_addr=0x{:X}, target=0x{:08X}", condition_variable_addr, target); @@ -1726,8 +1725,6 @@ static ResultCode SignalProcessWideKey(Core::System& system, VAddr condition_var system.PrepareReschedule(thread->GetProcessorID()); } } - - return RESULT_SUCCESS; } // Wait for an address (via Address Arbiter) diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index 9452e3b6f..29a2cfa9d 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -112,11 +112,6 @@ void SvcWrap(Core::System& system) { FuncReturn(system, retval); } -template -void SvcWrap(Core::System& system) { - FuncReturn(system, func(system, Param(system, 0), static_cast(Param(system, 1))).raw); -} - template void SvcWrap(Core::System& system) { FuncReturn(system, func(system, Param(system, 0), static_cast(Param(system, 1))).raw); @@ -327,6 +322,11 @@ void SvcWrap(Core::System& system) { func(system, static_cast(Param(system, 0))); } +template +void SvcWrap(Core::System& system) { + func(system, Param(system, 0), static_cast(Param(system, 1))); +} + template void SvcWrap(Core::System& system) { func(system, Param(system, 0), Param(system, 1)); -- cgit v1.2.3