[PATCH] Make 2.2.0-pre2 compile for PPro/P2 (family 6) UP

Jarno Paananen (jpaana@s2.org)
Thu, 31 Dec 1998 18:45:29 +0200


Hi,

a small buglet lurked into 2.2.0-pre2, which makes it to fail on PPro/P2
(family 6) UP as smp_found_config is not defined there. Patch follows:

// Jarno

--- linux/include/asm-i386/bugs.h~ Thu Dec 31 18:40:23 1998
+++ linux/include/asm-i386/bugs.h Thu Dec 31 18:31:43 1998
@@ -350,7 +350,7 @@
#endif

/* If we were told we had a good APIC for SMP, we'd better be a PPro */
-#ifdef CONFIG_GOOD_APIC
+#if defined(CONFIG_GOOD_APIC) && defined(CONFIG_SMP)
if (smp_found_config && boot_cpu_data.x86 <= 5)
panic("Kernel compiled for PPro+, assumes local APIC without read-before-write bug");
#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/