VxWorks Reference Manual : Libraries
taskArchLib - architecture-specific task management routines
taskSRSet( ) - set the task status register (MC680x0, MIPS, i386/i486)
taskSRInit( ) - initialize the default task status register (MIPS)
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.
There are no application-level routines in taskArchLib for SPARC or SH.
regs.h, taskArchLib.h
taskSRSet( ) - set the task status register (MC680x0, MIPS, i386/i486)
STATUS taskSRSet ( int tid, /* task ID */ UINT16 sr /* new SR */ )
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.
OK, or ERROR if the task ID is invalid.
taskSRInit( ) - initialize the default task status register (MIPS)
ULONG taskSRInit ( ULONG newSRValue /* new default task status register */ )
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( ).
The previous value of the default status register.