summaryrefslogtreecommitdiff
path: root/source/components/utilities/utglobal.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-02-17 17:10:41 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-02-17 17:10:41 +0000
commit526d99544ba42a5a2155021975b3b97da425819e (patch)
treef33eb960cbd87cb5fa516e45153eb6351dc8ea2e /source/components/utilities/utglobal.c
parent7bf0bd8c239ae7e6cb5c98382db85377146519d6 (diff)
Notes
Diffstat (limited to 'source/components/utilities/utglobal.c')
-rw-r--r--source/components/utilities/utglobal.c38
1 files changed, 18 insertions, 20 deletions
diff --git a/source/components/utilities/utglobal.c b/source/components/utilities/utglobal.c
index 046f3bba602a..0b029c8825a1 100644
--- a/source/components/utilities/utglobal.c
+++ b/source/components/utilities/utglobal.c
@@ -58,12 +58,7 @@
*
******************************************************************************/
-/*
- * We want the debug switches statically initialized so they
- * are already set when the debugger is entered.
- */
-
-/* Debug switch - level and trace mask */
+/* Debug output control masks */
#ifdef ACPI_DEBUG_OUTPUT
UINT32 AcpiDbgLevel = ACPI_DEBUG_DEFAULT;
@@ -71,24 +66,24 @@ UINT32 AcpiDbgLevel = ACPI_DEBUG_DEFAULT;
UINT32 AcpiDbgLevel = ACPI_NORMAL_DEFAULT;
#endif
-/* Debug switch - layer (component) mask */
-
UINT32 AcpiDbgLayer = ACPI_COMPONENT_DEFAULT;
-UINT32 AcpiGbl_NestingLevel = 0;
-
-/* Debugger globals */
-
-BOOLEAN AcpiGbl_DbTerminateThreads = FALSE;
-BOOLEAN AcpiGbl_AbortMethod = FALSE;
-BOOLEAN AcpiGbl_MethodExecuting = FALSE;
-/* System flags */
+/* AcpiGbl_FADT is a local copy of the FADT, converted to a common format. */
-UINT32 AcpiGbl_StartupFlags = 0;
+ACPI_TABLE_FADT AcpiGbl_FADT;
+UINT32 AcpiGbl_TraceFlags;
+ACPI_NAME AcpiGbl_TraceMethodName;
+BOOLEAN AcpiGbl_SystemAwakeAndRunning;
+UINT32 AcpiCurrentGpeCount;
-/* System starts uninitialized */
+/*
+ * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
+ * that the ACPI hardware is no longer required. A flag in the FADT indicates
+ * a reduced HW machine, and that flag is duplicated here for convenience.
+ */
+BOOLEAN AcpiGbl_ReducedHardware;
-BOOLEAN AcpiGbl_Shutdown = TRUE;
+/* Various state name strings */
const char *AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT] =
{
@@ -309,7 +304,6 @@ AcpiUtInitGlobals (
AcpiGbl_DSDT = NULL;
AcpiGbl_CmSingleStep = FALSE;
- AcpiGbl_DbTerminateThreads = FALSE;
AcpiGbl_Shutdown = FALSE;
AcpiGbl_NsLookupCount = 0;
AcpiGbl_PsFindCount = 0;
@@ -357,6 +351,10 @@ AcpiUtInitGlobals (
AcpiGbl_DisableMemTracking = FALSE;
#endif
+#ifdef ACPI_DEBUGGER
+ AcpiGbl_DbTerminateThreads = FALSE;
+#endif
+
return_ACPI_STATUS (AE_OK);
}