diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-03-18 14:12:46 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-03-18 14:12:46 +0000 |
commit | c26dd0df4a378fcc1f9818a636cbc79570357de9 (patch) | |
tree | 301e49d5edf180ae443eb65c60362b27622c6328 /cpukit | |
parent | This commit was generated by cvs2svn to compensate for changes in r25214, (diff) | |
download | rtems-c26dd0df4a378fcc1f9818a636cbc79570357de9.tar.bz2 |
All possible cpus must be initialized prior to determining how many are actually used.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/src/percpu.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index eee80b12c9..8560cb9279 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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 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; |