From 6b79abfbbcd274fcda8ae4524f580734758b686b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 10 Dec 2020 09:41:54 +0100 Subject: bsp/realview-pbx-a9: Fix smpfatal04 test --- bsps/arm/realview-pbx-a9/start/bspstarthooks.c | 5 +++-- 1 file 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(); -- cgit v1.2.3