1 Changes in the handling of comments caused some length fields to be used
2 in new ways. The new way broke the existing adaptation for big endian
3 support; this patch repairs that adaptation.
5 Signed-off-by: Al Stone <ahs3@redhat.com>
7 Index: acpica-unix-20191213/source/compiler/aslcodegen.c
8 ===================================================================
9 --- acpica-unix-20191213.orig/source/compiler/aslcodegen.c
10 +++ acpica-unix-20191213/source/compiler/aslcodegen.c
11 @@ -497,8 +497,7 @@ CgWriteTableHeader (
13 /* Table length. Checksum zero for now, will rewrite later */
15 - DWord = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
16 - ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord);
17 + AslGbl_TableHeader.Length = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
19 /* Calculate the comment lengths for this definition block parseOp */
21 @@ -544,6 +543,8 @@ CgWriteTableHeader (
22 CvDbgPrint (" Length: %u\n", CommentLength);
25 + DWord = AslGbl_TableHeader.Length;
26 + ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord);
28 AslGbl_TableHeader.Checksum = 0;
29 Op->Asl.FinalAmlOffset = ftell (AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle);