1 From 0c4be57a5e0e45b4197c2d9a0b26462d3b1a9b80 Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Fri, 18 Sep 2020 16:54:13 -0600
4 Subject: [PATCH 10/45] Support CPEP tables 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 @@ -614,7 +614,7 @@ AcpiDmDumpCpep (
18 ACPI_CPEP_POLLING *Subtable;
19 - UINT32 Length = Table->Length;
20 + UINT32 Length = AcpiUtReadUint32 (&Table->Length);
21 UINT32 Offset = sizeof (ACPI_TABLE_CPEP);
24 @@ -629,7 +629,7 @@ AcpiDmDumpCpep (
27 Subtable = ACPI_ADD_PTR (ACPI_CPEP_POLLING, Table, Offset);
28 - while (Offset < Table->Length)
29 + while (Offset < Length)
32 Status = AcpiDmDumpTable (Length, Offset, Subtable,