]> git.pld-linux.org Git - packages/acpica.git/blame - 0015-Support-ERST-in-a-big-endian-world.patch
- added verbose patch not to hide compiler command line, disable stripping on install
[packages/acpica.git] / 0015-Support-ERST-in-a-big-endian-world.patch
CommitLineData
b643ab7e
JB
1From e588961ca36e70c24aa1c49e96bcd1997bf98f89 Mon Sep 17 00:00:00 2001
2From: Al Stone <ahs3@redhat.com>
3Date: Sat, 19 Sep 2020 15:54:56 -0600
4Subject: [PATCH 15/45] Support ERST 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@@ -1236,7 +1236,7 @@ AcpiDmDumpErst (
16 {
17 ACPI_STATUS Status;
18 ACPI_WHEA_HEADER *Subtable;
19- UINT32 Length = Table->Length;
20+ UINT32 Length = AcpiUtReadUint32 (&Table->Length);
21 UINT32 Offset = sizeof (ACPI_TABLE_ERST);
22
23
24@@ -1251,7 +1251,7 @@ AcpiDmDumpErst (
25 /* Subtables */
26
27 Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, 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.110042 seconds and 4 git commands to generate.