All possible cpus must be initialized prior to determining how many are actually used.

This commit is contained in:
Jennifer Averett
2011-03-18 14:12:46 +00:00
parent 3db30a68ad
commit c26dd0df4a
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2011-03-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* score/src/percpu.c: All possible cpus must be
initialized prior to determining how many are actually used.
2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1729/cpukit

View File

@@ -40,7 +40,10 @@
*/
size = Configuration.interrupt_stack_size;
_Per_CPU_Information_p[0] = &_Per_CPU_Information[0];
for (cpu=1 ; cpu < _SMP_Processor_count ; cpu++ ) {
for (cpu=1 ; cpu < rtems_smp_maximum_processors; cpu++ ) {
printk("Initializing cpu control structure %d\n", cpu );
Per_CPU_Control *p = &_Per_CPU_Information[cpu];
_Per_CPU_Information_p[cpu] = p;