summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-14 14:27:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-14 14:27:40 +0200
commit1a2d349776f8072ec6a45cc8dfa4fa02d87489f4 (patch)
tree829b9cc1049a22cf168f05aef760afa745a639b7
parentor1k/.../preinstall.am: Add missing file (diff)
downloadrtems-1a2d349776f8072ec6a45cc8dfa4fa02d87489f4.tar.bz2
arm: PR2186: Fix compile error
-rw-r--r--cpukit/score/cpu/arm/armv7m-context-switch.c6
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 359a1a7a9b..aa09276928 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))
);
}