summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/lpc17xx/startup.s7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/lpc17xx/startup.s b/arch/arm/lpc17xx/startup.s
index e7c5311..2f79741 100644
--- a/arch/arm/lpc17xx/startup.s
+++ b/arch/arm/lpc17xx/startup.s
@@ -148,7 +148,12 @@ general_handler:
MOV R1, SP
SUB R1, #32
PUSH {R4-R11}
- B general_C_handler
+ MOV R4, LR
+ BL general_C_handler
+ AND R0, #7
+ ORR LR, R4, R0
+ POP {R4-R11}
+ BX LR
/* Reset Handler */