summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc_wrap.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-04 21:11:18 +0100
committerLioncash <mathew1800@gmail.com>2018-12-04 21:47:55 +0100
commit2a1f59b3017d6937138bfeacd9c04339f7d1526d (patch)
treedfff027340afbdd1d44498c02936528c1036e401 /src/core/hle/kernel/svc_wrap.h
parentMerge pull request #1845 from lioncash/nro (diff)
downloadyuzu-2a1f59b3017d6937138bfeacd9c04339f7d1526d.tar
yuzu-2a1f59b3017d6937138bfeacd9c04339f7d1526d.tar.gz
yuzu-2a1f59b3017d6937138bfeacd9c04339f7d1526d.tar.bz2
yuzu-2a1f59b3017d6937138bfeacd9c04339f7d1526d.tar.lz
yuzu-2a1f59b3017d6937138bfeacd9c04339f7d1526d.tar.xz
yuzu-2a1f59b3017d6937138bfeacd9c04339f7d1526d.tar.zst
yuzu-2a1f59b3017d6937138bfeacd9c04339f7d1526d.zip
Diffstat (limited to 'src/core/hle/kernel/svc_wrap.h')
-rw-r--r--src/core/hle/kernel/svc_wrap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h
index fa1116624..24aef46c9 100644
--- a/src/core/hle/kernel/svc_wrap.h
+++ b/src/core/hle/kernel/svc_wrap.h
@@ -59,6 +59,19 @@ void SvcWrap() {
FuncReturn(retval);
}
+template <ResultCode func(u32*, u32*)>
+void SvcWrap() {
+ u32 param_1 = 0;
+ u32 param_2 = 0;
+ const u32 retval = func(&param_1, &param_2).raw;
+
+ auto& arm_interface = Core::CurrentArmInterface();
+ arm_interface.SetReg(1, param_1);
+ arm_interface.SetReg(2, param_2);
+
+ FuncReturn(retval);
+}
+
template <ResultCode func(u32*, u64)>
void SvcWrap() {
u32 param_1 = 0;