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>
This commit is contained in:
pirzyk 2002-10-17 05:51:36 +00:00
parent 35c72bc070
commit e34215c0e9
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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)