Blame SOURCES/0010-Support-CPEP-tables-in-a-big-endian-world.patch

9897bb
From 0c4be57a5e0e45b4197c2d9a0b26462d3b1a9b80 Mon Sep 17 00:00:00 2001
9897bb
From: Al Stone <ahs3@redhat.com>
9897bb
Date: Fri, 18 Sep 2020 16:54:13 -0600
9897bb
Subject: [PATCH 10/45] Support CPEP tables in a big-endian world
9897bb
9897bb
Signed-off-by: Al Stone <ahs3@redhat.com>
9897bb
---
9897bb
 source/common/dmtbdump1.c | 4 ++--
9897bb
 1 file changed, 2 insertions(+), 2 deletions(-)
9897bb
9897bb
Index: acpica-unix2-20210604/source/common/dmtbdump1.c
9897bb
===================================================================
9897bb
--- acpica-unix2-20210604.orig/source/common/dmtbdump1.c
9897bb
+++ acpica-unix2-20210604/source/common/dmtbdump1.c
9897bb
@@ -319,7 +319,7 @@ AcpiDmDumpCpep (
9897bb
 {
9897bb
     ACPI_STATUS             Status;
9897bb
     ACPI_CPEP_POLLING       *Subtable;
9897bb
-    UINT32                  Length = Table->Length;
9897bb
+    UINT32                  Length = AcpiUtReadUint32 (&Table->Length);
9897bb
     UINT32                  Offset = sizeof (ACPI_TABLE_CPEP);
9897bb
 
9897bb
 
9897bb
@@ -334,7 +334,7 @@ AcpiDmDumpCpep (
9897bb
     /* Subtables */
9897bb
 
9897bb
     Subtable = ACPI_ADD_PTR (ACPI_CPEP_POLLING, Table, Offset);
9897bb
-    while (Offset < Table->Length)
9897bb
+    while (Offset < Length)
9897bb
     {
9897bb
         AcpiOsPrintf ("\n");
9897bb
         Status = AcpiDmDumpTable (Length, Offset, Subtable,