]> git.pld-linux.org Git - packages/acpica.git/blob - aslcodegen.patch
- updated tests
[packages/acpica.git] / aslcodegen.patch
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
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 (
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  
21 @@ -544,6 +543,8 @@ CgWriteTableHeader (
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);
This page took 0.205758 seconds and 3 git commands to generate.