VxWorks Reference Manual : Libraries

fppLib

NAME

fppLib - floating-point coprocessor support library

ROUTINES

fppInit( ) - initialize floating-point coprocessor support

DESCRIPTION

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.

NOTE

If a task does any floating-point operations, it must be spawned with VX_FP_TASK.

INTERRUPT LEVEL

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.

INCLUDE FILES

fppLib.h

SEE ALSO

fppLib, fppArchLib, fppShow, intConnect( ), VxWorks Programmer's Guide: Basic OS


Libraries : Routines

fppInit( )

NAME

fppInit( ) - initialize floating-point coprocessor support

SYNOPSIS


void fppInit (void)

DESCRIPTION

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.

RETURNS

N/A

SEE ALSO

fppLib