Blame SOURCES/0044-Initial-support-for-WPBT-in-big-endian-needs-more.patch

214d7a
From bd137d3712e6bc7e4d2d11350a208a36750e4063 Mon Sep 17 00:00:00 2001
214d7a
From: Al Stone <ahs3@redhat.com>
214d7a
Date: Tue, 6 Jul 2021 18:26:41 -0600
214d7a
Subject: [PATCH 44/45] Initial support for WPBT in big-endian, needs more
214d7a
214d7a
Signed-off-by: Al Stone <ahs3@redhat.com>
214d7a
---
214d7a
 source/compiler/dttable2.c | 2 +-
214d7a
 1 file changed, 1 insertion(+), 1 deletion(-)
214d7a
214d7a
Index: acpica-unix2-20210604/source/compiler/dttable2.c
214d7a
===================================================================
214d7a
--- acpica-unix2-20210604.orig/source/compiler/dttable2.c
214d7a
+++ acpica-unix2-20210604/source/compiler/dttable2.c
214d7a
@@ -2638,7 +2638,7 @@ DtCompileWpbt (
214d7a
     AcpiUtWriteUint (&Length, sizeof (UINT16),
214d7a
            &Subtable->TotalLength, sizeof (UINT32));
214d7a
     Table = ACPI_CAST_PTR (ACPI_TABLE_WPBT, ParentTable->Buffer);
214d7a
-    Table->ArgumentsLength = Length;
214d7a
+    Table->ArgumentsLength = AcpiUtReadUint16 (&Length);
214d7a
 
214d7a
     ParentTable = DtPeekSubtable ();
214d7a
     DtInsertSubtable (ParentTable, Subtable);