]> Chaos Git - corbenik/ctrulib.git/commitdiff
Fix svcSetTimer.
authorSteven Smith <Steveice10@gmail.com>
Wed, 30 Dec 2015 02:46:38 +0000 (18:46 -0800)
committerSteven Smith <Steveice10@gmail.com>
Wed, 30 Dec 2015 02:46:38 +0000 (18:46 -0800)
libctru/source/svc.s

index 8dbd19a74ff151e3be03d240d5d4da9473632203..1c7dc2af68f8aa5922b2aac0d68dc5cf22728113 100644 (file)
@@ -137,7 +137,11 @@ SVC_BEGIN svcCreateTimer
        bx  lr
 
 SVC_BEGIN svcSetTimer
+       str r4, [sp, #-4]!
+       ldr r1, [sp, #4]
+       ldr r4, [sp, #8]
        svc 0x1B
+       ldr r4, [sp], #4
        bx  lr
 
 SVC_BEGIN svcCancelTimer