Import ACPICA 20160318.
This commit is contained in:
+10
-29
@@ -141,7 +141,6 @@ AdCreateTableHeader (
|
||||
char *Filename,
|
||||
ACPI_TABLE_HEADER *Table)
|
||||
{
|
||||
char *NewFilename;
|
||||
UINT8 Checksum;
|
||||
|
||||
|
||||
@@ -184,11 +183,10 @@ AdCreateTableHeader (
|
||||
|
||||
break;
|
||||
}
|
||||
AcpiOsPrintf ("\n");
|
||||
|
||||
/* Print and validate the table checksum */
|
||||
|
||||
AcpiOsPrintf (" * Checksum 0x%2.2X", Table->Checksum);
|
||||
AcpiOsPrintf ("\n * Checksum 0x%2.2X", Table->Checksum);
|
||||
|
||||
Checksum = AcpiTbChecksum (ACPI_CAST_PTR (UINT8, Table), Table->Length);
|
||||
if (Checksum)
|
||||
@@ -205,33 +203,16 @@ AdCreateTableHeader (
|
||||
AcpiOsPrintf (" * Compiler Version 0x%8.8X (%u)\n", Table->AslCompilerRevision, Table->AslCompilerRevision);
|
||||
AcpiOsPrintf (" */\n");
|
||||
|
||||
/* Create AML output filename based on input filename */
|
||||
|
||||
if (Filename)
|
||||
{
|
||||
NewFilename = FlGenerateFilename (Filename, "aml");
|
||||
}
|
||||
else
|
||||
{
|
||||
NewFilename = UtStringCacheCalloc (9);
|
||||
if (NewFilename)
|
||||
{
|
||||
strncat (NewFilename, Table->Signature, 4);
|
||||
strcat (NewFilename, ".aml");
|
||||
}
|
||||
}
|
||||
|
||||
if (!NewFilename)
|
||||
{
|
||||
AcpiOsPrintf (" **** Could not generate AML output filename\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Open the ASL definition block */
|
||||
|
||||
/*
|
||||
* Open the ASL definition block.
|
||||
*
|
||||
* Note: the AMLFilename string is left zero-length in order to just let
|
||||
* the compiler create it when the disassembled file is compiled. This
|
||||
* makes it easier to rename the disassembled ASL file if needed.
|
||||
*/
|
||||
AcpiOsPrintf (
|
||||
"DefinitionBlock (\"%s\", \"%4.4s\", %hu, \"%.6s\", \"%.8s\", 0x%8.8X)\n",
|
||||
NewFilename, Table->Signature, Table->Revision,
|
||||
"DefinitionBlock (\"\", \"%4.4s\", %hu, \"%.6s\", \"%.8s\", 0x%8.8X)\n",
|
||||
Table->Signature, Table->Revision,
|
||||
Table->OemId, Table->OemTableId, Table->OemRevision);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user