From: TuxSH Date: Thu, 22 Dec 2016 22:41:18 +0000 (+0100) Subject: Fix the implementation of svcGetProcessList X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=c23ed61457d03110276ddddf61f5bc3bf5183779;p=corbenik%2Fctrulib.git Fix the implementation of svcGetProcessList svcGetProcessList takes only one scalar output parameter, not two. --- diff --git a/libctru/source/svc.s b/libctru/source/svc.s index d1a3e10..a0513b2 100644 --- a/libctru/source/svc.s +++ b/libctru/source/svc.s @@ -421,13 +421,10 @@ SVC_BEGIN svcContinueDebugEvent bx lr SVC_BEGIN svcGetProcessList - push {r0, r1} + str r0, [sp, #-0x4]! svc 0x65 - ldr r3, [sp, #0] + ldr r3, [sp], #4 str r1, [r3] - ldr r3, [sp, #4] - str r2, [r3] - add sp, sp, #8 bx lr SVC_BEGIN svcGetDebugThreadContext