]> git.pld-linux.org Git - packages/acpica.git/blob - 0049-Support-SVKL-in-a-big-endian-world.patch
- added verbose patch not to hide compiler command line, disable stripping on install
[packages/acpica.git] / 0049-Support-SVKL-in-a-big-endian-world.patch
1 Signed-off-by: Dean Nelson <dnelson@redhat.com>
2 Reviewed-by: Al Stone <ahs3@redhat.com>
3 ---
4  source/common/dmtbdump3.c | 8 ++++----
5  1 file changed, 4 insertions(+), 4 deletions(-)
6
7 Index: acpica-unix2-20220331/source/common/dmtbdump3.c
8 ===================================================================
9 --- acpica-unix2-20220331.orig/source/common/dmtbdump3.c
10 +++ acpica-unix2-20220331/source/common/dmtbdump3.c
11 @@ -344,14 +344,14 @@ AcpiDmDumpSvkl (
12      ACPI_TABLE_HEADER       *Table)
13  {
14      ACPI_STATUS             Status;
15 -    UINT32                  Length = Table->Length;
16 +    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
17      UINT32                  Offset = sizeof (ACPI_TABLE_SVKL);
18      ACPI_SVKL_KEY           *Subtable;
19  
20  
21      /* Main table */
22  
23 -    Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSvkl);
24 +    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoSvkl);
25      if (ACPI_FAILURE (Status))
26      {
27          return;
28 @@ -360,12 +360,12 @@ AcpiDmDumpSvkl (
29      /* The rest of the table consists of subtables (single type) */
30  
31      Subtable = ACPI_ADD_PTR (ACPI_SVKL_KEY, Table, Offset);
32 -    while (Offset < Table->Length)
33 +    while (Offset < TableLength)
34      {
35          /* Dump the subtable */
36  
37          AcpiOsPrintf ("\n");
38 -        Status = AcpiDmDumpTable (Table->Length, Offset, Subtable,
39 +        Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
40              sizeof (ACPI_SVKL_KEY), AcpiDmTableInfoSvkl0);
41          if (ACPI_FAILURE (Status))
42          {
This page took 0.054571 seconds and 3 git commands to generate.