diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-16 22:56:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-16 22:56:38 +0000 |
commit | aad726ebd45d0b25d62056639b0654fb74b1092e (patch) | |
tree | 5d2e1fb9a183ef0cad166dbe0c817de657e0105f /cpukit/score/include/rtems/score | |
parent | Added proper nesting level for dispatch disable check. (diff) | |
download | rtems-aad726ebd45d0b25d62056639b0654fb74b1092e.tar.bz2 |
Moved task_variable pointer to basic shared part of TCB instead of
RTEMS API extension to avoid problems when the extension is freed.
Eventually the task variable switch extension should become part
of the core context switch and the Ada tcb self implemented in
terms of it.
Diffstat (limited to 'cpukit/score/include/rtems/score')
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 8ac9e8ed26..59c61f7365 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -87,6 +87,20 @@ typedef struct Thread_Control_struct Thread_Control; typedef void (*Thread_CPU_budget_algorithm_callout )( Thread_Control * ); /* + * Per task variable structure + */ + +struct rtems_task_variable_tt; + +struct rtems_task_variable_tt { + struct rtems_task_variable_tt *next; + int *ptr; + int var; +}; + +typedef struct rtems_task_variable_tt rtems_task_variable_t; + +/* * The following structure contains the information which defines * the starting state of a thread. */ @@ -203,6 +217,7 @@ struct Thread_Control_struct { void *fp_context; void *API_Extensions[ THREAD_API_LAST + 1 ]; void **extensions; + rtems_task_variable_t *task_variables; }; /* |