summaryrefslogtreecommitdiffstats
path: root/bsps/sparc/erc32/start/bspstart.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/sparc/erc32/start/bspstart.c')
-rw-r--r--bsps/sparc/erc32/start/bspstart.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/bsps/sparc/erc32/start/bspstart.c b/bsps/sparc/erc32/start/bspstart.c
index d56d3b2ff2..1979c68308 100644
--- a/bsps/sparc/erc32/start/bspstart.c
+++ b/bsps/sparc/erc32/start/bspstart.c
@@ -12,22 +12,15 @@
#include <bsp.h>
#include <bsp/bootcard.h>
+#include <bsp/irq-generic.h>
#include <rtems/sysinit.h>
/*
- * Called just before drivers are initialized. Is used to initialize shared
- * interrupt handling.
+ * Initialize shared interrupt handling, must be done after IRQ controller has
+ * been found and initialized.
*/
-static void erc32_pre_driver_hook( void )
-{
- /* Initialize shared interrupt handling, must be done after IRQ
- * controller has been found and initialized.
- */
- BSP_shared_interrupt_init();
-}
-
RTEMS_SYSINIT_ITEM(
- erc32_pre_driver_hook,
+ bsp_interrupt_initialize,
RTEMS_SYSINIT_BSP_PRE_DRIVERS,
RTEMS_SYSINIT_ORDER_MIDDLE
);