From ea7b1b79f893b4024e5feb9cc39e7bfbe3cc124b Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 6 Jan 2022 12:03:04 -0700 Subject: bsps/aarch64: refactor register init and hooks --- bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c') diff --git a/bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c b/bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c index ad688088e5..14f2bcc280 100644 --- a/bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c +++ b/bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c @@ -46,6 +46,11 @@ #endif BSP_START_TEXT_SECTION void bsp_start_hook_0( void ) +{ + /* do nothing */ +} + +BSP_START_TEXT_SECTION void bsp_start_hook_1( void ) { #ifdef RTEMS_SMP uint32_t cpu_index_self; @@ -72,13 +77,10 @@ BSP_START_TEXT_SECTION void bsp_start_hook_0( void ) _SMP_Start_multitasking_on_secondary_processor( _Per_CPU_Get_by_index( cpu_index_self ) ); + /* Unreached */ } +#endif /* RTEMS_SMP */ -#endif -} - -BSP_START_TEXT_SECTION void bsp_start_hook_1( void ) -{ AArch64_start_set_vector_base(); bsp_start_copy_sections(); zynqmp_setup_mmu_and_cache(); -- cgit v1.2.3