From 34a7a12f48b62f959029172d5e8ffbd2a73739d2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Dec 2019 16:02:19 +0100 Subject: bsps: Add RTEMS_SYSINIT_BSP_EARLY Add new BSP system initialization step for work to be performed before the work areas are initialized. Update #3838. --- bsps/powerpc/mvme3100/start/bspstart.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'bsps/powerpc/mvme3100/start/bspstart.c') diff --git a/bsps/powerpc/mvme3100/start/bspstart.c b/bsps/powerpc/mvme3100/start/bspstart.c index 527247af1b..f20a40fed1 100644 --- a/bsps/powerpc/mvme3100/start/bspstart.c +++ b/bsps/powerpc/mvme3100/start/bspstart.c @@ -197,17 +197,11 @@ uint32_t _CPU_Counter_frequency(void) return BSP_bus_frequency / (BSP_time_base_divisor / 1000); } -/* - * bsp_start - * - * This routine does the bulk of the system initialization. - */ - #include SPR_RW(HID1) -void bsp_start( void ) +static void bsp_early( void ) { unsigned char *stack; char *chpt; @@ -412,6 +406,17 @@ VpdBufRec vpdData [] = { #endif } +RTEMS_SYSINIT_ITEM( + bsp_early, + RTEMS_SYSINIT_BSP_EARLY, + RTEMS_SYSINIT_ORDER_MIDDLE +); + +void bsp_start( void ) +{ + /* Initialization was done by bsp_early() */ +} + static void mvme3100_i2c_initialize(void) { BSP_i2c_initialize(); -- cgit v1.2.3