score: Initialize per-CPU locks

This commit is contained in:
Sebastian Huber
2014-02-18 13:20:08 +01:00
parent 282bfd3b41
commit b1d08a58b2

View File

@@ -34,6 +34,12 @@ void _SMP_Handler_initialize( void )
uint32_t max_cpus = rtems_configuration_get_maximum_processors(); uint32_t max_cpus = rtems_configuration_get_maximum_processors();
uint32_t cpu; uint32_t cpu;
for ( cpu = 0 ; cpu < max_cpus; ++cpu ) {
Per_CPU_Control *per_cpu = _Per_CPU_Get_by_index( cpu );
_ISR_lock_Initialize( &per_cpu->lock );
}
/* /*
* Discover and initialize the secondary cores in an SMP system. * Discover and initialize the secondary cores in an SMP system.
*/ */