[rtems commit] arm: Fix exception frame information

Sebastian Huber sebh at rtems.org
Tue Jul 16 06:26:17 UTC 2013


Module:    rtems
Branch:    master
Commit:    4e5608dd4dee2062144318fe64ad2bd065a8d691
Changeset: http://git.rtems.org/rtems/commit/?id=4e5608dd4dee2062144318fe64ad2bd065a8d691

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul 16 08:25:41 2013 +0200

arm: Fix exception frame information

Use the right stack pointer value for the exception frame.  Assume that
we do not have a double abort exception.

---

 cpukit/score/cpu/arm/armv4-exception-default.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/cpu/arm/armv4-exception-default.S b/cpukit/score/cpu/arm/armv4-exception-default.S
index ad68b48..3278381 100644
--- a/cpukit/score/cpu/arm/armv4-exception-default.S
+++ b/cpukit/score/cpu/arm/armv4-exception-default.S
@@ -108,7 +108,7 @@ save_more_context:
 	orr	r5, r3, #ARM_PSR_I
 	bic	r5, #ARM_PSR_T
 	msr	cpsr, r5
-	sub	r0, sp, #ARM_EXCEPTION_FRAME_SIZE
+	mov	r0, sp
 	mov	r1, lr
 	msr	cpsr, r7
 	mov	r5, #0




More information about the vc mailing list