52#ifdef ACPI_USE_BUILTIN_STDARG
53typedef __builtin_va_list
va_list;
54#define va_start(v, l) __builtin_va_start(v, l)
55#define va_end(v) __builtin_va_end(v)
56#define va_arg(v, l) __builtin_va_arg(v, l)
57#define va_copy(d, s) __builtin_va_copy(d, s)
63#define ACPI_INLINE __inline__
67#define ACPI_GET_FUNCTION_NAME __func__
73#define ACPI_PRINTF_LIKE(c) __attribute__ ((__format__ (__printf__, c, c+1)))
81#define ACPI_UNUSED_VAR __attribute__ ((unused))
85#define COMPILER_VA_MACRO 1
89#define ACPI_USE_NATIVE_MATH64
93#ifndef __has_attribute
94#define __has_attribute(x) 0
102#if __has_attribute(__fallthrough__)
103#define ACPI_FALLTHROUGH __attribute__((__fallthrough__))
109#ifdef ACPI_APPLICATION
110#define ACPI_FLUSH_CPU_CACHE()
112#define ACPI_FLUSH_CPU_CACHE() asm ("WBINVD")
120#define ACPI_ACQUIRE_GLOBAL_LOCK(FacsPtr, Acq) \
127 "movl %%eax,%%edx;" \
131 "lock; cmpxchgl %%edx,(%2);" \
134 "sbbl %%eax,%%eax;" \
136 :"=a"(Acq):"a"(0xFF),"c"(FacsPtr),"i"(~1L):"edx");\
139#define ACPI_RELEASE_GLOBAL_LOCK(FacsPtr, Acq) \
146 "movl %%eax,%%edx;" \
148 "lock; cmpxchgl %%edx,(%2);" \
153 :"=a"(Acq):"a"(0),"c"(FacsPtr),"i"(~3L):"edx");\