[rtems commit] rtems: Delete empty _RTEMS_API_Initialize()

Sebastian Huber sebh at rtems.org
Wed Feb 3 09:32:16 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Dec 14 15:28:51 2015 +0100

rtems: Delete empty _RTEMS_API_Initialize()

---

 cpukit/rtems/Makefile.am                    |  1 -
 cpukit/rtems/include/rtems/rtems/rtemsapi.h | 37 -----------------------------
 cpukit/rtems/preinstall.am                  |  4 ----
 cpukit/rtems/src/taskinitusers.c            |  1 -
 cpukit/sapi/Makefile.am                     |  2 +-
 cpukit/sapi/src/exinit.c                    |  3 ---
 cpukit/sapi/src/rtemsapi.c                  | 33 -------------------------
 cpukit/score/include/rtems/score/basedefs.h | 14 -----------
 8 files changed, 1 insertion(+), 94 deletions(-)

diff --git a/cpukit/rtems/Makefile.am b/cpukit/rtems/Makefile.am
index a295daf..c92a7c8 100644
--- a/cpukit/rtems/Makefile.am
+++ b/cpukit/rtems/Makefile.am
@@ -39,7 +39,6 @@ include_rtems_rtems_HEADERS += include/rtems/rtems/ratemon.h
 include_rtems_rtems_HEADERS += include/rtems/rtems/ratemonimpl.h
 include_rtems_rtems_HEADERS += include/rtems/rtems/region.h
 include_rtems_rtems_HEADERS += include/rtems/rtems/regionimpl.h
-include_rtems_rtems_HEADERS += include/rtems/rtems/rtemsapi.h
 include_rtems_rtems_HEADERS += include/rtems/rtems/sem.h
 include_rtems_rtems_HEADERS += include/rtems/rtems/semimpl.h
 include_rtems_rtems_HEADERS += include/rtems/rtems/signal.h
diff --git a/cpukit/rtems/include/rtems/rtems/rtemsapi.h b/cpukit/rtems/include/rtems/rtems/rtemsapi.h
deleted file mode 100644
index be60241..0000000
--- a/cpukit/rtems/include/rtems/rtems/rtemsapi.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * @file rtems/rtems/rtemsapi.h
- *
- * @defgroup ClassicAPI RTEMS API Support
- *
- * @ingroup ClassicRTEMS
- * @brief RTEMS API Support
- *
- * This routine initializes the RTEMS API by invoking the initialization
- * routine for each RTEMS manager with the appropriate parameters
- * from the configuration_table.
- */
-
-/* COPYRIGHT (c) 1989-2008.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#ifndef _RTEMS_RTEMS_RTEMSAPI_H
-#define _RTEMS_RTEMS_RTEMSAPI_H
-
-#include <rtems/config.h>
-
-/**
- *  @brief Initializes the RTEMS API
- *
- *  This routine initializes the RTEMS API by invoking the initialization
- *  routine for each RTEMS manager with the appropriate parameters
- *  from the configuration_table.
- */
-void _RTEMS_API_Initialize(void);
-
-#endif
-/* end of include file */
diff --git a/cpukit/rtems/preinstall.am b/cpukit/rtems/preinstall.am
index e082633..a676cd9 100644
--- a/cpukit/rtems/preinstall.am
+++ b/cpukit/rtems/preinstall.am
@@ -135,10 +135,6 @@ $(PROJECT_INCLUDE)/rtems/rtems/regionimpl.h: include/rtems/rtems/regionimpl.h $(
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/regionimpl.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/regionimpl.h
 
-$(PROJECT_INCLUDE)/rtems/rtems/rtemsapi.h: include/rtems/rtems/rtemsapi.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp)
-	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/rtemsapi.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/rtemsapi.h
-
 $(PROJECT_INCLUDE)/rtems/rtems/sem.h: include/rtems/rtems/sem.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/sem.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/sem.h
diff --git a/cpukit/rtems/src/taskinitusers.c b/cpukit/rtems/src/taskinitusers.c
index aeed5b4..4403cc4 100644
--- a/cpukit/rtems/src/taskinitusers.c
+++ b/cpukit/rtems/src/taskinitusers.c
@@ -23,7 +23,6 @@
 #include <rtems/rtems/status.h>
 #include <rtems/rtems/support.h>
 #include <rtems/rtems/modes.h>
-#include <rtems/rtems/rtemsapi.h>
 #include <rtems/score/assert.h>
 #include <rtems/score/stack.h>
 #include <rtems/rtems/tasksimpl.h>
diff --git a/cpukit/sapi/Makefile.am b/cpukit/sapi/Makefile.am
index e930a4c..9170809 100644
--- a/cpukit/sapi/Makefile.am
+++ b/cpukit/sapi/Makefile.am
@@ -31,7 +31,7 @@ libsapi_a_SOURCES = src/extension.c src/extensioncreate.c \
     src/exshutdown.c src/io.c src/ioclose.c src/iocontrol.c src/iodata.c \
     src/ioinitialize.c src/ioopen.c src/ioread.c src/ioregisterdriver.c \
     src/iounregisterdriver.c src/iowrite.c src/posixapi.c  \
-    src/rtemsapi.c src/getversionstring.c \
+    src/getversionstring.c \
     src/chainappendnotify.c src/chaingetnotify.c src/chaingetwait.c \
     src/chainprependnotify.c src/rbheap.c src/interrtext.c \
     src/fatal2.c src/fatalsrctext.c
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index 4b04b5f..dd5e2c9 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -53,7 +53,6 @@
 #include <rtems/sptables.h>
 
 
-#include <rtems/rtems/rtemsapi.h>
 #include <rtems/posix/posixapi.h>
 
 #ifdef RTEMS_DRVMGR_STARTUP
@@ -135,8 +134,6 @@ static void rtems_initialize_data_structures(void)
 
 /* MANAGERS */
 
-  _RTEMS_API_Initialize();
-
   _POSIX_API_Initialize();
 }
 
diff --git a/cpukit/sapi/src/rtemsapi.c b/cpukit/sapi/src/rtemsapi.c
deleted file mode 100644
index 0fddec6..0000000
--- a/cpukit/sapi/src/rtemsapi.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * @file
- *
- * @brief Initializes the RTEMS API
- *
- * @ingroup ClassicRTEMS
- */
-
-/*
- *  COPYRIGHT (c) 1989-2008.
- *  On-Line Applications Research Corporation (OAR).
- *
- *  The license and distribution terms for this file may be
- *  found in the file LICENSE in this distribution or at
- *  http://www.rtems.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#define RTEMS_API_INIT
-
-#include <rtems/system.h>
-#include <rtems/rtems/status.h>
-#include <rtems/rtems/rtemsapi.h>
-
-#include <rtems/rtems/intr.h>
-#include <rtems/rtems/clock.h>
-
-void _RTEMS_API_Initialize(void)
-{
-}
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 25f5058..34e021a 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -101,20 +101,6 @@
  *  or the initialization file for the appropriate API.  It is
  *  referenced as "external" in every other file.
  */
-#ifdef RTEMS_API_INIT
-  #undef  RTEMS_EXTERN
-  #define RTEMS_EXTERN
-#else
-  #undef  RTEMS_EXTERN
-  #define RTEMS_EXTERN  extern
-#endif
-
-/**
- *  The following ensures that all data is declared in the space
- *  of the initialization routine for either the Initialization Manager
- *  or the initialization file for the appropriate API.  It is
- *  referenced as "external" in every other file.
- */
 #ifdef POSIX_API_INIT
   #undef  POSIX_EXTERN
   #define POSIX_EXTERN




More information about the vc mailing list