2018-07-07 00:47:37 +00:00
|
|
|
Changes in the handling of comments caused some length fields to be used
|
|
|
|
in new ways. The new way broke the existing adaptation for big endian
|
|
|
|
support; this patch repairs that adaptation.
|
|
|
|
|
|
|
|
Signed-off-by: Al Stone <ahs3@redhat.com>
|
|
|
|
|
2019-11-23 23:16:51 +00:00
|
|
|
Index: acpica-unix-20191018/source/compiler/aslcodegen.c
|
2018-10-24 20:19:27 +00:00
|
|
|
===================================================================
|
2019-11-23 23:16:51 +00:00
|
|
|
--- acpica-unix-20191018.orig/source/compiler/aslcodegen.c
|
|
|
|
+++ acpica-unix-20191018/source/compiler/aslcodegen.c
|
2019-05-11 22:52:39 +00:00
|
|
|
@@ -497,8 +497,7 @@ CgWriteTableHeader (
|
2018-07-07 00:47:37 +00:00
|
|
|
|
|
|
|
/* Table length. Checksum zero for now, will rewrite later */
|
|
|
|
|
|
|
|
- DWord = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
|
2018-10-24 20:19:27 +00:00
|
|
|
- ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord);
|
|
|
|
+ AslGbl_TableHeader.Length = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
|
2018-07-07 00:47:37 +00:00
|
|
|
|
|
|
|
/* Calculate the comment lengths for this definition block parseOp */
|
|
|
|
|
2019-05-11 22:52:39 +00:00
|
|
|
@@ -544,6 +543,8 @@ CgWriteTableHeader (
|
2018-10-24 20:19:27 +00:00
|
|
|
CvDbgPrint (" Length: %u\n", CommentLength);
|
2018-07-07 00:47:37 +00:00
|
|
|
}
|
|
|
|
}
|
2018-10-24 20:19:27 +00:00
|
|
|
+ DWord = AslGbl_TableHeader.Length;
|
|
|
|
+ ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord);
|
2018-07-07 00:47:37 +00:00
|
|
|
|
2018-10-24 20:19:27 +00:00
|
|
|
AslGbl_TableHeader.Checksum = 0;
|
|
|
|
Op->Asl.FinalAmlOffset = ftell (AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle);
|