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