summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-06-27 00:22:40 +0000
committerjkim <jkim@FreeBSD.org>2013-06-27 00:22:40 +0000
commit70506a4dd6c199d14c230a8786477b0bac30dc5f (patch)
treef7e9cac83683879e0f3e67d501318e94e2945f92 /sys/contrib
parentfaabc5353932108c96a32e7422578294fe30ab63 (diff)
downloadFreeBSD-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.h12
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"
OpenPOWER on IntegriCloud