VxWorks Reference Manual : Libraries

taskArchLib

NAME

taskArchLib - architecture-specific task management routines

ROUTINES

taskSRSet( ) - set the task status register (MC680x0, MIPS, i386/i486)
taskSRInit( ) - initialize the default task status register (MIPS)

DESCRIPTION

This library provides architecture-specific task management routines that set and examine architecture-dependent registers. For information about architecture-independent task management facilities, see the manual entry for taskLib.

NOTE

There are no application-level routines in taskArchLib for SPARC or SH.

INCLUDE FILES

regs.h, taskArchLib.h

SEE ALSO

taskArchLib, taskLib


Libraries : Routines

taskSRSet( )

NAME

taskSRSet( ) - set the task status register (MC680x0, MIPS, i386/i486)

SYNOPSIS

STATUS taskSRSet
    (
    int    tid, /* task ID */
    UINT16 sr   /* new SR */
    )

DESCRIPTION

This routine sets the status register of a task that is not running (i.e., the TCB must not be that of the calling task). Debugging facilities use this routine to set the trace bit in the status register of a task that is being single-stepped.

RETURNS

OK, or ERROR if the task ID is invalid.

SEE ALSO

taskArchLib


Libraries : Routines

taskSRInit( )

NAME

taskSRInit( ) - initialize the default task status register (MIPS)

SYNOPSIS

ULONG taskSRInit
    (
    ULONG newSRValue /* new default task status register */
    )

DESCRIPTION

This routine sets the default status register for system-wide tasks. All tasks will be spawned with the status register set to this value; thus, it must be called before kernelInit( ).

RETURNS

The previous value of the default status register.

SEE ALSO

taskArchLib