From bcfc9ad0a5d72f6d49fa96f221fdcb0930862539 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 27 Jan 2011 21:19:47 -0800 Subject: Slightly more stable crash handler. --- arch/arm/lpc17xx/startup.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/arm/lpc17xx/startup.s') diff --git a/arch/arm/lpc17xx/startup.s b/arch/arm/lpc17xx/startup.s index d0917b6..86365c1 100644 --- a/arch/arm/lpc17xx/startup.s +++ b/arch/arm/lpc17xx/startup.s @@ -169,9 +169,9 @@ UsageFault_Handler: MOV R0, 6 .type general_handler, %function general_handler: - MOV R1, SP - SUB R1, #32 PUSH {R4-R11} + MOV R1, SP + MOV R2, LR MOV R4, LR BL general_C_handler AND R0, #7 -- cgit v1.2.3