diff options
| author | 2019-12-12 21:32:36 -0500 | |
|---|---|---|
| committer | 2019-12-12 21:32:36 -0500 | |
| commit | 6d0d79109ba2997c6e789badac463fbbcfc7804a (patch) | |
| tree | dada601cc6e54ca945637b4cc0e66dbd36577a3f /src/core/hle/kernel | |
| parent | Merge pull request #3217 from jhol/fix-boost-include (diff) | |
| parent | kernel/svc: Correct function signature of SignalProcessWideKey (diff) | |
| download | yuzu-6d0d79109ba2997c6e789badac463fbbcfc7804a.tar.gz yuzu-6d0d79109ba2997c6e789badac463fbbcfc7804a.tar.xz yuzu-6d0d79109ba2997c6e789badac463fbbcfc7804a.zip | |
Merge pull request #3214 from lioncash/svc-func
kernel/svc: Amend function signature of SignalProcessWideKey
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 5 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc_wrap.h | 10 |
2 files changed, 6 insertions, 9 deletions
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 | |||
| 1650 | } | 1650 | } |
| 1651 | 1651 | ||
| 1652 | /// Signal process wide key | 1652 | /// Signal process wide key |
| 1653 | static ResultCode SignalProcessWideKey(Core::System& system, VAddr condition_variable_addr, | 1653 | static void SignalProcessWideKey(Core::System& system, VAddr condition_variable_addr, s32 target) { |
| 1654 | s32 target) { | ||
| 1655 | LOG_TRACE(Kernel_SVC, "called, condition_variable_addr=0x{:X}, target=0x{:08X}", | 1654 | LOG_TRACE(Kernel_SVC, "called, condition_variable_addr=0x{:X}, target=0x{:08X}", |
| 1656 | condition_variable_addr, target); | 1655 | condition_variable_addr, target); |
| 1657 | 1656 | ||
| @@ -1726,8 +1725,6 @@ static ResultCode SignalProcessWideKey(Core::System& system, VAddr condition_var | |||
| 1726 | system.PrepareReschedule(thread->GetProcessorID()); | 1725 | system.PrepareReschedule(thread->GetProcessorID()); |
| 1727 | } | 1726 | } |
| 1728 | } | 1727 | } |
| 1729 | |||
| 1730 | return RESULT_SUCCESS; | ||
| 1731 | } | 1728 | } |
| 1732 | 1729 | ||
| 1733 | // Wait for an address (via Address Arbiter) | 1730 | // 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) { | |||
| 112 | FuncReturn(system, retval); | 112 | FuncReturn(system, retval); |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | template <ResultCode func(Core::System&, u64, s32)> | ||
| 116 | void SvcWrap(Core::System& system) { | ||
| 117 | FuncReturn(system, func(system, Param(system, 0), static_cast<s32>(Param(system, 1))).raw); | ||
| 118 | } | ||
| 119 | |||
| 120 | template <ResultCode func(Core::System&, u64, u32)> | 115 | template <ResultCode func(Core::System&, u64, u32)> |
| 121 | void SvcWrap(Core::System& system) { | 116 | void SvcWrap(Core::System& system) { |
| 122 | FuncReturn(system, func(system, Param(system, 0), static_cast<u32>(Param(system, 1))).raw); | 117 | FuncReturn(system, func(system, Param(system, 0), static_cast<u32>(Param(system, 1))).raw); |
| @@ -327,6 +322,11 @@ void SvcWrap(Core::System& system) { | |||
| 327 | func(system, static_cast<s64>(Param(system, 0))); | 322 | func(system, static_cast<s64>(Param(system, 0))); |
| 328 | } | 323 | } |
| 329 | 324 | ||
| 325 | template <void func(Core::System&, u64, s32)> | ||
| 326 | void SvcWrap(Core::System& system) { | ||
| 327 | func(system, Param(system, 0), static_cast<s32>(Param(system, 1))); | ||
| 328 | } | ||
| 329 | |||
| 330 | template <void func(Core::System&, u64, u64)> | 330 | template <void func(Core::System&, u64, u64)> |
| 331 | void SvcWrap(Core::System& system) { | 331 | void SvcWrap(Core::System& system) { |
| 332 | func(system, Param(system, 0), Param(system, 1)); | 332 | func(system, Param(system, 0), Param(system, 1)); |