From c23ed61457d03110276ddddf61f5bc3bf5183779 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Thu, 22 Dec 2016 23:41:18 +0100 Subject: [PATCH] Fix the implementation of svcGetProcessList svcGetProcessList takes only one scalar output parameter, not two. --- libctru/source/svc.s | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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