[rtems commit] score: Statically initialize API extensions

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


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

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

score: Statically initialize API extensions

Update #2408.

---

 cpukit/sapi/src/exinit.c                  |  2 --
 cpukit/score/include/rtems/score/apiext.h | 12 ------------
 cpukit/score/src/apiext.c                 |  6 +-----
 testsuites/sptests/spsize/size.c          |  2 --
 4 files changed, 1 insertion(+), 21 deletions(-)

diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index 98c4079..b29d8c0 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -101,8 +101,6 @@ void rtems_initialize_data_structures(void)
     _Objects_MP_Handler_early_initialization();
   #endif
 
-  _API_extensions_Initialization();
-
   _Thread_Dispatch_initialization();
 
   _User_extensions_Handler_initialization();
diff --git a/cpukit/score/include/rtems/score/apiext.h b/cpukit/score/include/rtems/score/apiext.h
index 8382673..7b77ab5 100644
--- a/cpukit/score/include/rtems/score/apiext.h
+++ b/cpukit/score/include/rtems/score/apiext.h
@@ -79,18 +79,6 @@ typedef struct {
 }  API_extensions_Control;
 
 /**
- *  This is the list of API extensions to the system initialization.
- */
-SCORE_EXTERN Chain_Control _API_extensions_List;
-
-/**
- *  @brief Initialize the API extensions handler.
- *
- *  This routine initializes the API extension handler.
- */
-void _API_extensions_Initialization( void );
-
-/**
  *  @brief Add extension set to the active set.
  *
  *  This routine adds @a the_extension to the active set of API extensions.
diff --git a/cpukit/score/src/apiext.c b/cpukit/score/src/apiext.c
index 3d9121d..8deb90b 100644
--- a/cpukit/score/src/apiext.c
+++ b/cpukit/score/src/apiext.c
@@ -19,13 +19,9 @@
 #include "config.h"
 #endif
 
-#include <rtems/system.h>
 #include <rtems/score/apiext.h>
 
-void _API_extensions_Initialization( void )
-{
- _Chain_Initialize_empty( &_API_extensions_List );
-}
+static CHAIN_DEFINE_EMPTY( _API_extensions_List );
 
 void _API_extensions_Add(
   API_extensions_Control *the_extension
diff --git a/testsuites/sptests/spsize/size.c b/testsuites/sptests/spsize/size.c
index 660760a..b07f1a7 100644
--- a/testsuites/sptests/spsize/size.c
+++ b/testsuites/sptests/spsize/size.c
@@ -243,8 +243,6 @@ sys_req = SYSTEM_TASKS        +     /* MPCI Receive Server and IDLE */
 uninitialized =
 /*address.h*/   0                                         +
 
-/*apiext.h*/    (sizeof _API_extensions_List)             +
-
 /*asr.h*/       0                                         +
 
 /*attr.h*/      0                                         +



More information about the vc mailing list