Blame SOURCES/0035-Support-SLIC-and-MSDM-in-a-big-endian-world.patch

9897bb
From 948bebd1a0999bc3481641d3fc996c49432709c6 Mon Sep 17 00:00:00 2001
9897bb
From: Al Stone <ahs3@redhat.com>
9897bb
Date: Mon, 28 Sep 2020 12:49:23 -0600
9897bb
Subject: [PATCH 35/45] Support SLIC and MSDM in a big-endian world
9897bb
9897bb
When dumping the SLIC table, it was also found that the code was
9897bb
not starting at the proper offset on disassembly.  Set the offset
9897bb
to the first byte after the header instead of the very beginning
9897bb
of the table.
9897bb
9897bb
Signed-off-by: Al Stone <ahs3@redhat.com>
9897bb
---
9897bb
 source/common/dmtbdump3.c | 6 ++++--
9897bb
 1 file changed, 4 insertions(+), 2 deletions(-)
9897bb
9897bb
Index: acpica-unix2-20210604/source/common/dmtbdump3.c
9897bb
===================================================================
9897bb
--- acpica-unix2-20210604.orig/source/common/dmtbdump3.c
9897bb
+++ acpica-unix2-20210604/source/common/dmtbdump3.c
9897bb
@@ -68,9 +68,11 @@ void
9897bb
 AcpiDmDumpSlic (
9897bb
     ACPI_TABLE_HEADER       *Table)
9897bb
 {
9897bb
+    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
9897bb
 
9897bb
-    (void) AcpiDmDumpTable (Table->Length, sizeof (ACPI_TABLE_HEADER), Table,
9897bb
-        Table->Length - sizeof (*Table), AcpiDmTableInfoSlic);
9897bb
+    (void) AcpiDmDumpTable (TableLength, sizeof (ACPI_TABLE_HEADER),
9897bb
+        (void *) (Table + sizeof (*Table)),
9897bb
+        TableLength - sizeof (*Table), AcpiDmTableInfoSlic);
9897bb
 }
9897bb
 
9897bb