|
|
9897bb |
From 75d974e42fefabfd6684d62f58bff678b55f396b Mon Sep 17 00:00:00 2001
|
|
|
9897bb |
From: Al Stone <ahs3@redhat.com>
|
|
|
9897bb |
Date: Wed, 23 Sep 2020 12:16:37 -0600
|
|
|
9897bb |
Subject: [PATCH 21/45] Support XSDT in a big-endian world
|
|
|
9897bb |
|
|
|
9897bb |
Signed-off-by: Al Stone <ahs3@redhat.com>
|
|
|
9897bb |
---
|
|
|
9897bb |
source/common/dmtbdump.c | 6 ++++--
|
|
|
9897bb |
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
9897bb |
|
|
|
9897bb |
Index: acpica-unix2-20210604/source/common/dmtbdump.c
|
|
|
9897bb |
===================================================================
|
|
|
9897bb |
--- acpica-unix2-20210604.orig/source/common/dmtbdump.c
|
|
|
9897bb |
+++ acpica-unix2-20210604/source/common/dmtbdump.c
|
|
|
9897bb |
@@ -323,6 +323,7 @@ AcpiDmDumpXsdt (
|
|
|
9897bb |
UINT32 Entries;
|
|
|
9897bb |
UINT32 Offset;
|
|
|
9897bb |
UINT32 i;
|
|
|
9897bb |
+ UINT32 TableLength = AcpiUtReadUint32 (&Table->Length);
|
|
|
9897bb |
|
|
|
9897bb |
|
|
|
9897bb |
/* Point to start of table pointer array */
|
|
|
9897bb |
@@ -332,12 +333,13 @@ AcpiDmDumpXsdt (
|
|
|
9897bb |
|
|
|
9897bb |
/* XSDT uses 64-bit pointers */
|
|
|
9897bb |
|
|
|
9897bb |
- Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT64);
|
|
|
9897bb |
+ Entries = (TableLength - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT64);
|
|
|
9897bb |
|
|
|
9897bb |
for (i = 0; i < Entries; i++)
|
|
|
9897bb |
{
|
|
|
9897bb |
AcpiDmLineHeader2 (Offset, sizeof (UINT64), "ACPI Table Address", i);
|
|
|
9897bb |
- AcpiOsPrintf ("%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Array[i]));
|
|
|
9897bb |
+ AcpiOsPrintf ("%8.8X%8.8X\n",
|
|
|
9897bb |
+ ACPI_FORMAT_UINT64 (AcpiUtReadUint64 (&Array[i])));
|
|
|
9897bb |
Offset += sizeof (UINT64);
|
|
|
9897bb |
}
|
|
|
9897bb |
}
|