Blame SOURCES/0008-Support-MADT-aka-APIC-in-a-big-endian-world.patch

214d7a
From 7b107ab7348d903108140f6033e90596b12325c4 Mon Sep 17 00:00:00 2001
214d7a
From: Al Stone <ahs3@redhat.com>
214d7a
Date: Thu, 15 Oct 2020 12:12:11 -0600
214d7a
Subject: [PATCH 08/45] Support MADT (aka APIC) in a big-endian world
214d7a
214d7a
Signed-off-by: Al Stone <ahs3@redhat.com>
214d7a
---
214d7a
 source/common/dmtbdump2.c | 4 ++--
214d7a
 1 file changed, 2 insertions(+), 2 deletions(-)
214d7a
214d7a
Index: acpica-unix2-20210604/source/common/dmtbdump2.c
214d7a
===================================================================
214d7a
--- acpica-unix2-20210604.orig/source/common/dmtbdump2.c
214d7a
+++ acpica-unix2-20210604/source/common/dmtbdump2.c
214d7a
@@ -763,7 +763,7 @@ AcpiDmDumpMadt (
214d7a
 {
214d7a
     ACPI_STATUS             Status;
214d7a
     ACPI_SUBTABLE_HEADER    *Subtable;
214d7a
-    UINT32                  Length = Table->Length;
214d7a
+    UINT32                  Length = AcpiUtReadUint32 (&Table->Length);
214d7a
     UINT32                  Offset = sizeof (ACPI_TABLE_MADT);
214d7a
     ACPI_DMTABLE_INFO       *InfoTable;
214d7a
 
214d7a
@@ -779,7 +779,7 @@ AcpiDmDumpMadt (
214d7a
     /* Subtables */
214d7a
 
214d7a
     Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset);
214d7a
-    while (Offset < Table->Length)
214d7a
+    while (Offset < Length)
214d7a
     {
214d7a
         /* Common subtable header */
214d7a