]> git.pld-linux.org Git - packages/acpica.git/blob - 0029-Support-PDTT-in-a-big-endian-world.patch
- updated tests
[packages/acpica.git] / 0029-Support-PDTT-in-a-big-endian-world.patch
1 From 253fe3545e7d4eaa9cb93c771c9619f410109a02 Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Fri, 25 Sep 2020 17:03:05 -0600
4 Subject: [PATCH 29/45] Support PDTT in a big-endian world
5
6 Signed-off-by: Al Stone <ahs3@redhat.com>
7 ---
8  source/common/dmtbdump2.c | 8 ++++----
9  1 file changed, 4 insertions(+), 4 deletions(-)
10
11 Index: acpica-unix2-20220331/source/common/dmtbdump2.c
12 ===================================================================
13 --- acpica-unix2-20220331.orig/source/common/dmtbdump2.c
14 +++ acpica-unix2-20220331/source/common/dmtbdump2.c
15 @@ -1954,13 +1954,13 @@ AcpiDmDumpPdtt (
16  {
17      ACPI_STATUS             Status;
18      ACPI_PDTT_CHANNEL       *Subtable;
19 -    UINT32                  Length = Table->Length;
20 +    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
21      UINT32                  Offset = sizeof (ACPI_TABLE_PDTT);
22  
23  
24      /* Main table */
25  
26 -    Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPdtt);
27 +    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoPdtt);
28      if (ACPI_FAILURE (Status))
29      {
30          return;
31 @@ -1969,10 +1969,10 @@ AcpiDmDumpPdtt (
32      /* Subtables. Currently there is only one type, but can be multiples */
33  
34      Subtable = ACPI_ADD_PTR (ACPI_PDTT_CHANNEL, Table, Offset);
35 -    while (Offset < Table->Length)
36 +    while (Offset < TableLength)
37      {
38          AcpiOsPrintf ("\n");
39 -        Status = AcpiDmDumpTable (Length, Offset, Subtable,
40 +        Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
41              sizeof (ACPI_PDTT_CHANNEL), AcpiDmTableInfoPdtt0);
42          if (ACPI_FAILURE (Status))
43          {
This page took 0.124804 seconds and 3 git commands to generate.