[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-24
Subject:    [ACPI] allow building ACPI w/ CMPXCHG when CONFIG_M386=y
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2004-03-30 22:03:57
Message-ID: 200404012003.i31K3ASY002263 () hera ! kernel ! org
[Download RAW message or body]

ChangeSet 1.1063.46.92, 2004/03/30 17:03:57-05:00, len.brown@intel.com

	[ACPI] allow building ACPI w/ CMPXCHG when CONFIG_M386=y
	http://bugzilla.kernel.org/show_bug.cgi?id=2391


# This patch includes the following deltas:
#	           ChangeSet	1.1063.46.91 -> 1.1063.46.92
#	include/asm-i386/system.h	1.15    -> 1.16   
#	include/asm-i386/acpi.h	1.13    -> 1.13.1.1
#	arch/i386/kernel/acpi.c	1.20.2.2 -> 1.20.2.3
#

 arch/i386/kernel/acpi.c   |    4 ++++
 include/asm-i386/acpi.h   |    9 ---------
 include/asm-i386/system.h |    5 +----
 3 files changed, 5 insertions(+), 13 deletions(-)


diff -Nru a/arch/i386/kernel/acpi.c b/arch/i386/kernel/acpi.c
--- a/arch/i386/kernel/acpi.c	Thu Apr  1 12:03:12 2004
+++ b/arch/i386/kernel/acpi.c	Thu Apr  1 12:03:12 2004
@@ -590,6 +590,10 @@
 
 
 
+#ifndef __HAVE_ARCH_CMPXCHG
+#warning ACPI uses CMPXCHG, i486 and later hardware
+#endif
+
 /* --------------------------------------------------------------------------
                               Low-Level Sleep Support
    -------------------------------------------------------------------------- */
diff -Nru a/include/asm-i386/acpi.h b/include/asm-i386/acpi.h
--- a/include/asm-i386/acpi.h	Thu Apr  1 12:03:12 2004
+++ b/include/asm-i386/acpi.h	Thu Apr  1 12:03:12 2004
@@ -52,15 +52,6 @@
 #define ACPI_ENABLE_IRQS()  __sti()
 #define ACPI_FLUSH_CPU_CACHE()	wbinvd()
 
-/*
- * A brief explanation as GNU inline assembly is a bit hairy
- *  %0 is the output parameter in EAX ("=a")
- *  %1 and %2 are the input parameters in ECX ("c")
- *  and an immediate value ("i") respectively
- *  All actual register references are preceded with "%%" as in "%%edx"
- *  Immediate values in the assembly are preceded by "$" as in "$0x1"
- *  The final asm parameter are the operation altered non-output registers.
- */
 
 static inline int
 __acpi_acquire_global_lock (unsigned int *lock)
diff -Nru a/include/asm-i386/system.h b/include/asm-i386/system.h
--- a/include/asm-i386/system.h	Thu Apr  1 12:03:12 2004
+++ b/include/asm-i386/system.h	Thu Apr  1 12:03:12 2004
@@ -238,6 +238,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)
@@ -270,10 +271,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
-
 /*
  * Force strict CPU ordering.
  * And yes, this is required on UP too when we're talking
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic