From 4c6a2f7ab181557efa8abd7610aacfb19537d74f Mon Sep 17 00:00:00 2001 From: TuxSH Date: Fri, 26 Aug 2016 11:38:50 +0200 Subject: [PATCH] Fix bug in svcBreak handling. --- exceptions/arm11/source/handlers.s | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exceptions/arm11/source/handlers.s b/exceptions/arm11/source/handlers.s index 48bff21..3094e60 100644 --- a/exceptions/arm11/source/handlers.s +++ b/exceptions/arm11/source/handlers.s @@ -81,6 +81,8 @@ _commonHandler: cmp r4, r5 bne noFPUInitNorSvcBreak cps #0x13 @ switch to supervisor mode + cmp r10, #0 + addne sp, #0x28 ldr r2, [sp, #0x1c] @ implementation details of the official svc handler ldr r4, [sp, #0x18] msr cpsr_c, r3 @ restore processor mode