From 1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 13 Oct 2018 14:31:46 -0400 Subject: svc: Implement svcGetProcessInfo A fairly basic service function, which only appears to currently support retrieving the process state. This also alters the ProcessStatus enum to contain all of the values that a kernel process seems to be able of reporting with regards to state. --- src/core/hle/kernel/svc_wrap.h | 8 ++++++++ 1 file changed, 8 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 cbb80c3c4..b09753c80 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -77,6 +77,14 @@ void SvcWrap() { FuncReturn(retval); } +template +void SvcWrap() { + u64 param_1 = 0; + u32 retval = func(¶m_1, static_cast(Param(1)), static_cast(Param(2))).raw; + Core::CurrentArmInterface().SetReg(1, param_1); + FuncReturn(retval); +} + template void SvcWrap() { FuncReturn(func(static_cast(Param(0)), Param(1)).raw); -- cgit v1.2.3