ras_tex
iras_tex
ER ras_tex ( ID tskid, TEXPTN rasptn );
ER iras_tex ( ID tskid, TEXPTN rasptn );
This service call requests task exception handling for the task indicated by tskid. The task pending exception code for the task is ORed with the value indicated by rasptn.
When the conditions for starting task exception handling routine are satisfied, the task exception handling routine is invoked. Please refer to "6.2.3 The starting conditions of task exception handling routines" for the conditions for starting task exception handling routine.
When a task exception handling routine is invoked, the task pending exception code is cleared to 0, and the task exception handling is disabled. The pending exception code before clear and extended information for the task are passed to the task exception handling routine.
At the return from a task exception handling routine, the task exception is enabled, and the task restarts execution from the point immediately before the start of the task exception handling routine.
When a task exception handling routine returns, the RI600PX saves context registers for the task to the user stack. If the user stack is overflow, system goes down.
It is necessary to release from CPU locked state by the end of a task exception handling routine when shifting to the CPU locked state in a task exception handling routine. If CPU is locked at the end of a task exception handling routine, system goes down.
The interrupt priority level (PSW.IPL) before and after the start of a task exception handling routine is not changed. And the interrupt priority level before and after the return from a task exception handling routine is not changed. When the interrupt priority level at the end of a task exception handling routine is higher than the kernel interrupt mask level, system goes down.