From c26dd0df4a378fcc1f9818a636cbc79570357de9 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Fri, 18 Mar 2011 14:12:46 +0000 Subject: All possible cpus must be initialized prior to determining how many are actually used. --- cpukit/score/src/percpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/percpu.c') 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; -- cgit v1.2.3