From 76a2465655be493492446b4ef686f4b59b2e3969 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 11 Apr 2019 23:21:13 -0400 Subject: kernel/svc: Implement svcMapProcessCodeMemory This is utilized for mapping code modules into memory. Notably, the ldr service would call this in order to map objects into memory. --- src/core/hle/kernel/svc_wrap.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/hle/kernel/svc_wrap.h') diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index b3690b5f3..865473c6f 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -44,6 +44,13 @@ void SvcWrap(Core::System& system) { func(system, static_cast(Param(system, 0)), static_cast(Param(system, 1))).raw); } +template +void SvcWrap(Core::System& system) { + FuncReturn(system, func(system, static_cast(Param(system, 0)), Param(system, 1), + Param(system, 2), Param(system, 3)) + .raw); +} + template void SvcWrap(Core::System& system) { u32 param = 0; -- cgit v1.2.3