Ignore:
Timestamp:
Jan 7, 2016, 8:55:45 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
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
  • testsuites/samples/minimum/init.c

    r3d1becf rccd5434  
    2121#include <rtems/score/thread.h>
    2222
    23 /* forward declarations to avoid warnings */
    24 rtems_task Init(rtems_task_argument argument);
    25 
    26 rtems_task Init(
    27   rtems_task_argument ignored
    28 )
     23static void *Init( uintptr_t ignored )
    2924{
    3025  /* initialize application */
     
    3328
    3429  /* but in this case, just return and fall into a fatal error */
     30
     31  return NULL;
    3532}
    3633
     
    9996 *  initialization and then transforms itself into the idle task.
    10097 */
    101 #define CONFIGURE_IDLE_TASK_BODY (Thread_Entry_numeric) Init
     98#define CONFIGURE_IDLE_TASK_BODY Init
    10299#define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
    103100
Note: See TracChangeset for help on using the changeset viewer.