diff options
Diffstat (limited to 'source/compiler/dtcompile.c')
-rw-r--r-- | source/compiler/dtcompile.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/source/compiler/dtcompile.c b/source/compiler/dtcompile.c index 93944146789d..78bb7bbb3218 100644 --- a/source/compiler/dtcompile.c +++ b/source/compiler/dtcompile.c @@ -184,7 +184,7 @@ DtInsertCompilerIds ( * * DESCRIPTION: Main entry point for the data table compiler. * - * Note: Assumes Gbl_Files[ASL_FILE_INPUT] is initialized and the file is + * Note: Assumes AslGbl_Files[ASL_FILE_INPUT] is initialized and the file is * open at seek offset zero. * *****************************************************************************/ @@ -209,7 +209,7 @@ DtDoCompile ( /* Preprocessor */ - if (Gbl_PreprocessFlag) + if (AslGbl_PreprocessFlag) { /* Preprocessor */ @@ -217,7 +217,7 @@ DtDoCompile ( PrDoPreprocess (); UtEndEvent (Event); - if (Gbl_PreprocessOnly) + if (AslGbl_PreprocessOnly) { return (AE_OK); } @@ -228,7 +228,7 @@ DtDoCompile ( * build the parse tree */ Event = UtBeginEvent ("Scan and parse input file"); - FieldList = DtScanFile (Gbl_Files[ASL_FILE_INPUT].Handle); + FieldList = DtScanFile (AslGbl_Files[ASL_FILE_INPUT].Handle); UtEndEvent (Event); /* Did the parse tree get successfully constructed? */ @@ -264,8 +264,8 @@ DtDoCompile ( /* Create/open the binary output file */ - Gbl_Files[ASL_FILE_AML_OUTPUT].Filename = NULL; - Status = FlOpenAmlOutputFile (Gbl_OutputFilenamePrefix); + AslGbl_Files[ASL_FILE_AML_OUTPUT].Filename = NULL; + Status = FlOpenAmlOutputFile (AslGbl_OutputFilenamePrefix); if (ACPI_FAILURE (Status)) { goto CleanupAndExit; @@ -273,7 +273,7 @@ DtDoCompile ( /* Write the binary, then the optional hex file */ - DtOutputBinary (Gbl_RootTable); + DtOutputBinary (AslGbl_RootTable); HxDoHexOutput (); DtWriteTableToListing (); @@ -319,9 +319,9 @@ DtInitialize ( AcpiUtSetIntegerWidth (2); /* Set width to 64 bits */ - Gbl_FieldList = NULL; - Gbl_RootTable = NULL; - Gbl_SubtableStack = NULL; + AslGbl_FieldList = NULL; + AslGbl_RootTable = NULL; + AslGbl_SubtableStack = NULL; sprintf (VersionString, "%X", (UINT32) ACPI_CA_VERSION); return (AE_OK); @@ -353,7 +353,7 @@ DtInsertCompilerIds ( * Don't insert current compiler ID if requested. Used for compiler * debug/validation only. */ - if (Gbl_UseOriginalCompilerId) + if (AslGbl_UseOriginalCompilerId) { return; } @@ -404,14 +404,14 @@ DtCompileDataTable ( Signature = DtGetFieldValue (*FieldList); if (!Signature) { - sprintf (MsgBuffer, "Expected \"%s\"", "Signature"); + sprintf (AslGbl_MsgBuffer, "Expected \"%s\"", "Signature"); DtNameError (ASL_ERROR, ASL_MSG_INVALID_FIELD_NAME, - *FieldList, MsgBuffer); + *FieldList, AslGbl_MsgBuffer); return (AE_ERROR); } - Gbl_Signature = UtLocalCacheCalloc (strlen (Signature) + 1); - strcpy (Gbl_Signature, Signature); + AslGbl_Signature = UtLocalCacheCalloc (strlen (Signature) + 1); + strcpy (AslGbl_Signature, Signature); /* * Handle tables that don't use the common ACPI table header structure. @@ -453,18 +453,18 @@ DtCompileDataTable ( DtInsertCompilerIds (*FieldList); Status = DtCompileTable (FieldList, AcpiDmTableInfoHeader, - &Gbl_RootTable); + &AslGbl_RootTable); if (ACPI_FAILURE (Status)) { return (Status); } - DtPushSubtable (Gbl_RootTable); + DtPushSubtable (AslGbl_RootTable); /* Validate the signature via the ACPI table list */ TableData = AcpiDmGetTableData (Signature); - if (!TableData || Gbl_CompileGeneric) + if (!TableData || AslGbl_CompileGeneric) { /* Unknown table signature and/or force generic compile */ @@ -498,7 +498,7 @@ DtCompileDataTable ( return (Status); } - DtInsertSubtable (Gbl_RootTable, Subtable); + DtInsertSubtable (AslGbl_RootTable, Subtable); DtPopSubtable (); } } @@ -515,7 +515,7 @@ FinishHeader: DtSetTableLength (); AcpiTableHeader = ACPI_CAST_PTR ( - ACPI_TABLE_HEADER, Gbl_RootTable->Buffer); + ACPI_TABLE_HEADER, AslGbl_RootTable->Buffer); DtSetTableChecksum (&AcpiTableHeader->Checksum); DtDumpFieldList (RootField); @@ -612,21 +612,21 @@ DtCompileTable ( if (!LocalField) { - sprintf (MsgBuffer, "Found NULL field - Field name \"%s\" needed", + sprintf (AslGbl_MsgBuffer, "Found NULL field - Field name \"%s\" needed", Info->Name); - DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, MsgBuffer); + DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); Status = AE_BAD_DATA; goto Error; } /* Maintain table offsets */ - LocalField->TableOffset = Gbl_CurrentTableOffset; + LocalField->TableOffset = AslGbl_CurrentTableOffset; FieldLength = DtGetFieldLength (LocalField, Info); - Gbl_CurrentTableOffset += FieldLength; + AslGbl_CurrentTableOffset += FieldLength; FieldType = DtGetFieldType (Info); - Gbl_InputFieldCount++; + AslGbl_InputFieldCount++; switch (FieldType) { @@ -696,9 +696,9 @@ DtCompileTable ( break; default: - sprintf (MsgBuffer, "Invalid DMT opcode: 0x%.2X", + sprintf (AslGbl_MsgBuffer, "Invalid DMT opcode: 0x%.2X", Info->Opcode); - DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, MsgBuffer); + DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); Status = AE_BAD_DATA; break; } |