X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Facpi%2Fplatform%2Facenv.h;fp=include%2Facpi%2Fplatform%2Facenv.h;h=223ec6467108f918f4071ac454f1eceb8ece10de;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=453a469fd397b9a8073037d25ddfd2761c218c29;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index 453a469fd..223ec6467 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h @@ -49,41 +49,33 @@ */ #ifdef ACPI_LIBRARY -/* - * Note: The non-debug version of the acpi_library does not contain any - * debug support, for minimimal size. The debug version uses ACPI_FULL_DEBUG - */ #define ACPI_USE_LOCAL_CACHE #endif -#ifdef ACPI_ASL_COMPILER +#ifdef ACPI_DUMP_APP +#ifndef MSDOS #define ACPI_DEBUG_OUTPUT +#endif #define ACPI_APPLICATION #define ACPI_DISASSEMBLER -#define ACPI_CONSTANT_EVAL_ONLY -#define ACPI_LARGE_NAMESPACE_NODE -#define ACPI_DATA_TABLE_DISASSEMBLY +#define ACPI_NO_METHOD_EXECUTION #endif #ifdef ACPI_EXEC_APP #undef DEBUGGER_THREADING #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED -#define ACPI_FULL_DEBUG +#define ACPI_DEBUG_OUTPUT #define ACPI_APPLICATION #define ACPI_DEBUGGER +#define ACPI_DISASSEMBLER #define ACPI_MUTEX_DEBUG -#define ACPI_DBG_TRACK_ALLOCATIONS #endif -#ifdef ACPI_DASM_APP -#ifndef MSDOS +#ifdef ACPI_ASL_COMPILER #define ACPI_DEBUG_OUTPUT -#endif #define ACPI_APPLICATION #define ACPI_DISASSEMBLER -#define ACPI_NO_METHOD_EXECUTION -#define ACPI_LARGE_NAMESPACE_NODE -#define ACPI_DATA_TABLE_DISASSEMBLY +#define ACPI_CONSTANT_EVAL_ONLY #endif #ifdef ACPI_APPLICATION @@ -91,12 +83,6 @@ #define ACPI_USE_LOCAL_CACHE #endif -#ifdef ACPI_FULL_DEBUG -#define ACPI_DEBUGGER -#define ACPI_DEBUG_OUTPUT -#define ACPI_DISASSEMBLER -#endif - /* * Environment configuration. The purpose of this file is to interface to the * local generation environment. @@ -151,7 +137,7 @@ #elif defined(MSDOS) /* Must appear after WIN32 and WIN64 check */ #include "acdos16.h" -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#elif defined(__FreeBSD__) #include "acfreebsd.h" #elif defined(__NetBSD__) @@ -177,6 +163,17 @@ #endif +/* + * Memory allocation tracking. Used only if + * 1) This is the debug version + * 2) This is NOT a 16-bit version of the code (not enough real-mode memory) + */ +#ifdef ACPI_DEBUG_OUTPUT +#if ACPI_MACHINE_WIDTH != 16 +#define ACPI_DBG_TRACK_ALLOCATIONS +#endif +#endif + /*! [End] no source code translation !*/ /* @@ -274,8 +271,8 @@ typedef char *va_list; /* * Storage alignment properties */ -#define _AUPBND (sizeof (acpi_native_int) - 1) -#define _ADNBND (sizeof (acpi_native_int) - 1) +#define _AUPBND (sizeof (acpi_native_uint) - 1) +#define _ADNBND (sizeof (acpi_native_uint) - 1) /* * Variable argument list macro definitions