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