[PATCH 11/11] Write CPU entries at the right place.
Magnus Christensson
mch at virtutech.com
Thu Nov 12 16:39:35 CET 2009
Signed-off-by: Magnus Christensson <mch at virtutech.com>
---
src/mptable.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mptable.c b/src/mptable.c
index 5b308ec..391fe5a 100644
--- a/src/mptable.c
+++ b/src/mptable.c
@@ -62,7 +62,7 @@ mptable_init(void)
struct mpt_cpu *cpus = (void*)&config[1];
int i, actual_cpu_count;
for (i = 0, actual_cpu_count = 0; i < MaxCountCPUs; i++) {
- struct mpt_cpu *cpu = &cpus[i];
+ struct mpt_cpu *cpu = &cpus[actual_cpu_count];
int log_cpus = (ebx >> 16) & 0xff;
log_cpus = 1UL << fls(log_cpus - 1); /* round up to power of 2 */
--
1.6.2.5
--------------090606030602040601020704--
More information about the coreboot
mailing list