From bcb852cbc842433576945044590b8716932acbd4 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 27 Jan 2011 01:09:21 -0800 Subject: Blah. I can't code with stack anymore it seems. Fixing the crash handler so that SP, and R4-R11 are properly displayed. --- arch/arm/lpc17xx/startup.s | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm/lpc17xx/startup.s') diff --git a/arch/arm/lpc17xx/startup.s b/arch/arm/lpc17xx/startup.s index 7537531..e7c5311 100644 --- a/arch/arm/lpc17xx/startup.s +++ b/arch/arm/lpc17xx/startup.s @@ -146,6 +146,7 @@ UsageFault_Handler: .type general_handler, %function general_handler: MOV R1, SP + SUB R1, #32 PUSH {R4-R11} B general_C_handler -- cgit v1.2.3