Changeset e3be691 in rtems for cpukit/sapi


Ignore:
Timestamp:
May 27, 2013, 3:31:46 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
7c5ceea5
Parents:
17e09f8
git-author:
Sebastian Huber <sebastian.huber@…> (05/27/13 15:31:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/13 13:20:31)
Message:

score: Remove idle field of Per_CPU_Control

This field is unused except for special case simulator clock drivers.
In these places use an alternative. Add and use
_Thread_Set_global_exit_status() and _Thread_Get_global_exit_status().

Location:
cpukit/sapi/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    r17e09f8 re3be691  
    238238   *******************************************************************
    239239   *******************************************************************/
    240  
    241   status = _Per_CPU_Information[0].idle->Wait.return_code;
     240
     241  status = _Thread_Get_global_exit_status();
    242242  rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
    243243}
  • cpukit/sapi/src/exshutdown.c

    r17e09f8 re3be691  
    4545    #endif
    4646
    47     _Per_CPU_Information[0].idle->Wait.return_code = result;
    48 
     47    _Thread_Set_global_exit_status( result );
    4948    _System_state_Set( SYSTEM_STATE_SHUTDOWN );
    5049    _Thread_Stop_multitasking();
Note: See TracChangeset for help on using the changeset viewer.