Date: Thu, 27 Jun 2013 00:22:40 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252280 - in head/sys: amd64/include contrib/dev/acpica/include/platform i386/include ia64/include Message-ID: <201306270022.r5R0Meq3021040@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Thu Jun 27 00:22:40 2013 New Revision: 252280 URL: http://svnweb.freebsd.org/changeset/base/252280 Log: Move definitions required by userland applications out of acpica_machdep.h. Modified: head/sys/amd64/include/acpica_machdep.h head/sys/contrib/dev/acpica/include/platform/acfreebsd.h head/sys/i386/include/acpica_machdep.h head/sys/ia64/include/acpica_machdep.h Modified: head/sys/amd64/include/acpica_machdep.h ============================================================================== --- head/sys/amd64/include/acpica_machdep.h Thu Jun 27 00:16:54 2013 (r252279) +++ head/sys/amd64/include/acpica_machdep.h Thu Jun 27 00:22:40 2013 (r252280) @@ -69,16 +69,12 @@ extern int acpi_release_global_lock(uint (Acq) = acpi_release_global_lock(&((GLptr)->GlobalLock)); \ } while (0) -#endif /* _KERNEL */ - -#define ACPI_MACHINE_WIDTH 64 -#define COMPILER_DEPENDENT_INT64 long -#define COMPILER_DEPENDENT_UINT64 unsigned long - void acpi_SetDefaultIntrModel(int model); void acpi_cpu_c1(void); void *acpi_map_table(vm_paddr_t pa, const char *sig); void acpi_unmap_table(void *table); vm_paddr_t acpi_find_table(const char *sig); +#endif /* _KERNEL */ + #endif /* __ACPICA_MACHDEP_H__ */ Modified: head/sys/contrib/dev/acpica/include/platform/acfreebsd.h ============================================================================== --- head/sys/contrib/dev/acpica/include/platform/acfreebsd.h Thu Jun 27 00:16:54 2013 (r252279) +++ head/sys/contrib/dev/acpica/include/platform/acfreebsd.h Thu Jun 27 00:22:40 2013 (r252280) @@ -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" Modified: head/sys/i386/include/acpica_machdep.h ============================================================================== --- head/sys/i386/include/acpica_machdep.h Thu Jun 27 00:16:54 2013 (r252279) +++ head/sys/i386/include/acpica_machdep.h Thu Jun 27 00:22:40 2013 (r252280) @@ -88,12 +88,6 @@ extern int acpi_release_global_lock(uint :"0"(n_hi), "1"(n_lo)) /*! [End] no source code translation !*/ -#endif /* _KERNEL */ - -#define ACPI_MACHINE_WIDTH 32 -#define COMPILER_DEPENDENT_INT64 long long -#define COMPILER_DEPENDENT_UINT64 unsigned long long -#define ACPI_USE_NATIVE_DIVIDE void acpi_SetDefaultIntrModel(int model); void acpi_cpu_c1(void); @@ -101,4 +95,6 @@ void *acpi_map_table(vm_paddr_t pa, cons void acpi_unmap_table(void *table); vm_paddr_t acpi_find_table(const char *sig); +#endif /* _KERNEL */ + #endif /* __ACPICA_MACHDEP_H__ */ Modified: head/sys/ia64/include/acpica_machdep.h ============================================================================== --- head/sys/ia64/include/acpica_machdep.h Thu Jun 27 00:16:54 2013 (r252279) +++ head/sys/ia64/include/acpica_machdep.h Thu Jun 27 00:22:40 2013 (r252280) @@ -37,7 +37,6 @@ #define __ACPICA_MACHDEP_H__ #ifdef _KERNEL -#define _IA64 /* * Calling conventions: @@ -71,12 +70,8 @@ extern int acpi_release_global_lock(uint (Acq) = acpi_release_global_lock(&((GLptr)->GlobalLock)); \ } while (0) -#endif /* _KERNEL */ - -#define ACPI_MACHINE_WIDTH 64 -#define COMPILER_DEPENDENT_INT64 long -#define COMPILER_DEPENDENT_UINT64 unsigned long - void acpi_cpu_c1(void); +#endif /* _KERNEL */ + #endif /* __ACPICA_MACHDEP_H__ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306270022.r5R0Meq3021040>