From b9bb70c16dba4c945b75f1a4b929e2ec304d2874 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Mon, 11 Jul 2011 08:25:40 +0800 Subject: fix incorrect stack pointer offset for debug stack save of abort state SP was not updated after storing Aborted instruction PC to debug stack --- Debugger/abort_handler.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3