[PATCH 10/10] Add USE_CMOS_BIOS_SMP_COUNT option. If disabled, we wait 10ms instead of relying on the cpu count stored in memory.
Magnus Christensson
mch at virtutech.com
Tue Nov 3 14:46:52 CET 2009
---
src/config.h | 1 +
src/smp.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/config.h b/src/config.h
index 754559b..a9e79cb 100644
--- a/src/config.h
+++ b/src/config.h
@@ -192,5 +192,6 @@
/* Options for running on the Virtutech Simics x86-440bx machine model */
#define VIRTUTECH_IRQ0_OVERRIDE 1
#define VIRTUTECH_PC_SHADOW 1
+#define USE_CMOS_BIOS_SMP_COUNT 0
#endif // config.h
diff --git a/src/smp.c b/src/smp.c
index b0852f8..caec5f1 100644
--- a/src/smp.c
+++ b/src/smp.c
@@ -105,7 +105,7 @@ smp_probe(void)
writel(APIC_ICR_LOW, 0x000C4600 | sipi_vector);
// Wait for other CPUs to process the SIPI.
- if (CONFIG_COREBOOT) {
+ if (CONFIG_COREBOOT || !USE_CMOS_BIOS_SMP_COUNT) {
msleep(10);
} else {
u8 cmos_smp_count = inb_cmos(CMOS_BIOS_SMP_COUNT);
--
1.6.2.5
--------------080100040501080908060605--
More information about the coreboot
mailing list