Blame SOURCES/aslcodegen.patch

88c41d
Changes in the handling of comments caused some length fields to be used
88c41d
in new ways.  The new way broke the existing adaptation for big endian
88c41d
support; this patch repairs that adaptation.
88c41d
88c41d
Signed-off-by: Al Stone <ahs3@redhat.com>
88c41d
88c41d
diff -Naur acpica-unix2-20180531.orig/source/compiler/aslcodegen.c acpica-unix2-20180531/source/compiler/aslcodegen.c
88c41d
--- acpica-unix2-20180531.orig/source/compiler/aslcodegen.c	2018-07-06 20:28:35.255546578 -0400
88c41d
+++ acpica-unix2-20180531/source/compiler/aslcodegen.c	2018-07-06 20:32:10.373797644 -0400
88c41d
@@ -494,8 +494,7 @@
88c41d
 
88c41d
     /* Table length. Checksum zero for now, will rewrite later */
88c41d
 
88c41d
-    DWord = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
88c41d
-    ACPI_MOVE_32_TO_32(&TableHeader.Length, &DWord);
88c41d
+    TableHeader.Length = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
88c41d
 
88c41d
     /* Calculate the comment lengths for this definition block parseOp */
88c41d
 
88c41d
@@ -539,6 +538,8 @@
88c41d
         CvDbgPrint ("    Length: %u\n", CommentLength);
88c41d
         }
88c41d
     }
88c41d
+    DWord = TableHeader.Length;
88c41d
+    ACPI_MOVE_32_TO_32(&TableHeader.Length, &DWord);
88c41d
 
88c41d
     TableHeader.Checksum = 0;
88c41d