The TASK_POST_SWITCH extension corresponds to a task context switch. If this extension is defined in any static or dynamic extension set and a raw task context switch has been completed, then the extension routine will automatically be invoked by RTEMS. The extension should have a prototype similar to the following:
rtems_extension user_task_post_switch( rtems_tcb *current_task );
where current_task can be used to access the TCB for the task that is being swapped out, and heir_task can be used to access the TCB for the task being swapped in. This extension is invoked from RTEMS' dispatcher routine after the current_task context has been restored and the extension runs in the context of the current_task.
Copyright © 1988-1998 OAR Corporation