-
def_tex
-
Define task exception handling routine.
ER def_tex (ID tskid, T_DTEX *pk_dtex );
|
|
|
|
ID tskid;
|
Value: ID number of the task.
|
|
T_DTEX *pk_dtex;
|
NULL: Cancel the definition of task exception handling routine.
Other than NULL: Pointer to the packet containing the task exception handling routine definition information.
|
[Task exception handling routine definition information packet : T_DTEX]
typedef struct t_dtex {
ATR texatr; /*Task exception handling routine attribute*/
FP texrtn; /*Task exception handling routine start address*/
} T_DTEX;
|
This service call can be called from tasks that belong to
Trusted Domain.
This service call defines a task exception handling routine for the task indicated by
tskid according to the content of
pk_dtex. If a task exception handling routine has already been defined for the task, this service call updates the definition contents.
When NULL is specified for
pk_dtex, the definition of the task exception handling routine for the task is cancelled. At this time, the task pending exception code is cleared to 0, and the task exception handling is disabled.
1 ) Task ID (
tskid)
Specify the task ID to define a task exception handling routine for
tskid. Specifying
tskid = TSK_SELF ( = 0 ) means that the invoking task itself is specified.
2 ) Task exception handling routine attribute (
texatr)
Only TA_HLNG can be specified for
texatr.
-
TA_HLNG ( = 0x0000)
Only C-language is supported for task exception handling routine description language.
3 ) Task exception handling routine start address (
texrtn)
Specify the task exception handling routine start address for
texrtn.
|
|
|
|
|
|
|
|
|
|
|
- pk_dtex != NULL and texrtn == NULL
|
|
|
|
|
|
- This service call was issued in the CPU locked state.
- This service call was issued from non-task.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
|
|
|
- Stack pointer points out of user stack for invoking task.
- pk_dtex != NULL and the operand-read access to the area indicated by pk_ctsk has not been permitted to the invoking task.
|
|
|
- The invoking task does not belong to trusted domain.
|
|
|
- The task specified by tskid does not exist.
|