]>
Commit | Line | Data |
---|---|---|
b643ab7e JB |
1 | From 198abe6e9fcb03676513146bf2f9b8ccc49e5827 Mon Sep 17 00:00:00 2001 |
2 | From: Al Stone <ahs3@redhat.com> | |
3 | Date: Wed, 23 Sep 2020 12:11:46 -0600 | |
4 | Subject: [PATCH 20/45] Support RSDT ('RSD PTR') in a big-endian world | |
5 | ||
6 | Signed-off-by: Al Stone <ahs3@redhat.com> | |
7 | --- | |
8 | source/common/dmtbdump.c | 5 +++-- | |
9 | 1 file changed, 3 insertions(+), 2 deletions(-) | |
10 | ||
11 | Index: acpica-unix2-20220331/source/common/dmtbdump.c | |
12 | =================================================================== | |
13 | --- acpica-unix2-20220331.orig/source/common/dmtbdump.c | |
14 | +++ acpica-unix2-20220331/source/common/dmtbdump.c | |
15 | @@ -336,6 +336,7 @@ AcpiDmDumpRsdt ( | |
16 | UINT32 Entries; | |
17 | UINT32 Offset; | |
18 | UINT32 i; | |
19 | + UINT32 TableLength = AcpiUtReadUint32 (&Table->Length); | |
20 | ||
21 | ||
22 | /* Point to start of table pointer array */ | |
23 | @@ -345,12 +346,12 @@ AcpiDmDumpRsdt ( | |
24 | ||
25 | /* RSDT uses 32-bit pointers */ | |
26 | ||
27 | - Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32); | |
28 | + Entries = (TableLength - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32); | |
29 | ||
30 | for (i = 0; i < Entries; i++) | |
31 | { | |
32 | AcpiDmLineHeader2 (Offset, sizeof (UINT32), "ACPI Table Address", i); | |
33 | - AcpiOsPrintf ("%8.8X\n", Array[i]); | |
34 | + AcpiOsPrintf ("%8.8X\n", AcpiUtReadUint32 (&Array[i])); | |
35 | Offset += sizeof (UINT32); | |
36 | } | |
37 | } |