5.2.1 Address Space Con.guration

  • ER SetTaskSpace( ID tskid )

Assigns to the invoking task the task space and access privilege information of the task specified in tskid. As a result, both the invoking task and target task have the same task space and access privilege information.

Note that this copying of task space information applies only at the time the function is called; if thereafter the task specified in tskid switches to a di.erent address space and its access privilege changes, the invoking task is not affected by those changes (its address space and access privilege do not change accordingly). If the invoking task is calling an extended SVC, on return from the extended SVC its access privilege reverts to that prior to calling the extended SVC. Its task space, however, does not revert.

The task ID of the invoking task cannot be specified in tskid. However, if TSK_SELF is used to specify the invoking task, access privilege is set to the currently running protection level; task space is not switched in this case.

E_ID tskid is invalid

E_NOEXS Object does not exist (the task specified in tskid does not exist)

E_OBJ Invoking task specified by other than TSK_SELF

Comments