2021-07-23 13:25:41 +00:00
|
|
|
From e588961ca36e70c24aa1c49e96bcd1997bf98f89 Mon Sep 17 00:00:00 2001
|
2020-10-31 11:18:15 +00:00
|
|
|
From: Al Stone <ahs3@redhat.com>
|
|
|
|
Date: Sat, 19 Sep 2020 15:54:56 -0600
|
2021-07-23 13:25:41 +00:00
|
|
|
Subject: [PATCH 15/45] Support ERST in a big-endian world
|
2020-10-31 11:18:15 +00:00
|
|
|
|
|
|
|
Signed-off-by: Al Stone <ahs3@redhat.com>
|
|
|
|
---
|
|
|
|
source/common/dmtbdump1.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
2021-07-23 13:25:41 +00:00
|
|
|
Index: acpica-unix2-20210604/source/common/dmtbdump1.c
|
2020-10-31 11:18:15 +00:00
|
|
|
===================================================================
|
2021-07-23 13:25:41 +00:00
|
|
|
--- acpica-unix2-20210604.orig/source/common/dmtbdump1.c
|
|
|
|
+++ acpica-unix2-20210604/source/common/dmtbdump1.c
|
|
|
|
@@ -935,7 +935,7 @@ AcpiDmDumpErst (
|
2020-10-31 11:18:15 +00:00
|
|
|
{
|
|
|
|
ACPI_STATUS Status;
|
|
|
|
ACPI_WHEA_HEADER *Subtable;
|
|
|
|
- UINT32 Length = Table->Length;
|
2021-07-23 13:25:41 +00:00
|
|
|
+ UINT32 Length = AcpiUtReadUint32 (&Table->Length);
|
2020-10-31 11:18:15 +00:00
|
|
|
UINT32 Offset = sizeof (ACPI_TABLE_ERST);
|
|
|
|
|
|
|
|
|
2021-07-23 13:25:41 +00:00
|
|
|
@@ -950,7 +950,7 @@ AcpiDmDumpErst (
|
2020-10-31 11:18:15 +00:00
|
|
|
/* Subtables */
|
|
|
|
|
|
|
|
Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset);
|
|
|
|
- while (Offset < Table->Length)
|
|
|
|
+ while (Offset < Length)
|
|
|
|
{
|
|
|
|
AcpiOsPrintf ("\n");
|
|
|
|
Status = AcpiDmDumpTable (Length, Offset, Subtable,
|