Creating Post Task Context switch Extension

Ali Asgar Nasir aliasgar.nasir at patni.com
Wed May 18 05:37:42 UTC 2005


This is regarding RTEMS extension for task switch...as per C users guide
document the Task Switch extension is invoked after the current task context
is save and before the heir task context is restored....but i find that
after the execution of my task switch routine, the control goes to
_Context_Switch( &executing->Registers, &heir->Registers ); which saves the
running thread context and then restores the heir thread context. Thus
during the task switch routine the TCB of the current task does not have the
instantaneos information about the task. The problem can be solved by using
a post task switch extension. But in the rtems_extension_table there does
not seem to be an entry for post task switch extension routine...can anyone
help me out for the same.

typedef struct {
rtems_task_create_extension thread_create;

rtems_task_start_extension thread_start;

rtems_task_restart_extension thread_restart;

rtems_task_delete_extension thread_delete;

rtems_task_switch_extension thread_switch;

rtems_task_begin_extension thread_begin;

rtems_task_exitted_extension thread_exitted;

rtems_fatal_extension fatal;

} rtems_extensions_table;

Regards
Ali Asgar Nasir



http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin at patni.com and delete this mail. 
_____________________________________________________________________


More information about the users mailing list