-
ref_tex
iref_tex
-
Reference task exception state.
ER ref_tex (ID tskid, T_RTEX *pk_rtex);
ER iref_tex (ID tskid, T_RTEX *pk_rtex);
|
|
|
|
ID tskid;
|
Value: ID number of the task.
|
|
T_RTEX *pk_rtex;
|
Pointer to the packet returning the task exception state.
|
[Task exception state packet: T_RTEX]
typedef struct t_rtex {
STAT texstat; /*Task exception handling state*/
UINT pndptn; /*Pending exception code*/
} T_RTEX;
|
Stores task exception state of the task specified by parameter
tskid in the area specified by parameter
pk_rtex.
-
tskstat
Stores task exception handling state.
-
pndptn
Stores the pending exception code.
|
|
|
|
|
|
|
|
|
|
|
- When this service call was issued from a non-task, TSK_SELF was specified for tskid.
|
|
|
- This service call was issued in the CPU locked state.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
Note When the iref_tex is issued from task or the ref_tex is issued from non-task, the context error is not detected and normal operation of the system is not guaranteed.
|
|
|
Memory access violation. (only for ref_tex)
- The operand-write access to the area indicated by pk_rtex has not been permitted to the invoking task.
|
|
|
- The task specified by tskid does not exist.
|