]> git.pld-linux.org Git - packages/acpica.git/blob - 0024-Support-MSCT-in-a-big-endian-world.patch
- updated to 20220331 + current Fedora patch set; acpinames is gone
[packages/acpica.git] / 0024-Support-MSCT-in-a-big-endian-world.patch
1 From ae38e1578d18abf41330bb3dbaef9ea56a52f49b Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Wed, 23 Sep 2020 15:44:21 -0600
4 Subject: [PATCH 24/45] Support MSCT in a big-endian world
5
6 Signed-off-by: Al Stone <ahs3@redhat.com>
7 ---
8  source/common/dmtbdump2.c | 7 ++++---
9  1 file changed, 4 insertions(+), 3 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 @@ -1185,11 +1185,12 @@ AcpiDmDumpMsct (
16      ACPI_STATUS             Status;
17      UINT32                  Offset = sizeof (ACPI_TABLE_MSCT);
18      ACPI_MSCT_PROXIMITY     *Subtable;
19 +    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
20  
21  
22      /* Main table */
23  
24 -    Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMsct);
25 +    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoMsct);
26      if (ACPI_FAILURE (Status))
27      {
28          return;
29 @@ -1198,12 +1199,12 @@ AcpiDmDumpMsct (
30      /* Subtables */
31  
32      Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Table, Offset);
33 -    while (Offset < Table->Length)
34 +    while (Offset < TableLength)
35      {
36          /* Common subtable header */
37  
38          AcpiOsPrintf ("\n");
39 -        Status = AcpiDmDumpTable (Table->Length, Offset, Subtable,
40 +        Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
41              sizeof (ACPI_MSCT_PROXIMITY), AcpiDmTableInfoMsct0);
42          if (ACPI_FAILURE (Status))
43          {
This page took 0.022589 seconds and 3 git commands to generate.