summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudarshan Rajagopalan <sudarshan.rajagopalan@vecna.com>2015-08-27 14:19:24 -0400
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-23 14:52:55 +0200
commit7263a50d6c0edc657ac33295dd0d83cf2a8cad9e (patch)
treeb833c49fa8089b56ee8bf0c39e8b3fd16dc4c757
parent314ff3c43ff1c00232e201df68e39cc0e5600d95 (diff)
downloadrtems-7263a50d6c0edc657ac33295dd0d83cf2a8cad9e.tar.bz2
Fix exception handler for supporting FPU
-rw-r--r--cpukit/score/cpu/arm/armv7m-exception-default.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/cpu/arm/armv7m-exception-default.c b/cpukit/score/cpu/arm/armv7m-exception-default.c
index e890cdfe96..2ddc6fc772 100644
--- a/cpukit/score/cpu/arm/armv7m-exception-default.c
+++ b/cpukit/score/cpu/arm/armv7m-exception-default.c
@@ -28,10 +28,10 @@ void __attribute__((naked)) _ARMV7M_Exception_default( void )
"mov r2, lr\n"
"mrs r1, msp\n"
"mrs r0, psp\n"
- "cmn r2, #3\n"
- "itt ne\n"
- "movne r0, r1\n"
- "addne r0, %[cpufsz]\n"
+ "tst lr, #4\n"
+ "itt eq\n"
+ "moveq r0, r1\n"
+ "addeq r0, %[cpufsz]\n"
"add r2, r0, %[v7mlroff]\n"
"add r1, sp, %[cpulroff]\n"
"ldm r2, {r3-r5}\n"