summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/percpu.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2011-03-18 14:12:46 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2011-03-18 14:12:46 +0000
commitc26dd0df4a378fcc1f9818a636cbc79570357de9 (patch)
tree301e49d5edf180ae443eb65c60362b27622c6328 /cpukit/score/src/percpu.c
parentThis commit was generated by cvs2svn to compensate for changes in r25214, (diff)
downloadrtems-c26dd0df4a378fcc1f9818a636cbc79570357de9.tar.bz2
All possible cpus must be initialized prior to determining how many are actually used.
Diffstat (limited to 'cpukit/score/src/percpu.c')
-rw-r--r--cpukit/score/src/percpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/percpu.c b/cpukit/score/src/percpu.c
index 2d429b4db9..3a6676432b 100644
--- a/cpukit/score/src/percpu.c
+++ b/cpukit/score/src/percpu.c
@@ -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;