summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-03-17 08:38:26 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-03-17 08:38:26 +0000
commita3de1b48f6d148d06c77e16824c22afac43e3306 (patch)
tree8dacd46c1e6e2a34e7e4ea6118c705b959702471 /cpukit
parent2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-a3de1b48f6d148d06c77e16824c22afac43e3306.tar.bz2
2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* cpu.c (_CPU_Initialize): Add fpu initialization.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/cpu/mips/ChangeLog1
-rw-r--r--cpukit/score/cpu/mips/cpu.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/score/cpu/mips/ChangeLog b/cpukit/score/cpu/mips/ChangeLog
index 6568d6449e..51ec0f48f9 100644
--- a/cpukit/score/cpu/mips/ChangeLog
+++ b/cpukit/score/cpu/mips/ChangeLog
@@ -1,5 +1,6 @@
2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org>
+ * cpu.c (_CPU_Initialize): Add fpu initialization.
* rtems/score/cpu.h: Setup CPU_*_ENDIAN from GCC's__MIPS{EL|EB}__.
(Partial merger of submission by Bruce Robinson <brucer@pmccorp.com>).
diff --git a/cpukit/score/cpu/mips/cpu.c b/cpukit/score/cpu/mips/cpu.c
index 5cf43917f0..7ce5d685ec 100644
--- a/cpukit/score/cpu/mips/cpu.c
+++ b/cpukit/score/cpu/mips/cpu.c
@@ -81,8 +81,12 @@ void _CPU_Initialize(
* the task's during Context_Initialize.
*/
+#if CPU_HARDWARE_FP
/* FP context initialization support goes here */
-
+ _CPU_Null_fp_context.fpcs = 0x1000000; /* Set FS flag in floating point coprocessor
+ control register to prevent underflow and
+ inexact exceptions */
+#endif
_CPU_Table = *cpu_table;
}