summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/armv7m-context-switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/arm/armv7m-context-switch.c')
-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))
);
}