aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc/svc_lock.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-10 21:41:22 -0800
committerGitHub <noreply@github.com>2023-02-10 21:41:22 -0800
commitabd826ba87a7a02c2a0813f18f99915f8d6799b8 (patch)
tree208aad5a3c173905fab6b2c61532cbf984ca381b /src/core/hle/kernel/svc/svc_lock.cpp
parent023ac943aa0ed94836ca94bb33d49a2735275c3c (diff)
parent2415d37ea296e8856267375989a8b95cebe2575a (diff)
Merge pull request #9742 from liamwhite/svc-wrap-only
kernel/svc: switch to generated wrappers
Diffstat (limited to 'src/core/hle/kernel/svc/svc_lock.cpp')
-rw-r--r--src/core/hle/kernel/svc/svc_lock.cpp21
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