]> git.pld-linux.org Git - packages/acpica.git/blob - 0008-Support-MADT-aka-APIC-in-a-big-endian-world.patch
- updated tests
[packages/acpica.git] / 0008-Support-MADT-aka-APIC-in-a-big-endian-world.patch
1 From 7b107ab7348d903108140f6033e90596b12325c4 Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Thu, 15 Oct 2020 12:12:11 -0600
4 Subject: [PATCH 08/45] Support MADT (aka APIC) in a big-endian world
5
6 Signed-off-by: Al Stone <ahs3@redhat.com>
7 ---
8  source/common/dmtbdump2.c | 4 ++--
9  1 file changed, 2 insertions(+), 2 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 @@ -763,7 +763,7 @@ AcpiDmDumpMadt (
16  {
17      ACPI_STATUS             Status;
18      ACPI_SUBTABLE_HEADER    *Subtable;
19 -    UINT32                  Length = Table->Length;
20 +    UINT32                  Length = AcpiUtReadUint32 (&Table->Length);
21      UINT32                  Offset = sizeof (ACPI_TABLE_MADT);
22      ACPI_DMTABLE_INFO       *InfoTable;
23  
24 @@ -781,7 +781,7 @@ AcpiDmDumpMadt (
25      Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset);
26      DbgPrint (ASL_PARSE_OUTPUT, "//0B) Offset %X, from table start: 0x%8.8X%8.8X\n",
27          Offset, ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table)));
28 -    while (Offset < Table->Length)
29 +    while (Offset < Length)
30      {
31          /* Common subtable header */
32  
This page took 0.078583 seconds and 3 git commands to generate.