diff options
author | jkim <jkim@FreeBSD.org> | 2009-06-08 17:11:47 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-06-08 17:11:47 +0000 |
commit | 76b38c556af92b00895865a09a6f444150b8a8d8 (patch) | |
tree | 61a7cd1445468188bc4b184e20fd885ccac37dcf /sys/contrib/dev/acpica/include | |
parent | c56cc07f7b936c4062f0e4a397e75187ea655889 (diff) | |
download | FreeBSD-src-76b38c556af92b00895865a09a6f444150b8a8d8.zip FreeBSD-src-76b38c556af92b00895865a09a6f444150b8a8d8.tar.gz |
Clean up FreeBSD-specific header file:
- Define ACPI_USE_DO_WHILE_0 to add do while(0) around return_*() macros.
- Define __cdecl only for user land. It will never be used in kernel.
- Remove __cli() and __sti(). They were deprecated long ago.
Diffstat (limited to 'sys/contrib/dev/acpica/include')
-rw-r--r-- | sys/contrib/dev/acpica/include/platform/acfreebsd.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/contrib/dev/acpica/include/platform/acfreebsd.h b/sys/contrib/dev/acpica/include/platform/acfreebsd.h index d3084eb..ce647f3 100644 --- a/sys/contrib/dev/acpica/include/platform/acfreebsd.h +++ b/sys/contrib/dev/acpica/include/platform/acfreebsd.h @@ -125,11 +125,10 @@ #define ACPI_UINTPTR_T uintptr_t +#define ACPI_USE_DO_WHILE_0 #define ACPI_USE_LOCAL_CACHE #define ACPI_USE_SYSTEM_CLIBRARY -#define __cdecl - #ifdef _KERNEL #include <sys/ctype.h> @@ -168,12 +167,10 @@ #define ACPI_THREAD_ID pthread_t -/* Not building kernel code, so use libc */ #define ACPI_USE_STANDARD_HEADERS -#define ACPI_FLUSH_CPU_CACHE() -#define __cli() -#define __sti() +#define ACPI_FLUSH_CPU_CACHE() +#define __cdecl #endif /* _KERNEL */ |