Changeset 9736283 in rtems


Ignore:
Timestamp:
Dec 8, 2015, 7:43:41 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b618d8c
Parents:
bd91f446
Message:

score: Statically initialize system state

Update #2408.

Location:
cpukit
Files:
2 edited

Legend:

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

    rbd91f446 r9736283  
    8585      _Configuration_MP_table =
    8686        (void *)&_Initialization_Default_multiprocessing_table;
    87       _System_state_Handler_initialization( FALSE );
    8887    } else {
    89       _System_state_Handler_initialization( TRUE );
     88      _System_state_Is_multiprocessing = true;
    9089    }
    91   #else
    92     _System_state_Handler_initialization( FALSE );
    9390  #endif
    9491
  • cpukit/score/include/rtems/score/sysstate.h

    rbd91f446 r9736283  
    7777}
    7878
    79 RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization (
    80 #if defined(RTEMS_MULTIPROCESSING)
    81   bool  is_multiprocessing
    82 #else
    83   bool  is_multiprocessing RTEMS_UNUSED
    84 #endif
    85 )
    86 {
    87   _System_state_Set( SYSTEM_STATE_BEFORE_INITIALIZATION );
    88 #if defined(RTEMS_MULTIPROCESSING)
    89     _System_state_Is_multiprocessing = is_multiprocessing;
    90 #endif
    91 }
    92 
    9379RTEMS_INLINE_ROUTINE System_state_Codes _System_state_Get ( void )
    9480{
Note: See TracChangeset for help on using the changeset viewer.