]> git.pld-linux.org Git - packages/acpica.git/blob - 0022-Support-SRAT-in-a-big-endian-world.patch
- updated to 20220331 + current Fedora patch set; acpinames is gone
[packages/acpica.git] / 0022-Support-SRAT-in-a-big-endian-world.patch
1 From 724fcc83d359e4c8abbd2a48755e96049afa06d6 Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Wed, 23 Sep 2020 12:25:38 -0600
4 Subject: [PATCH 22/45] Support SRAT in a big-endian world
5
6 Signed-off-by: Al Stone <ahs3@redhat.com>
7 ---
8  source/common/dmtbdump3.c | 9 +++++----
9  1 file changed, 5 insertions(+), 4 deletions(-)
10
11 Index: acpica-unix2-20220331/source/common/dmtbdump3.c
12 ===================================================================
13 --- acpica-unix2-20220331.orig/source/common/dmtbdump3.c
14 +++ acpica-unix2-20220331/source/common/dmtbdump3.c
15 @@ -173,11 +173,12 @@ AcpiDmDumpSrat (
16      UINT32                  Offset = sizeof (ACPI_TABLE_SRAT);
17      ACPI_SUBTABLE_HEADER    *Subtable;
18      ACPI_DMTABLE_INFO       *InfoTable;
19 +    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
20  
21  
22      /* Main table */
23  
24 -    Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSrat);
25 +    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoSrat);
26      if (ACPI_FAILURE (Status))
27      {
28          return;
29 @@ -186,12 +187,12 @@ AcpiDmDumpSrat (
30      /* Subtables */
31  
32      Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, 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              Subtable->Length, AcpiDmTableInfoSratHdr);
42          if (ACPI_FAILURE (Status))
43          {
44 @@ -250,7 +251,7 @@ AcpiDmDumpSrat (
45          }
46  
47          AcpiOsPrintf ("\n");
48 -        Status = AcpiDmDumpTable (Table->Length, Offset, Subtable,
49 +        Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
50              Subtable->Length, InfoTable);
51          if (ACPI_FAILURE (Status))
52          {
This page took 0.058615 seconds and 4 git commands to generate.