score: Introduce Thread_Entry_information

This avoids potential dead code in _Thread_Handler().  It gets rid of
the dangerous function pointer casts.

Update #2514.
This commit is contained in:
Sebastian Huber
2016-01-07 09:55:45 +01:00
parent 3d1becf925
commit ccd54344d9
36 changed files with 234 additions and 198 deletions

View File

@@ -37,8 +37,8 @@ static rtems_isr clockISR(rtems_vector_number vector) {
rtems_clock_tick();
} while (
_Thread_Heir == _Thread_Executing
&& _Thread_Executing->Start.entry_point
== (Thread_Entry) rtems_configuration_get_idle_task()
&& _Thread_Executing->Start.Entry.Kinds.Idle.entry
== rtems_configuration_get_idle_task()
);
#else
rtems_clock_tick();

View File

@@ -107,8 +107,8 @@ static void clockHandler(void)
while (
_Thread_Heir == _Thread_Executing
&& _Thread_Executing->Start.entry_point
== (Thread_Entry) rtems_configuration_get_idle_task()
&& _Thread_Executing->Start.Entry.Kinds.Idle.entry
== rtems_configuration_get_idle_task()
) {
tb += Clock_Decrementer_value;
ppc_set_time_base( tb );