diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-10 09:41:54 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-10 09:42:49 +0100 |
commit | 6b79abfbbcd274fcda8ae4524f580734758b686b (patch) | |
tree | 47c610235175910eb79a820dcd8bfc99c218428b | |
parent | bsps/arm: Move BSP_START_IN_HYP_SUPPORT option (diff) | |
download | rtems-6b79abfbbcd274fcda8ae4524f580734758b686b.tar.bz2 |
bsp/realview-pbx-a9: Fix smpfatal04 test
-rw-r--r-- | bsps/arm/realview-pbx-a9/start/bspstarthooks.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bsps/arm/realview-pbx-a9/start/bspstarthooks.c b/bsps/arm/realview-pbx-a9/start/bspstarthooks.c index db55b03cb6..1e386bfd23 100644 --- a/bsps/arm/realview-pbx-a9/start/bspstarthooks.c +++ b/bsps/arm/realview-pbx-a9/start/bspstarthooks.c @@ -68,8 +68,9 @@ BSP_START_TEXT_SECTION void bsp_start_hook_0(void) * SMP_FATAL_MULTITASKING_START_ON_UNASSIGNED_PROCESSOR this way. */ if ( - cpu_index_self >= rtems_configuration_get_maximum_processors() - || !_SMP_Should_start_processor(cpu_index_self) + cpu_index_self != 0 && + (cpu_index_self >= rtems_configuration_get_maximum_processors() || + !_SMP_Should_start_processor(cpu_index_self)) ) { while (true) { _ARM_Wait_for_event(); |