summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-16 22:56:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-16 22:56:38 +0000
commitaad726ebd45d0b25d62056639b0654fb74b1092e (patch)
tree5d2e1fb9a183ef0cad166dbe0c817de657e0105f /c/src/exec/score/include/rtems/score/thread.h
parentAdded proper nesting level for dispatch disable check. (diff)
downloadrtems-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 '')
-rw-r--r--c/src/exec/score/include/rtems/score/thread.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/c/src/exec/score/include/rtems/score/thread.h b/c/src/exec/score/include/rtems/score/thread.h
index 8ac9e8ed26..59c61f7365 100644
--- a/c/src/exec/score/include/rtems/score/thread.h
+++ b/c/src/exec/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;
};
/*