summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc_wrap.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-08 03:24:19 +0100
committerbunnei <bunneidev@gmail.com>2018-01-11 05:27:59 +0100
commitba02f0deefcf3e748615cc00ad99bcae4d681fa3 (patch)
tree5c94e8e34134e3efc8bd583ed799d96738064ff3 /src/core/hle/kernel/svc_wrap.h
parentsvc: Stub SetMemoryAttribute (diff)
downloadyuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar
yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.gz
yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.bz2
yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.lz
yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.xz
yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.zst
yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.zip
Diffstat (limited to 'src/core/hle/kernel/svc_wrap.h')
-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 befc4a727..31cf71a0d 100644
--- a/src/core/hle/kernel/svc_wrap.h
+++ b/src/core/hle/kernel/svc_wrap.h
@@ -132,6 +132,14 @@ void SvcWrap() {
FuncReturn(retval);
}
+template <ResultCode func(u32*, u64, u64, u32)>
+void SvcWrap() {
+ u32 param_1 = 0;
+ u32 retval = func(&param_1, PARAM(1), PARAM(2), (u32)(PARAM(3) & 0xFFFFFFFF)).raw;
+ Core::CPU().SetReg(1, param_1);
+ FuncReturn(retval);
+}
+
////////////////////////////////////////////////////////////////////////////////////////////////////
// Function wrappers that return type u32