[rtems commit] score: Statically initialize system state

Sebastian Huber sebh at rtems.org
Tue Dec 8 12:53:17 UTC 2015


Module:    rtems
Branch:    master
Commit:    9736283857a54008d1dcf63c8c892942e35824a6
Changeset: http://git.rtems.org/rtems/commit/?id=9736283857a54008d1dcf63c8c892942e35824a6

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Dec  8 08:43:41 2015 +0100

score: Statically initialize system state

Update #2408.

---

 cpukit/sapi/src/exinit.c                    |  5 +----
 cpukit/score/include/rtems/score/sysstate.h | 14 --------------
 2 files changed, 1 insertion(+), 18 deletions(-)

diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index 794ccb4..6a684d3 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -84,12 +84,9 @@ void rtems_initialize_data_structures(void)
     if ( _Configuration_MP_table == NULL ) {
       _Configuration_MP_table =
 	(void *)&_Initialization_Default_multiprocessing_table;
-      _System_state_Handler_initialization( FALSE );
     } else {
-      _System_state_Handler_initialization( TRUE );
+      _System_state_Is_multiprocessing = true;
     }
-  #else
-    _System_state_Handler_initialization( FALSE );
   #endif
 
   /*
diff --git a/cpukit/score/include/rtems/score/sysstate.h b/cpukit/score/include/rtems/score/sysstate.h
index fbdeff9..02ac995 100644
--- a/cpukit/score/include/rtems/score/sysstate.h
+++ b/cpukit/score/include/rtems/score/sysstate.h
@@ -76,20 +76,6 @@ RTEMS_INLINE_ROUTINE void _System_state_Set (
   _System_state_Current = state;
 }
 
-RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization (
-#if defined(RTEMS_MULTIPROCESSING)
-  bool  is_multiprocessing
-#else
-  bool  is_multiprocessing RTEMS_UNUSED
-#endif
-)
-{
-  _System_state_Set( SYSTEM_STATE_BEFORE_INITIALIZATION );
-#if defined(RTEMS_MULTIPROCESSING)
-    _System_state_Is_multiprocessing = is_multiprocessing;
-#endif
-}
-
 RTEMS_INLINE_ROUTINE System_state_Codes _System_state_Get ( void )
 {
   return _System_state_Current;




More information about the vc mailing list