Must init ACPI core before fussing with global variables

date	2002.06.12.21.44.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:42:15 +00:00
parent 4cfe830b12
commit 5a40edb2cb

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: aemain - Main routine for the AcpiExec utility
* $Revision: 1.65 $
* $Revision: 1.66 $
*
*****************************************************************************/
@ -211,6 +211,9 @@ main (
AcpiDbgLevel = NORMAL_DEFAULT;
AcpiDbgLayer = 0xFFFFFFFF;
/* Init ACPI and start debugger thread */
AcpiInitializeSubsystem ();
printf ("ACPI AML Execution/Debug Utility ");
@ -264,9 +267,6 @@ main (
return -1;
}
/* Init ACPI and start debugger thread */
AcpiInitializeSubsystem ();
InitFlags = (ACPI_NO_HANDLER_INIT | ACPI_NO_ACPI_ENABLE);
if (!AcpiGbl_DbOpt_ini_methods)