forked from Imagelibrary/rtems
All possible cpus must be initialized prior to determining how many are actually used.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user