Ignore:
Timestamp:
01/07/16 08:55:45 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
1506658c
Parents:
3d1becf
git-author:
Sebastian Huber <sebastian.huber@…> (01/07/16 08:55:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/11/16 07:47:01)
Message:

score: Introduce Thread_Entry_information

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

Update #2514.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadcreateidle.c

    r3d1becf rccd5434  
    2626static void _Thread_Create_idle_for_cpu( Per_CPU_Control *cpu )
    2727{
     28  Thread_Entry_information entry = {
     29    .adaptor = _Thread_Entry_adaptor_idle,
     30    .Kinds = {
     31      .Idle = {
     32        .entry = rtems_configuration_get_idle_task()
     33      }
     34    }
     35  };
    2836  Objects_Name    name;
    2937  Thread_Control *idle;
     
    6068  cpu->executing = idle;
    6169
    62   _Thread_Start(
    63     idle,
    64     THREAD_START_NUMERIC,
    65     rtems_configuration_get_idle_task(),
    66     NULL,
    67     0,
    68     cpu
    69   );
     70  _Thread_Start( idle, &entry, cpu );
    7071}
    7172
Note: See TracChangeset for help on using the changeset viewer.