Hi,

This patch removes the wait of the primary cpu for the secondary cpus during initialisation. If there is a problem with a bootloader where the secondary cpus do not run RTEMS should at least operate in a degraded state rather than not at all.

The change also removes a warning.

Chris
diff --git a/cpukit/score/src/percpu.c b/cpukit/score/src/percpu.c
index b041b45..5d52b56 100644
--- a/cpukit/score/src/percpu.c
+++ b/cpukit/score/src/percpu.c
@@ -41,9 +41,9 @@
      */
     for ( cpu = 1 ; cpu < max_cpus; ++cpu ) {
 
+#if CPU_ALLOCATE_INTERRUPT_STACK == TRUE
       Per_CPU_Control *p = _Per_CPU_Get_by_index( cpu );
 
-#if CPU_ALLOCATE_INTERRUPT_STACK == TRUE
       {
         size_t size = rtems_configuration_get_interrupt_stack_size();
         uintptr_t ptr;
@@ -63,15 +63,6 @@
     max_cpus = bsp_smp_initialize( max_cpus );
 
     _SMP_Processor_count = max_cpus;
-
-    for ( cpu = 1 ; cpu < max_cpus; ++cpu ) {
-      const Per_CPU_Control *per_cpu = _Per_CPU_Get_by_index( cpu );
-
-      _Per_CPU_Wait_for_state(
-        per_cpu,
-        PER_CPU_STATE_READY_TO_BEGIN_MULTITASKING
-      );
-    }
   }
 
   void _Per_CPU_Change_state(
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to