summaryrefslogtreecommitdiff
path: root/arch/arm/lpc17xx/startup.s
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-01-27 21:19:47 -0800
committerPixel <pixel@nobis-crew.org>2011-01-27 21:19:47 -0800
commitbcfc9ad0a5d72f6d49fa96f221fdcb0930862539 (patch)
treebfa3d553290c3fef1e518afb7d6beda18acbe577 /arch/arm/lpc17xx/startup.s
parentd15180e03ed30deb56e929d5007a4977cc7a9bd5 (diff)
Slightly more stable crash handler.
Diffstat (limited to 'arch/arm/lpc17xx/startup.s')
-rw-r--r--arch/arm/lpc17xx/startup.s4
1 files changed, 2 insertions, 2 deletions
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