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