summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorpirzyk <pirzyk@FreeBSD.org>2002-10-17 05:51:36 +0000
committerpirzyk <pirzyk@FreeBSD.org>2002-10-17 05:51:36 +0000
commite34215c0e9b97b01f0009ef2e9e8038f716a1c22 (patch)
treeb8fceb3ca0bfde5c10f875ef76cb48ccac17cd82 /sys/i386
parent35c72bc070edd107a74476dbe14fc4f175b0c676 (diff)
downloadFreeBSD-src-e34215c0e9b97b01f0009ef2e9e8038f716a1c22.zip
FreeBSD-src-e34215c0e9b97b01f0009ef2e9e8038f716a1c22.tar.gz
put an #error directive when SMP and CPU_DISABLE_CMPXCHG are set
together. Requested by: Lars Eggart <larse@isi.edu> Enlighted how to do it by: John Baldwin <jhb@freebsd.org>
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/smp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/include/smp.h b/sys/i386/include/smp.h
index d669c51..ef5e684 100644
--- a/sys/i386/include/smp.h
+++ b/sys/i386/include/smp.h
@@ -21,6 +21,9 @@
#if defined(SMP) && !defined(APIC_IO)
# error APIC_IO required for SMP, add "options APIC_IO" to your config file.
#endif /* SMP && !APIC_IO */
+#if defined(SMP) && defined(CPU_DISABLE_CMPXCHG)
+#error SMP not supported with CPU_DISABLE_CMPXCHG
+#endif
#if defined(SMP) || defined(APIC_IO)
OpenPOWER on IntegriCloud