mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 09:24:08 +03:00
iASL: DT: simplify DtInitialize by removing redundant function calls
DT compiler initializes by calling AcpiOsInitialize() and AcpiUtInitGlobals(). These are called as a part of main() and do not need to be invoked during data table compilation. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
This commit is contained in:
parent
a7a2de9b80
commit
a2c2826ff4
@ -161,7 +161,7 @@ static char VersionString[9];
|
||||
|
||||
/* Local prototypes */
|
||||
|
||||
static ACPI_STATUS
|
||||
void
|
||||
DtInitialize (
|
||||
void);
|
||||
|
||||
@ -201,12 +201,7 @@ DtDoCompile (
|
||||
|
||||
/* Initialize globals */
|
||||
|
||||
Status = DtInitialize ();
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
printf ("Error during compiler initialization, 0x%X\n", Status);
|
||||
return (Status);
|
||||
}
|
||||
DtInitialize ();
|
||||
|
||||
/* Preprocessor */
|
||||
|
||||
@ -331,25 +326,12 @@ DtDoCompile (
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
static ACPI_STATUS
|
||||
void
|
||||
DtInitialize (
|
||||
void)
|
||||
{
|
||||
ACPI_STATUS Status;
|
||||
|
||||
|
||||
Status = AcpiOsInitialize ();
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
return (Status);
|
||||
}
|
||||
|
||||
Status = AcpiUtInitGlobals ();
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
return (Status);
|
||||
}
|
||||
|
||||
AcpiUtSetIntegerWidth (2); /* Set width to 64 bits */
|
||||
|
||||
AslGbl_FieldList = NULL;
|
||||
@ -357,7 +339,7 @@ DtInitialize (
|
||||
AslGbl_SubtableStack = NULL;
|
||||
|
||||
sprintf (VersionString, "%X", (UINT32) ACPI_CA_VERSION);
|
||||
return (AE_OK);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user