mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-22 02:28:49 +08:00
score: Remove rtems_ada_self
This task variable is superfluous since we use thread-local storage now. Update #2289.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user