fix: 2.2.0-pre2 UP compile problem

Gerd Knorr (kraxel@goldbach.in-berlin.de)
Fri, 1 Jan 1999 11:03:26 +0100 (CET)


Hi,

2.2.0-pre2 configured for UP and PPro does'nt compile, fix below.

Gerd

----------------------------------------------------
diff -urN kernel/2.2.0-pre2/include/asm-i386/bugs.h linux/include/asm-i386/bugs.h
--- kernel/2.2.0-pre2/include/asm-i386/bugs.h Fri Jan 1 09:50:36 1999
+++ linux/include/asm-i386/bugs.h Fri Jan 1 10:10:41 1999
@@ -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(__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/