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/include/rtems/score/threadimpl.h

    r3d1becf rccd5434  
    186186 *  thread competes with all other threads for CPU time.
    187187 *
    188  *  @param the_thread is the thread to be initialized
    189  *  @param the_prototype
    190  *  @param entry_point
    191  *  @param pointer_argument
    192  *  @param numeric_argument
     188 *  @param the_thread The thread to be started.
     189 *  @param entry The thread entry information.
    193190 *  @param[in,out] cpu The processor if used to start an idle thread
    194191 *  during system initialization.  Must be set to @c NULL to start a normal
     
    196193 */
    197194bool _Thread_Start(
    198   Thread_Control            *the_thread,
    199   Thread_Start_types         the_prototype,
    200   void                      *entry_point,
    201   void                      *pointer_argument,
    202   Thread_Entry_numeric_type  numeric_argument,
    203   Per_CPU_Control           *cpu
     195  Thread_Control                 *the_thread,
     196  const Thread_Entry_information *entry,
     197  Per_CPU_Control                *cpu
    204198);
    205199
    206200bool _Thread_Restart(
    207   Thread_Control            *the_thread,
    208   Thread_Control            *executing,
    209   void                      *pointer_argument,
    210   Thread_Entry_numeric_type  numeric_argument
     201  Thread_Control                 *the_thread,
     202  Thread_Control                 *executing,
     203  const Thread_Entry_information *entry
    211204);
    212205
     
    301294);
    302295
     296void _Thread_Entry_adaptor_idle( Thread_Control *executing );
     297
     298void _Thread_Entry_adaptor_numeric( Thread_Control *executing );
     299
     300void _Thread_Entry_adaptor_pointer( Thread_Control *executing );
     301
    303302/**
    304303 *  @brief Wrapper function for all threads.
     
    326325 * are present.
    327326 */
    328 void _Thread_Global_construction( Thread_Entry entry_point ) RTEMS_NO_RETURN;
     327void _Thread_Global_construction(
     328  Thread_Control                 *executing,
     329  const Thread_Entry_information *entry
     330) RTEMS_NO_RETURN;
    329331
    330332/**
Note: See TracChangeset for help on using the changeset viewer.