]> Chaos Git - corbenik/ctrulib.git/commitdiff
Fixed svcWaitSynchronizationN, previously this didn't save/restore r4 on the stack.
authoryellows8 <yellows8@users.noreply.github.com>
Tue, 25 Nov 2014 03:58:07 +0000 (22:58 -0500)
committeryellows8 <yellows8@users.noreply.github.com>
Tue, 25 Nov 2014 03:58:07 +0000 (22:58 -0500)
libctru/source/svc.s

index f918369956f06d32ee36c762f98a6844b97a2f0b..43457aa98aba1b01a842dba9c7e534f434424db8 100644 (file)
@@ -187,11 +187,13 @@ svcWaitSynchronization:
 .type svcWaitSynchronizationN, %function
 svcWaitSynchronizationN:
        str r5, [sp, #-4]!
+       str r4, [sp, #-4]!
        mov r5, r0
-       ldr r0, [sp, #0x4]
-       ldr r4, [sp, #0x4+0x4]
+       ldr r0, [sp, #0x8]
+       ldr r4, [sp, #0x8+0x4]
        svc 0x25
        str r1, [r5]
+       ldr r4, [sp], #4
        ldr r5, [sp], #4
        bx lr