Messages in this thread Patches in this message | | | Subject | Re: [ACPI] Re: Linux 2.4.26-rc1 (cmpxchg vs 80386 build) | From | Len Brown <> | Date | 30 Mar 2004 16:49:13 -0500 |
| |
Okay, simplicity wins;-)
Build for 80386 -- get a build-time warning -- that should do.
thanks, -Len
ps. earliest ACPI implementation is said to in the late Pentium (1) era.
===== arch/i386/kernel/acpi/boot.c 1.56 vs edited ===== --- 1.56/arch/i386/kernel/acpi/boot.c Fri Mar 26 17:50:48 2004 +++ edited/arch/i386/kernel/acpi/boot.c Tue Mar 30 16:23:39 2004 @@ -67,6 +67,10 @@ static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE; #endif +#ifndef __HAVE_ARCH_CMPXCHG +#warning ACPI uses CMPXCHG, i486 and later hardware +#endif + /* -------------------------------------------------------------------------- Boot-time Configuration -------------------------------------------------------------------------- */ ===== include/asm-i386/system.h 1.30 vs edited ===== --- 1.30/include/asm-i386/system.h Fri Nov 21 01:24:00 2003 +++ edited/include/asm-i386/system.h Tue Mar 30 16:05:30 2004 @@ -241,6 +241,7 @@ #ifdef CONFIG_X86_CMPXCHG #define __HAVE_ARCH_CMPXCHG 1 +#endif static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) @@ -273,10 +274,6 @@ ((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\ (unsigned long)(n),sizeof(*(ptr)))) -#else -/* Compiling for a 386 proper. Is it worth implementing via cli/sti? */ -#endif - #ifdef __KERNEL__ struct alt_instr { __u8 *instr; /* original instruction */
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |