]> git.pld-linux.org Git - packages/acpica.git/blame - 0010-Support-CPEP-tables-in-a-big-endian-world.patch
- updated to 20220331 + current Fedora patch set; acpinames is gone
[packages/acpica.git] / 0010-Support-CPEP-tables-in-a-big-endian-world.patch
CommitLineData
b643ab7e
JB
1From 0c4be57a5e0e45b4197c2d9a0b26462d3b1a9b80 Mon Sep 17 00:00:00 2001
2From: Al Stone <ahs3@redhat.com>
3Date: Fri, 18 Sep 2020 16:54:13 -0600
4Subject: [PATCH 10/45] Support CPEP tables in a big-endian world
5
6Signed-off-by: Al Stone <ahs3@redhat.com>
7---
8 source/common/dmtbdump1.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11Index: 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 (
16 {
17 ACPI_STATUS Status;
18 ACPI_CPEP_POLLING *Subtable;
19- UINT32 Length = Table->Length;
20+ UINT32 Length = AcpiUtReadUint32 (&Table->Length);
21 UINT32 Offset = sizeof (ACPI_TABLE_CPEP);
22
23
24@@ -629,7 +629,7 @@ AcpiDmDumpCpep (
25 /* Subtables */
26
27 Subtable = ACPI_ADD_PTR (ACPI_CPEP_POLLING, Table, Offset);
28- while (Offset < Table->Length)
29+ while (Offset < Length)
30 {
31 AcpiOsPrintf ("\n");
32 Status = AcpiDmDumpTable (Length, Offset, Subtable,
This page took 0.089275 seconds and 4 git commands to generate.