From a2cfa2be1668afbc9a8bb187614ad29278dc42a4 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Fri, 11 Nov 2016 00:30:49 +0100 Subject: [PATCH] Fix same handling bug on arm9 --- exceptions/arm9/source/handlers.s | 1 + 1 file changed, 1 insertion(+) diff --git a/exceptions/arm9/source/handlers.s b/exceptions/arm9/source/handlers.s index fe73d65..12b4491 100644 --- a/exceptions/arm9/source/handlers.s +++ b/exceptions/arm9/source/handlers.s @@ -62,6 +62,7 @@ _commonHandler: bic r5, r3, #0xf orr r5, #0x3 msr cpsr_c, r5 @ switch to supervisor mode + ldmfd sp, {r8-r11}^ ldr r2, [sp, #0x1c] @ implementation details of the official svc handler ldr r4, [sp, #0x18] msr cpsr_c, r3 @ restore processor mode