[ACPI]
[reactos.git] / reactos / drivers / bus / acpi / acpica / include / platform / acgcc.h
index e517a23..a6f2ba1 100644 (file)
@@ -8,7 +8,7 @@
  *
  * 1. Copyright Notice
  *
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp.
  * All rights reserved.
  *
  * 2. License
 #ifndef __ACGCC_H__
 #define __ACGCC_H__
 
+#define ACPI_INLINE             __inline__
+
 /* Function name is used for debug output. Non-ANSI, compiler-dependent */
 
 #define ACPI_GET_FUNCTION_NAME          __FUNCTION__
  */
 #define ACPI_UNUSED_VAR __attribute__ ((unused))
 
-#define COMPILER_DEPENDENT_INT64   long long int
-#define COMPILER_DEPENDENT_UINT64  unsigned long long int
-
 #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) \
        do { \
                int dummy; \
                        "andl   $0x1,%%eax" \
                        :"=a"(Acq),"=c"(dummy):"c"(GLptr),"i"(~3L):"dx"); \
        } while(0)
+    
+#ifdef ACPI_APPLICATION
+#define ACPI_FLUSH_CPU_CACHE()
+#else
+#define ACPI_FLUSH_CPU_CACHE()  asm ("WBINVD")
+#endif
 
 #define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \
 {                           \