diff options
author | bunnei <bunneidev@gmail.com> | 2023-02-11 06:41:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-11 06:41:22 +0100 |
commit | abd826ba87a7a02c2a0813f18f99915f8d6799b8 (patch) | |
tree | 208aad5a3c173905fab6b2c61532cbf984ca381b /src/core/hle/kernel/svc/svc_lock.cpp | |
parent | Merge pull request #9759 from german77/pro_controller (diff) | |
parent | kernel/svc: switch to generated wrappers (diff) | |
download | yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.gz yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.bz2 yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.lz yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.xz yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.zst yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.zip |
Diffstat (limited to 'src/core/hle/kernel/svc/svc_lock.cpp')
-rw-r--r-- | src/core/hle/kernel/svc/svc_lock.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/core/hle/kernel/svc/svc_lock.cpp b/src/core/hle/kernel/svc/svc_lock.cpp index 45f2a6553..7005ac30b 100644 --- a/src/core/hle/kernel/svc/svc_lock.cpp +++ b/src/core/hle/kernel/svc/svc_lock.cpp @@ -27,10 +27,6 @@ Result ArbitrateLock(Core::System& system, Handle thread_handle, VAddr address, return system.Kernel().CurrentProcess()->WaitForAddress(thread_handle, address, tag); } -Result ArbitrateLock32(Core::System& system, Handle thread_handle, u32 address, u32 tag) { - return ArbitrateLock(system, thread_handle, address, tag); -} - /// Unlock a mutex Result ArbitrateUnlock(Core::System& system, VAddr address) { LOG_TRACE(Kernel_SVC, "called address=0x{:X}", address); @@ -50,8 +46,21 @@ Result ArbitrateUnlock(Core::System& system, VAddr address) { return system.Kernel().CurrentProcess()->SignalToAddress(address); } -Result ArbitrateUnlock32(Core::System& system, u32 address) { - return ArbitrateUnlock(system, address); +Result ArbitrateLock64(Core::System& system, Handle thread_handle, uint64_t address, uint32_t tag) { + R_RETURN(ArbitrateLock(system, thread_handle, address, tag)); +} + +Result ArbitrateUnlock64(Core::System& system, uint64_t address) { + R_RETURN(ArbitrateUnlock(system, address)); +} + +Result ArbitrateLock64From32(Core::System& system, Handle thread_handle, uint32_t address, + uint32_t tag) { + R_RETURN(ArbitrateLock(system, thread_handle, address, tag)); +} + +Result ArbitrateUnlock64From32(Core::System& system, uint32_t address) { + R_RETURN(ArbitrateUnlock(system, address)); } } // namespace Kernel::Svc |