Changeset 6c71b25 in rtems


Ignore:
Timestamp:
Jul 23, 2008, 5:25:31 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
bd5762d
Parents:
be78809
Message:

2008-07-23 Joel Sherrill <joel.sherrill@…>

  • sapi/include/confdefs.h, score/src/threadcreateidle.c: Idle thread body is now completely configured via the Configuration table.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rbe78809 r6c71b25  
     12008-07-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sapi/include/confdefs.h, score/src/threadcreateidle.c: Idle thread
     4        body is now completely configured via the Configuration table.
     5
    162008-07-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/sapi/include/confdefs.h

    rbe78809 r6c71b25  
    236236 */
    237237#ifndef CONFIGURE_IDLE_TASK_BODY
    238   #ifdef BSP_IDLE_TASK_BODY
     238  #if defined(BSP_IDLE_TASK_BODY)
    239239    #define CONFIGURE_IDLE_TASK_BODY BSP_IDLE_TASK_BODY
    240   #else
    241     #define CONFIGURE_IDLE_TASK_BODY NULL
     240  #elif (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE)
     241    #define CONFIGURE_IDLE_TASK_BODY _CPU_Thread_Idle_body
     242  #else
     243    #define CONFIGURE_IDLE_TASK_BODY _Thread_Idle_body
    242244  #endif
    243245#endif
  • cpukit/score/src/threadcreateidle.c

    rbe78809 r6c71b25  
    3737 */
    3838
    39 const char *_Thread_Idle_name = "IDLE";
    40 
    4139void _Thread_Create_idle( void )
    4240{
    43   void       *idle;
    44   uint32_t    idle_task_stack_size;
     41  Objects_Name name;
     42
     43  name.name_p = "IDLE";
    4544
    4645  /*
     
    4948   *  _Workspace_Initialization.
    5049   */
    51 
    5250  _Thread_Idle = _Thread_Internal_allocate();
    53 
    54   /*
    55    *  Initialize the IDLE task.
    56    */
    57 
    58 #if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE)
    59   idle = (void *) _CPU_Thread_Idle_body;
    60 #else
    61   idle = (void *) _Thread_Idle_body;
    62 #endif
    63 
    64   if ( _Configuration_Table->idle_task )
    65     idle = _Configuration_Table->idle_task;
    66 
    67   idle_task_stack_size =
    68     _Stack_Ensure_minimum( _Configuration_Table->idle_task_stack_size );
    6951
    7052  /*
     
    7961    _Thread_Idle,
    8062    NULL,        /* allocate the stack */
    81     idle_task_stack_size,
     63    _Stack_Ensure_minimum( _Configuration_Table->idle_task_stack_size ),
    8264    CPU_IDLE_TASK_IS_FP,
    8365    PRIORITY_MAXIMUM,
     
    8668    NULL,        /* no budget algorithm callout */
    8769    0,           /* all interrupts enabled */
    88     (Objects_Name) _Thread_Idle_name
     70    name
    8971  );
    9072
     
    9577   *             MUST be done before _Thread_Start is invoked.
    9678   */
    97 
    9879  _Thread_Heir      =
    9980  _Thread_Executing = _Thread_Idle;
     
    10283    _Thread_Idle,
    10384    THREAD_START_NUMERIC,
    104     idle,
     85    _Configuration_Table->idle_task,
    10586    NULL,
    10687    0
Note: See TracChangeset for help on using the changeset viewer.