Changeset f58ef8ae in rtems for cpukit/sapi


Ignore:
Timestamp:
Jul 13, 2011, 6:34:22 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
1e1ee0c
Parents:
44209ab
Message:

2011-07-13 Joel Sherrill <joel.sherrilL@…>

PR 1824/cpukit

  • sapi/include/rtems/init.h, sapi/src/exinit.c, sapi/src/exshutdown.c: Return exit/shutdown status back to boot_card().
Location:
cpukit/sapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/init.h

    r44209ab rf58ef8ae  
    7777 *  directive up to the pretasking hook. This directive is invoked at system
    7878 *  startup to initialize the RTEMS multitasking environment.
     79 *
     80 *  @return This method returns the status code passed into the
     81 *          @ref rtems_shutdown_executive directive.
    7982 */
    80 void rtems_initialize_start_multitasking(void);
     83uint32_t rtems_initialize_start_multitasking(void);
    8184
    8285/**
  • cpukit/sapi/src/exinit.c

    r44209ab rf58ef8ae  
    226226}
    227227
    228 void rtems_initialize_start_multitasking(void)
    229 {
    230 
     228uint32_t rtems_initialize_start_multitasking(void)
     229{
    231230  _System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING );
    232231
     
    241240   *******************************************************************
    242241   *******************************************************************/
    243 }
     242 
     243  return _Per_CPU_Information[0].idle->Wait.return_code;
     244}
  • cpukit/sapi/src/exshutdown.c

    r44209ab rf58ef8ae  
    4545      _SMP_Request_other_cores_to_shutdown();
    4646    #endif
     47
     48    _Per_CPU_Information[0].idle->Wait.return_code = result;
     49
    4750    _System_state_Set( SYSTEM_STATE_SHUTDOWN );
    4851    _Thread_Stop_multitasking();
Note: See TracChangeset for help on using the changeset viewer.