From aad726ebd45d0b25d62056639b0654fb74b1092e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 1999 22:56:38 +0000 Subject: 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. --- c/src/exec/score/include/rtems/score/thread.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'c/src/exec/score/include/rtems/score/thread.h') 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 @@ -86,6 +86,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; }; /* -- cgit v1.2.3