1 From e588961ca36e70c24aa1c49e96bcd1997bf98f89 Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Sat, 19 Sep 2020 15:54:56 -0600
4 Subject: [PATCH 15/45] Support ERST in a big-endian world
6 Signed-off-by: Al Stone <ahs3@redhat.com>
8 source/common/dmtbdump1.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
11 Index: acpica-unix2-20220331/source/common/dmtbdump1.c
12 ===================================================================
13 --- acpica-unix2-20220331.orig/source/common/dmtbdump1.c
14 +++ acpica-unix2-20220331/source/common/dmtbdump1.c
15 @@ -1236,7 +1236,7 @@ AcpiDmDumpErst (
18 ACPI_WHEA_HEADER *Subtable;
19 - UINT32 Length = Table->Length;
20 + UINT32 Length = AcpiUtReadUint32 (&Table->Length);
21 UINT32 Offset = sizeof (ACPI_TABLE_ERST);
24 @@ -1251,7 +1251,7 @@ AcpiDmDumpErst (
27 Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset);
28 - while (Offset < Table->Length)
29 + while (Offset < Length)
32 Status = AcpiDmDumpTable (Length, Offset, Subtable,