From 4b06bb7795001f4241074616638ccc100c74758e Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sun, 6 Nov 2016 00:05:12 +0100 Subject: [PATCH] Fix svcBreak handling bug --- exceptions/arm11/source/handlers.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exceptions/arm11/source/handlers.s b/exceptions/arm11/source/handlers.s index 7ee51c5..696077c 100644 --- a/exceptions/arm11/source/handlers.s +++ b/exceptions/arm11/source/handlers.s @@ -83,7 +83,8 @@ _commonHandler: cps #0x13 @ switch to supervisor mode cmp r10, #0 addne sp, #0x28 - ldr r2, [sp, #0x1c] @ implementation details of the official svc handler + ldmfd sp, {r8-r11}^ @ implementation details of the official svc handler + ldr r2, [sp, #0x1c] ldr r4, [sp, #0x18] msr cpsr_c, r3 @ restore processor mode tst r2, #0x20