Fixes a problem introduced in one of my earlier patches.
M.
>From 58063b8d781bb2d00029dfc999a18bba53860065 Mon Sep 17 00:00:00 2001 From: Magnus Christensson <[email protected]> Date: Thu, 12 Nov 2009 16:39:35 +0100 Subject: [PATCH 11/11] Write CPU entries at the right place. Signed-off-by: Magnus Christensson <[email protected]> --- 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
-- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

