]>
Commit | Line | Data |
---|---|---|
25d7dd99 JB |
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. | |
4 | ||
5 | Signed-off-by: Al Stone <ahs3@redhat.com> | |
6 | ||
70586bb3 | 7 | Index: acpica-unix-20191213/source/compiler/aslcodegen.c |
25d7dd99 | 8 | =================================================================== |
70586bb3 JB |
9 | --- acpica-unix-20191213.orig/source/compiler/aslcodegen.c |
10 | +++ acpica-unix-20191213/source/compiler/aslcodegen.c | |
11 | @@ -497,8 +497,7 @@ CgWriteTableHeader ( | |
25d7dd99 JB |
12 | |
13 | /* Table length. Checksum zero for now, will rewrite later */ | |
14 | ||
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; | |
18 | ||
19 | /* Calculate the comment lengths for this definition block parseOp */ | |
20 | ||
70586bb3 | 21 | @@ -544,6 +543,8 @@ CgWriteTableHeader ( |
25d7dd99 JB |
22 | CvDbgPrint (" Length: %u\n", CommentLength); |
23 | } | |
24 | } | |
25 | + DWord = AslGbl_TableHeader.Length; | |
26 | + ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord); | |
27 | ||
28 | AslGbl_TableHeader.Checksum = 0; | |
29 | Op->Asl.FinalAmlOffset = ftell (AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle); |