summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-07-11 08:25:40 +0800
committerTat-Chee Wan (USM)2011-07-11 08:25:40 +0800
commitb9bb70c16dba4c945b75f1a4b929e2ec304d2874 (patch)
treea7ebedc5d41bf9d662ae618fb3d1929137e42e5e
parent811650695764fd5da07fc950f6071be84f27c32f (diff)
fix incorrect stack pointer offset for debug stack save of abort state
SP was not updated after storing Aborted instruction PC to debug stack
-rw-r--r--Debugger/abort_handler.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/Debugger/abort_handler.S b/Debugger/abort_handler.S
index 7d2e158..882156a 100644
--- a/Debugger/abort_handler.S
+++ b/Debugger/abort_handler.S
@@ -75,7 +75,7 @@ data_abort_handler:
_common_abort_handler:
sub r0, lr, r2 /* R0: Adjust PC to ABORTed instruction address */
- str r0, [sp, #-4] /* Save PC to stack (R15 slot) */
+ stmfd sp!, {r0} /* Save ABORTed Instruction PC to stack (R15 slot) */
mov r3, sp /* Use R3 to write Banked R13-R14 of ABORT instruction */