]> git.pld-linux.org Git - packages/acpica.git/blame - 0029-Support-PDTT-in-a-big-endian-world.patch
- updated to 20220331 + current Fedora patch set; acpinames is gone
[packages/acpica.git] / 0029-Support-PDTT-in-a-big-endian-world.patch
CommitLineData
b643ab7e
JB
1From 253fe3545e7d4eaa9cb93c771c9619f410109a02 Mon Sep 17 00:00:00 2001
2From: Al Stone <ahs3@redhat.com>
3Date: Fri, 25 Sep 2020 17:03:05 -0600
4Subject: [PATCH 29/45] Support PDTT in a big-endian world
5
6Signed-off-by: Al Stone <ahs3@redhat.com>
7---
8 source/common/dmtbdump2.c | 8 ++++----
9 1 file changed, 4 insertions(+), 4 deletions(-)
10
11Index: acpica-unix2-20220331/source/common/dmtbdump2.c
12===================================================================
13--- acpica-unix2-20220331.orig/source/common/dmtbdump2.c
14+++ acpica-unix2-20220331/source/common/dmtbdump2.c
15@@ -1954,13 +1954,13 @@ AcpiDmDumpPdtt (
16 {
17 ACPI_STATUS Status;
18 ACPI_PDTT_CHANNEL *Subtable;
19- UINT32 Length = Table->Length;
20+ UINT32 TableLength = AcpiUtReadUint32 (&Table->Length);
21 UINT32 Offset = sizeof (ACPI_TABLE_PDTT);
22
23
24 /* Main table */
25
26- Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPdtt);
27+ Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoPdtt);
28 if (ACPI_FAILURE (Status))
29 {
30 return;
31@@ -1969,10 +1969,10 @@ AcpiDmDumpPdtt (
32 /* Subtables. Currently there is only one type, but can be multiples */
33
34 Subtable = ACPI_ADD_PTR (ACPI_PDTT_CHANNEL, Table, Offset);
35- while (Offset < Table->Length)
36+ while (Offset < TableLength)
37 {
38 AcpiOsPrintf ("\n");
39- Status = AcpiDmDumpTable (Length, Offset, Subtable,
40+ Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
41 sizeof (ACPI_PDTT_CHANNEL), AcpiDmTableInfoPdtt0);
42 if (ACPI_FAILURE (Status))
43 {
This page took 0.079994 seconds and 4 git commands to generate.