]> git.pld-linux.org Git - packages/acpica.git/blob - 0035-Support-SLIC-and-MSDM-in-a-big-endian-world.patch
- updated to 20220331 + current Fedora patch set; acpinames is gone
[packages/acpica.git] / 0035-Support-SLIC-and-MSDM-in-a-big-endian-world.patch
1 From 948bebd1a0999bc3481641d3fc996c49432709c6 Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Mon, 28 Sep 2020 12:49:23 -0600
4 Subject: [PATCH 35/45] Support SLIC and MSDM in a big-endian world
5
6 When dumping the SLIC table, it was also found that the code was
7 not starting at the proper offset on disassembly.  Set the offset
8 to the first byte after the header instead of the very beginning
9 of the table.
10
11 Signed-off-by: Al Stone <ahs3@redhat.com>
12 ---
13  source/common/dmtbdump3.c | 6 ++++--
14  1 file changed, 4 insertions(+), 2 deletions(-)
15
16 Index: acpica-unix2-20220331/source/common/dmtbdump3.c
17 ===================================================================
18 --- acpica-unix2-20220331.orig/source/common/dmtbdump3.c
19 +++ acpica-unix2-20220331/source/common/dmtbdump3.c
20 @@ -68,9 +68,11 @@ void
21  AcpiDmDumpSlic (
22      ACPI_TABLE_HEADER       *Table)
23  {
24 +    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
25  
26 -    (void) AcpiDmDumpTable (Table->Length, sizeof (ACPI_TABLE_HEADER), Table,
27 -        Table->Length - sizeof (*Table), AcpiDmTableInfoSlic);
28 +    (void) AcpiDmDumpTable (TableLength, sizeof (ACPI_TABLE_HEADER),
29 +        (void *) (Table + sizeof (*Table)),
30 +        TableLength - sizeof (*Table), AcpiDmTableInfoSlic);
31  }
32  
33  
This page took 0.046225 seconds and 3 git commands to generate.