[PATCH 1/2] score: Statically initialize API extensions
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Dec 8 07:35:10 UTC 2015
Update #2408.
---
cpukit/sapi/src/exinit.c | 2 --
cpukit/score/include/rtems/score/apiext.h | 9 +--------
cpukit/score/src/apiext.c | 6 +-----
3 files changed, 2 insertions(+), 15 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..44f16e5 100644
--- a/cpukit/score/include/rtems/score/apiext.h
+++ b/cpukit/score/include/rtems/score/apiext.h
@@ -81,14 +81,7 @@ typedef struct {
/**
* 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 );
+extern Chain_Control _API_extensions_List;
/**
* @brief Add extension set to the active set.
diff --git a/cpukit/score/src/apiext.c b/cpukit/score/src/apiext.c
index 3d9121d..1d5ce96 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 );
-}
+CHAIN_DEFINE_EMPTY( _API_extensions_List );
void _API_extensions_Add(
API_extensions_Control *the_extension
--
1.8.4.5
More information about the devel
mailing list