summaryrefslogtreecommitdiff
path: root/arch/arm/lpc17xx/startup.s
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-01-27 01:09:21 -0800
committerPixel <pixel@nobis-crew.org>2011-01-27 01:09:21 -0800
commitbcb852cbc842433576945044590b8716932acbd4 (patch)
tree5843e100015010b03b5fe5b4641b19bf0323d86c /arch/arm/lpc17xx/startup.s
parente1122d5200cec30e239b18278e2bb5c7ec97a72b (diff)
Blah. I can't code with stack anymore it seems. Fixing the crash handler so that SP, and R4-R11 are properly displayed.
Diffstat (limited to 'arch/arm/lpc17xx/startup.s')
-rw-r--r--arch/arm/lpc17xx/startup.s1
1 files changed, 1 insertions, 0 deletions
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