]> git.pld-linux.org Git - packages/acpica.git/blame - 0037-Support-LPIT-in-a-big-endian-world.patch
- added verbose patch not to hide compiler command line, disable stripping on install
[packages/acpica.git] / 0037-Support-LPIT-in-a-big-endian-world.patch
CommitLineData
b643ab7e
JB
1From d10bfd67b5352ff5587e06fc1f82b896bab49614 Mon Sep 17 00:00:00 2001
2From: Al Stone <ahs3@redhat.com>
3Date: Mon, 28 Sep 2020 16:49:30 -0600
4Subject: [PATCH 37/45] Support LPIT 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@@ -690,7 +690,7 @@ AcpiDmDumpLpit (
16 {
17 ACPI_STATUS Status;
18 ACPI_LPIT_HEADER *Subtable;
19- UINT32 Length = Table->Length;
20+ UINT32 TableLength = AcpiUtReadUint32 (&Table->Length);
21 UINT32 Offset = sizeof (ACPI_TABLE_LPIT);
22 ACPI_DMTABLE_INFO *InfoTable;
23 UINT32 SubtableLength;
24@@ -699,11 +699,11 @@ AcpiDmDumpLpit (
25 /* Subtables */
26
27 Subtable = ACPI_ADD_PTR (ACPI_LPIT_HEADER, Table, Offset);
28- while (Offset < Table->Length)
29+ while (Offset < TableLength)
30 {
31 /* Common subtable header */
32
33- Status = AcpiDmDumpTable (Length, Offset, Subtable,
34+ Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
35 sizeof (ACPI_LPIT_HEADER), AcpiDmTableInfoLpitHdr);
36 if (ACPI_FAILURE (Status))
37 {
38@@ -727,7 +727,7 @@ AcpiDmDumpLpit (
39 return;
40 }
41
42- Status = AcpiDmDumpTable (Length, Offset, Subtable,
43+ Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
44 SubtableLength, InfoTable);
45 if (ACPI_FAILURE (Status))
46 {
This page took 0.241596 seconds and 4 git commands to generate.