[rtems commit] Fix exception handler for supporting FPU
Sebastian Huber
sebh at rtems.org
Wed Feb 15 13:19:14 UTC 2017
Module: rtems
Branch: 4.11
Commit: 5b5ef4e479dbb437b96601e3ef4e5fc508e22dd3
Changeset: http://git.rtems.org/rtems/commit/?id=5b5ef4e479dbb437b96601e3ef4e5fc508e22dd3
Author: Sudarshan Rajagopalan <sudarshan.rajagopalan at vecna.com>
Date: Thu Aug 27 14:19:24 2015 -0400
Fix exception handler for supporting FPU
Close #2401.
---
cpukit/score/cpu/arm/armv7m-exception-default.c | 8 ++++----
1 file 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 e890cdf..2ddc6fc 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"
More information about the vc
mailing list