VxWorks Reference Manual : Libraries
fppLib - floating-point coprocessor support library
fppInit( ) - initialize floating-point coprocessor support
This library provides a general interface to the floating-point coprocessor. To activate floating-point support, fppInit( ) must be called before any tasks using the coprocessor are spawned. This is done automatically by the root task, usrRoot( ), in usrConfig.c when the configuration macro INCLUDE_HW_FP is defined.
For information about architecture-dependent floating-point routines, see the manual entry for fppArchLib.
The fppShow( ) routine displays coprocessor registers on a per-task basis. For information on this facility, see the manual entries for fppShow and fppShow( ).
VX_FP_TASK OPTION Saving and restoring floating-point registers adds to the context switch time of a task. Therefore, floating-point registers are not saved and restored for every task. Only those tasks spawned with the task option VX_FP_TASK will have floating-point registers saved and restored.
If a task does any floating-point operations, it must be spawned with VX_FP_TASK.
Floating-point registers are not saved and restored for interrupt service routines connected with intConnect( ). However, if necessary, an interrupt service routine can save and restore floating-point registers by calling routines in fppArchLib.
fppLib.h
fppLib, fppArchLib, fppShow, intConnect( ), VxWorks Programmer's Guide: Basic OS
fppInit( ) - initialize floating-point coprocessor support
void fppInit (void)
This routine initializes floating-point coprocessor support and must be called before using the floating-point coprocessor. This is done automatically by the root task, usrRoot( ), in usrConfig.c when the configuration macro INCLUDE_HW_FP is defined.
N/A