summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc_wrap.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-20 20:03:52 +0100
committerLioncash <mathew1800@gmail.com>2019-04-02 06:47:14 +0200
commitcb2bce8006189d866fb468b497d1ddcf2fd99ccf (patch)
tree3ec965e9a4c9ed69fda4cdfd859b88ad6b48bb66 /src/core/hle/kernel/svc_wrap.h
parentMerge pull request #2316 from ReinUsesLisp/fixup-process (diff)
downloadyuzu-cb2bce8006189d866fb468b497d1ddcf2fd99ccf.tar
yuzu-cb2bce8006189d866fb468b497d1ddcf2fd99ccf.tar.gz
yuzu-cb2bce8006189d866fb468b497d1ddcf2fd99ccf.tar.bz2
yuzu-cb2bce8006189d866fb468b497d1ddcf2fd99ccf.tar.lz
yuzu-cb2bce8006189d866fb468b497d1ddcf2fd99ccf.tar.xz
yuzu-cb2bce8006189d866fb468b497d1ddcf2fd99ccf.tar.zst
yuzu-cb2bce8006189d866fb468b497d1ddcf2fd99ccf.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc_wrap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h
index 2a2c2c5ea..b3733680f 100644
--- a/src/core/hle/kernel/svc_wrap.h
+++ b/src/core/hle/kernel/svc_wrap.h
@@ -78,6 +78,14 @@ void SvcWrap() {
FuncReturn(retval);
}
+template <ResultCode func(u32*, u64, u32)>
+void SvcWrap() {
+ u32 param_1 = 0;
+ const u32 retval = func(&param_1, Param(1), static_cast<u32>(Param(2))).raw;
+ Core::CurrentArmInterface().SetReg(1, param_1);
+ FuncReturn(retval);
+}
+
template <ResultCode func(u64*, u32)>
void SvcWrap() {
u64 param_1 = 0;