summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/i386/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/cpu/i386/cpu.c')
-rw-r--r--c/src/exec/score/cpu/i386/cpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/i386/cpu.c b/c/src/exec/score/cpu/i386/cpu.c
index 476e610b67..cabc285ce9 100644
--- a/c/src/exec/score/cpu/i386/cpu.c
+++ b/c/src/exec/score/cpu/i386/cpu.c
@@ -47,11 +47,12 @@ void _CPU_Initialize(
* Manual and should work on any coprocessor greater than
* the i80287.
*
- * NOTE: The NO RTEMS_WAIT form of the coprocessor instructions
+ * NOTE: The NO WAIT form of the coprocessor instructions
* MUST be used in case there is not a coprocessor
* to wait for.
*/
+#if CPU_HARDWARE_FP
fp_status = 0xa5a5;
asm volatile( "fninit" );
asm volatile( "fnstsw %0" : "=a" (fp_status) : "0" (fp_status) );
@@ -64,6 +65,8 @@ void _CPU_Initialize(
: "0" (fp_context)
);
}
+#endif
+
}
/*PAGE