2021-07-23 13:25:41 +00:00
|
|
|
From 198abe6e9fcb03676513146bf2f9b8ccc49e5827 Mon Sep 17 00:00:00 2001
|
2020-10-31 11:18:15 +00:00
|
|
|
From: Al Stone <ahs3@redhat.com>
|
|
|
|
Date: Wed, 23 Sep 2020 12:11:46 -0600
|
2021-07-23 13:25:41 +00:00
|
|
|
Subject: [PATCH 20/45] Support RSDT ('RSD PTR') in a big-endian world
|
2020-10-31 11:18:15 +00:00
|
|
|
|
|
|
|
Signed-off-by: Al Stone <ahs3@redhat.com>
|
|
|
|
---
|
|
|
|
source/common/dmtbdump.c | 5 +++--
|
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
2021-07-23 13:25:41 +00:00
|
|
|
Index: acpica-unix2-20210604/source/common/dmtbdump.c
|
2020-10-31 11:18:15 +00:00
|
|
|
===================================================================
|
2021-07-23 13:25:41 +00:00
|
|
|
--- acpica-unix2-20210604.orig/source/common/dmtbdump.c
|
|
|
|
+++ acpica-unix2-20210604/source/common/dmtbdump.c
|
|
|
|
@@ -282,6 +282,7 @@ AcpiDmDumpRsdt (
|
2020-10-31 11:18:15 +00:00
|
|
|
UINT32 Entries;
|
|
|
|
UINT32 Offset;
|
|
|
|
UINT32 i;
|
2021-07-23 13:25:41 +00:00
|
|
|
+ UINT32 TableLength = AcpiUtReadUint32 (&Table->Length);
|
2020-10-31 11:18:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Point to start of table pointer array */
|
2021-07-23 13:25:41 +00:00
|
|
|
@@ -291,12 +292,12 @@ AcpiDmDumpRsdt (
|
2020-10-31 11:18:15 +00:00
|
|
|
|
|
|
|
/* RSDT uses 32-bit pointers */
|
|
|
|
|
|
|
|
- Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32);
|
|
|
|
+ Entries = (TableLength - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32);
|
|
|
|
|
|
|
|
for (i = 0; i < Entries; i++)
|
|
|
|
{
|
|
|
|
AcpiDmLineHeader2 (Offset, sizeof (UINT32), "ACPI Table Address", i);
|
|
|
|
- AcpiOsPrintf ("%8.8X\n", Array[i]);
|
2021-07-23 13:25:41 +00:00
|
|
|
+ AcpiOsPrintf ("%8.8X\n", AcpiUtReadUint32 (&Array[i]));
|
2020-10-31 11:18:15 +00:00
|
|
|
Offset += sizeof (UINT32);
|
|
|
|
}
|
|
|
|
}
|