2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org>

* cpu.c (_CPU_Initialize): Add fpu initialization.
This commit is contained in:
Ralf Corsepius
2006-03-17 08:38:26 +00:00
parent 01a76a6f9f
commit a3de1b48f6
2 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org> 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}__. * rtems/score/cpu.h: Setup CPU_*_ENDIAN from GCC's__MIPS{EL|EB}__.
(Partial merger of submission by Bruce Robinson <brucer@pmccorp.com>). (Partial merger of submission by Bruce Robinson <brucer@pmccorp.com>).

View File

@@ -81,8 +81,12 @@ void _CPU_Initialize(
* the task's during Context_Initialize. * the task's during Context_Initialize.
*/ */
#if CPU_HARDWARE_FP
/* FP context initialization support goes here */ /* 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; _CPU_Table = *cpu_table;
} }