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/motorola_powerpc/start/bspstart.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'bsps/powerpc/motorola_powerpc/start/bspstart.c') diff --git a/bsps/powerpc/motorola_powerpc/start/bspstart.c b/bsps/powerpc/motorola_powerpc/start/bspstart.c index 810db21dce..c28d5d21b5 100644 --- a/bsps/powerpc/motorola_powerpc/start/bspstart.c +++ b/bsps/powerpc/motorola_powerpc/start/bspstart.c @@ -124,13 +124,7 @@ 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. - */ - -void bsp_start( void ) +static void bsp_early( void ) { #if !defined(mvme2100) unsigned l2cr; @@ -367,6 +361,17 @@ void bsp_start( void ) #endif } +RTEMS_SYSINIT_ITEM( + bsp_early, + RTEMS_SYSINIT_BSP_EARLY, + RTEMS_SYSINIT_ORDER_MIDDLE +); + +void bsp_start( void ) +{ + /* Initialization was done by bsp_early() */ +} + RTEMS_SYSINIT_ITEM( BSP_vme_config, RTEMS_SYSINIT_BSP_PRE_DRIVERS, -- cgit v1.2.3