Changeset 0296c071 in rtems


Ignore:
Timestamp:
Dec 17, 1998, 6:34:01 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
29936e4c
Parents:
94c0943
Message:

Updated to correct information on post switch extension and to make
the user extension table type definition correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/user/userext.t

    r94c0943 r0296c071  
    5757@group
    5858typedef struct @{
    59   User_extensions_thread_create_extension      thread_create;
    60   User_extensions_thread_start_extension       thread_start;
    61   User_extensions_thread_restart_extension     thread_restart;
    62   User_extensions_thread_delete_extension      thread_delete;
    63   User_extensions_thread_switch_extension      thread_switch;
    64   User_extensions_thread_post_switch_extension thread_post_switch;
    65   User_extensions_thread_begin_extension       thread_begin;
    66   User_extensions_thread_exitted_extension     thread_exitted;
    67   User_extensions_fatal_error_extension        fatal;
     59  rtems_task_create_extension      thread_create;
     60  rtems_task_start_extension       thread_start;
     61  rtems_task_restart_extension     thread_restart;
     62  rtems_task_delete_extension      thread_delete;
     63  rtems_task_switch_extension      thread_switch;
     64  rtems_task_begin_extension       thread_begin;
     65  rtems_task_exitted_extension     thread_exitted;
     66  rtems_fatal_extension            fatal;
    6867@} User_extensions_Table;
    6968@end group
     
    337336directives.
    338337
    339 @subsection TASK_POST_SWITCH Extension
    340 
    341 The TASK_POST_SWITCH extension corresponds to a task
    342 context switch.  If this extension is defined in any static or
    343 dynamic extension set and a raw task context switch has been
    344 completed, then the extension routine will automatically be
    345 invoked by RTEMS.  The extension should have a prototype similar
    346 to the following:
    347 
    348 @ifset is-C
    349 @example
    350 rtems_extension user_task_post_switch(
    351   rtems_tcb *current_task
    352 );
    353 @end example
    354 @end ifset
    355 
    356 @ifset is-Ada
    357 @example
    358 procedure User_Task_Post_Switch (
    359    Current_Task : in     RTEMS.TCB_Pointer
    360 );
    361 @end example
    362 @end ifset
    363 
    364 where current_task can be used to access the TCB for
    365 the task that is being swapped out, and heir_task can be used to
    366 access the TCB for the task being swapped in.  This extension is
    367 invoked from RTEMS' dispatcher routine after the current_task
    368 context has been restored and the extension runs in the context
    369 of the current_task.
    370 
    371338@subsection TASK_BEGIN Extension
    372339
Note: See TracChangeset for help on using the changeset viewer.