[rtems commit] bsp/realview-pbx-a9: Fix smpfatal04 test

Sebastian Huber sebh at rtems.org
Thu Dec 10 08:43:03 UTC 2020


Module:    rtems
Branch:    master
Commit:    6b79abfbbcd274fcda8ae4524f580734758b686b
Changeset: http://git.rtems.org/rtems/commit/?id=6b79abfbbcd274fcda8ae4524f580734758b686b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Dec 10 09:41:54 2020 +0100

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 db55b03..1e386bf 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();



More information about the vc mailing list