diff options
author | Gedare Bloom <gedare@rtems.org> | 2022-01-06 12:03:04 -0700 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2022-01-12 09:00:19 -0700 |
commit | ea7b1b79f893b4024e5feb9cc39e7bfbe3cc124b (patch) | |
tree | c5962ead56eea5a33494e4f62b821b7248695fb6 /bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c | |
parent | spintrcritical21: Clear pending events (diff) | |
download | rtems-ea7b1b79f893b4024e5feb9cc39e7bfbe3cc124b.tar.bz2 |
bsps/aarch64: refactor register init and hooks
Diffstat (limited to 'bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c')
-rw-r--r-- | bsps/aarch64/xilinx-zynqmp/start/bspstarthooks.c | 12 |
1 files changed, 7 insertions, 5 deletions
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 @@ -47,6 +47,11 @@ 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(); |