[rtems commit] arm: PR2186: Fix compile error

Sebastian Huber sebh at rtems.org
Thu Aug 14 12:19:47 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Aug 14 14:27:40 2014 +0200

arm: PR2186: Fix compile error

---

 cpukit/score/cpu/arm/armv7m-context-switch.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/cpu/arm/armv7m-context-switch.c b/cpukit/score/cpu/arm/armv7m-context-switch.c
index 359a1a7..aa09276 100644
--- a/cpukit/score/cpu/arm/armv7m-context-switch.c
+++ b/cpukit/score/cpu/arm/armv7m-context-switch.c
@@ -54,9 +54,11 @@ void __attribute__((naked)) _CPU_Context_switch(
     "bx lr\n"
     :
     : [spctxoff] "J" (offsetof(Context_Control, register_sp)),
+#ifdef ARM_MULTILIB_VFP
+      [d8off] "J" (ARM_CONTEXT_CONTROL_D8_OFFSET),
+#endif
       [isrctxoff] "J" (offsetof(Context_Control, isr_nest_level)),
-      [isrpcpuoff] "J" (offsetof(Per_CPU_Control, isr_nest_level)),
-      [d8off] "J" (ARM_CONTEXT_CONTROL_D8_OFFSET)
+      [isrpcpuoff] "J" (offsetof(Per_CPU_Control, isr_nest_level))
   );
 }
 



More information about the vc mailing list