diff options
author | jkim <jkim@FreeBSD.org> | 2013-06-27 00:22:40 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-06-27 00:22:40 +0000 |
commit | 70506a4dd6c199d14c230a8786477b0bac30dc5f (patch) | |
tree | f7e9cac83683879e0f3e67d501318e94e2945f92 /sys/contrib | |
parent | faabc5353932108c96a32e7422578294fe30ab63 (diff) | |
download | FreeBSD-src-70506a4dd6c199d14c230a8786477b0bac30dc5f.zip FreeBSD-src-70506a4dd6c199d14c230a8786477b0bac30dc5f.tar.gz |
Move definitions required by userland applications out of acpica_machdep.h.
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/dev/acpica/include/platform/acfreebsd.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/contrib/dev/acpica/include/platform/acfreebsd.h b/sys/contrib/dev/acpica/include/platform/acfreebsd.h index 6b32ce7..34786c3 100644 --- a/sys/contrib/dev/acpica/include/platform/acfreebsd.h +++ b/sys/contrib/dev/acpica/include/platform/acfreebsd.h @@ -49,12 +49,21 @@ #include <contrib/dev/acpica/include/platform/acgcc.h> #include <sys/types.h> -#include <machine/acpica_machdep.h> + +#ifdef __LP64__ +#define ACPI_MACHINE_WIDTH 64 +#else +#define ACPI_MACHINE_WIDTH 32 +#endif + +#define COMPILER_DEPENDENT_INT64 int64_t +#define COMPILER_DEPENDENT_UINT64 uint64_t #define ACPI_UINTPTR_T uintptr_t #define ACPI_USE_DO_WHILE_0 #define ACPI_USE_LOCAL_CACHE +#define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_SYSTEM_CLIBRARY #ifdef _KERNEL @@ -63,6 +72,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/libkern.h> +#include <machine/acpica_machdep.h> #include <machine/stdarg.h> #include "opt_acpi.h" |