diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-14 07:29:14 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-14 07:30:46 +0200 |
commit | 3dd67dd16e90bf1ec62c991f824116ec5b5c625f (patch) | |
tree | ecd308b0291e61d3a09ec7995f56cdfacf2831ee | |
parent | tests: Fix build dependencies (diff) | |
download | rtems-3dd67dd16e90bf1ec62c991f824116ec5b5c625f.tar.bz2 |
score: Remove rtems_ada_self
This task variable is superfluous since we use thread-local storage now.
Update #2289.
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 4 | ||||
-rw-r--r-- | cpukit/score/src/threaddispatch.c | 8 |
2 files changed, 0 insertions, 12 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 8aa141de85..54b207f137 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -768,10 +768,6 @@ struct _Thread_Control { /** This field is true if the thread uses the floating point unit. */ bool is_fp; -#if __RTEMS_ADA__ - /** This field is the GNAT self context pointer. */ - void *rtems_ada_self; -#endif /** This field is the length of the time quantum that this thread is * allowed to consume. The algorithm used to manage limits on CPU usage * is specified by budget_algorithm. diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index a68e3c1c6e..39cf80d243 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -30,10 +30,6 @@ #include <rtems/score/wkspace.h> #include <rtems/config.h> -#if __RTEMS_ADA__ -void *rtems_ada_self; -#endif - #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) Thread_Control *_Thread_Allocated_fp; #endif @@ -211,10 +207,6 @@ void _Thread_Do_dispatch( Per_CPU_Control *cpu_self, ISR_Level level ) * Since heir and executing are not the same, we need to do a real * context switch. */ -#if __RTEMS_ADA__ - executing->rtems_ada_self = rtems_ada_self; - rtems_ada_self = heir->rtems_ada_self; -#endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = rtems_configuration_get_ticks_per_timeslice(); |