[rtems commit] score: Remove rtems_ada_self

Sebastian Huber sebh at rtems.org
Wed Jun 14 05:31:10 UTC 2017


Module:    rtems
Branch:    master
Commit:    3dd67dd16e90bf1ec62c991f824116ec5b5c625f
Changeset: http://git.rtems.org/rtems/commit/?id=3dd67dd16e90bf1ec62c991f824116ec5b5c625f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun 14 07:29:14 2017 +0200

score: Remove rtems_ada_self

This task variable is superfluous since we use thread-local storage now.

Update #2289.

---

 cpukit/score/include/rtems/score/thread.h | 4 ----
 cpukit/score/src/threaddispatch.c         | 8 --------
 2 files changed, 12 deletions(-)

diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 8aa141d..54b207f 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 a68e3c1..39cf80d 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();
 



More information about the vc mailing list