summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/src/exinit.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-26 11:16:56 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:58 +0100
commit3bc12a8f5ade29161ca356f60f79c2283ebf2f5c (patch)
tree3539c88a81953b560dad2c6baf6a3aeb3c373c2d /cpukit/sapi/src/exinit.c
parentUse linker set for POSIX User Threads init (diff)
downloadrtems-3bc12a8f5ade29161ca356f60f79c2283ebf2f5c.tar.bz2
Delete unused API extensions
Diffstat (limited to 'cpukit/sapi/src/exinit.c')
-rw-r--r--cpukit/sapi/src/exinit.c34
1 files changed, 8 insertions, 26 deletions
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index a52a546fbb..77633a269a 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -30,10 +30,10 @@
#include <rtems/config.h>
#include <rtems/extensionimpl.h>
#include <rtems/init.h>
+#include <rtems/io.h>
#include <rtems/sysinit.h>
#include <rtems/score/sysstate.h>
-#include <rtems/score/apiext.h>
#include <rtems/score/apimutex.h>
#include <rtems/score/copyrt.h>
#include <rtems/score/heap.h>
@@ -95,30 +95,6 @@ static void rtems_initialize_data_structures(void)
_SMP_Handler_initialize();
}
-static void rtems_initialize_device_drivers(void)
-{
- /*
- * Initialize all the device drivers and initialize the MPCI layer.
- *
- * NOTE: The MPCI may be build upon a device driver.
- */
-
- /* Initialize I/O drivers.
- *
- * Driver Manager note:
- * All drivers may not be registered yet. Drivers will dynamically
- * be initialized when registered in level 2,3 and 4.
- */
- _IO_Initialize_all_drivers();
-
- /*
- * Run the APIs and BSPs postdriver hooks.
- *
- * The API extensions are supposed to create user initialization tasks.
- */
- _API_extensions_Run_postdriver();
-}
-
RTEMS_LINKER_ROSET( _Sysinit, rtems_sysinit_item );
RTEMS_SYSINIT_ITEM(
@@ -142,8 +118,14 @@ RTEMS_SYSINIT_ITEM(
RTEMS_SYSINIT_ORDER_MIDDLE
);
+/* Initialize I/O drivers.
+ *
+ * Driver Manager note:
+ * All drivers may not be registered yet. Drivers will dynamically
+ * be initialized when registered in level 2,3 and 4.
+ */
RTEMS_SYSINIT_ITEM(
- rtems_initialize_device_drivers,
+ _IO_Initialize_all_drivers,
RTEMS_SYSINIT_DEVICE_DRIVERS,
RTEMS_SYSINIT_ORDER_MIDDLE
);