]>
Commit | Line | Data |
---|---|---|
b643ab7e JB |
1 | From bd137d3712e6bc7e4d2d11350a208a36750e4063 Mon Sep 17 00:00:00 2001 |
2 | From: Al Stone <ahs3@redhat.com> | |
3 | Date: Tue, 6 Jul 2021 18:26:41 -0600 | |
4 | Subject: [PATCH 44/45] Initial support for WPBT in big-endian, needs more | |
5 | ||
6 | Signed-off-by: Al Stone <ahs3@redhat.com> | |
7 | --- | |
8 | source/compiler/dttable2.c | 2 +- | |
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
10 | ||
11 | Index: acpica-unix2-20210604/source/compiler/dttable2.c | |
12 | =================================================================== | |
13 | --- acpica-unix2-20210604.orig/source/compiler/dttable2.c | |
14 | +++ acpica-unix2-20210604/source/compiler/dttable2.c | |
15 | @@ -2638,7 +2638,7 @@ DtCompileWpbt ( | |
16 | AcpiUtWriteUint (&Length, sizeof (UINT16), | |
17 | &Subtable->TotalLength, sizeof (UINT32)); | |
18 | Table = ACPI_CAST_PTR (ACPI_TABLE_WPBT, ParentTable->Buffer); | |
19 | - Table->ArgumentsLength = Length; | |
20 | + Table->ArgumentsLength = AcpiUtReadUint16 (&Length); | |
21 | ||
22 | ParentTable = DtPeekSubtable (); | |
23 | DtInsertSubtable (ParentTable, Subtable); |