From b596c3965c774481526bd38481361fe65358f499 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Fri, 25 Oct 2019 11:16:24 -0600 Subject: [PATCH 01/82] Update to 20190703 upstream Signed-off-by: Al Stone --- .gitignore | 2 ++ acpica-tools.spec | 7 +++++-- grammar.asl.result | 7 ------- sources | 4 ++-- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index fe9e476..50d1e35 100644 --- a/.gitignore +++ b/.gitignore @@ -115,3 +115,5 @@ series /acpitests-unix-20190405.tar.gz /acpica-unix2-20190509.tar.gz /acpitests-unix-20190509.tar.gz +/acpica-unix2-20190703.tar.gz +/acpitests-unix-20190703.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 1d9bd23..da35ea5 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools -Version: 20190509 -Release: 5%{?dist} +Version: 20190703 +Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables License: GPLv2 @@ -239,6 +239,9 @@ fi %changelog +* Thu Oct 24 2019 Al Stone +- Update to 20190703 source tree, including patch refeshes. + * Wed Jul 24 2019 Fedora Release Engineering - 20190509-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/grammar.asl.result b/grammar.asl.result index 6601604..90341c0 100644 --- a/grammar.asl.result +++ b/grammar.asl.result @@ -1,10 +1,3 @@ -ACPI Warning: NsLookup: Type mismatch on GIDX (RegionField), searching for (Region) (20190509/nsaccess-728) -ACPI Warning: NsLookup: Type mismatch on IDX2 (RegionField), searching for (Region) (20190509/nsaccess-728) -ACPI Warning: NsLookup: Type mismatch on INDX (RegionField), searching for (Region) (20190509/nsaccess-728) -ACPI Warning: NsLookup: Type mismatch on AIDX (RegionField), searching for (Region) (20190509/nsaccess-728) -ACPI Warning: NsLookup: Type mismatch on C05D (RegionField), searching for (Region) (20190509/nsaccess-728) -ACPI Warning: NsLookup: Type mismatch on INDX (RegionField), searching for (Region) (20190509/nsaccess-728) -ACPI Warning: NsLookup: Type mismatch on IND2 (RegionField), searching for (Region) (20190509/nsaccess-728) grammar.asl 120: Device (A1) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) diff --git a/sources b/sources index e6a8e7a..be7b154 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20190509.tar.gz) = 0c3433dc5afd4bb43272c22468515af4914e6c90fcc649dbd62915f911a2e5e553a40f334882c1411d3f0157e06e3879bf4a79b898cdb9cdb4f34430458a2f18 -SHA512 (acpitests-unix-20190509.tar.gz) = 278d1c65c9a9ea77fb99bcc58347cf2a160d2dfeb0c27560688fcb2c3d7bd3613b2470c9ab4939e2c59bee8929fd639fa2c8d78660ad96658c010b6c73bd3fcf +SHA512 (acpica-unix2-20190703.tar.gz) = 8445a6d354ce3bcbfb5159f4ec0312b1e910c0b1b2033a2300f892e4ac580abab4e3f5b4ded379f0036299359d307330511ab7053678cfd9031d7df4c365f555 +SHA512 (acpitests-unix-20190703.tar.gz) = d9bab56198dc00fc11b50a199035eb9dc164c226441cd00e163ecd6362d399a50058afa7582f86e62a085b990772995fc10e077581a3b04a6c6b2e95e055f167 From 5fcb15b704261c28c6139c1e3d9be2a2e80255f5 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 27 Oct 2019 16:01:59 -0600 Subject: [PATCH 02/82] Update to 20190816 upstream source and refresh patches Signed-off-by: Al Stone --- .gitignore | 2 + OPT_LDFLAGS.patch | 8 +- acpica-tools.spec | 7 +- big-endian-v2.patch | 9 +- big-endian.patch | 290 ++++++++++++++++++++++---------------------- f23-harden.patch | 26 ++-- grammar.asl.result | 5 +- int-format.patch | 96 +++++++-------- sources | 4 +- template.patch | 14 +-- unaligned.patch | 14 +-- 11 files changed, 247 insertions(+), 228 deletions(-) diff --git a/.gitignore b/.gitignore index 50d1e35..ab14efb 100644 --- a/.gitignore +++ b/.gitignore @@ -117,3 +117,5 @@ series /acpitests-unix-20190509.tar.gz /acpica-unix2-20190703.tar.gz /acpitests-unix-20190703.tar.gz +/acpica-unix2-20190816.tar.gz +/acpitests-unix-20190816.tar.gz diff --git a/OPT_LDFLAGS.patch b/OPT_LDFLAGS.patch index a1ca276..975a97e 100644 --- a/OPT_LDFLAGS.patch +++ b/OPT_LDFLAGS.patch @@ -1,7 +1,7 @@ -Index: acpica-unix2-20170728/generate/unix/Makefile.config +Index: acpica-unix-20190816/generate/unix/Makefile.config =================================================================== ---- acpica-unix2-20170728.orig/generate/unix/Makefile.config -+++ acpica-unix2-20170728/generate/unix/Makefile.config +--- acpica-unix-20190816.orig/generate/unix/Makefile.config ++++ acpica-unix-20190816/generate/unix/Makefile.config @@ -23,6 +23,9 @@ # OPT_CFLAGS can be overridden on the make command line by # adding OPT_CFLAGS="..." to the invocation. @@ -12,7 +12,7 @@ Index: acpica-unix2-20170728/generate/unix/Makefile.config # Notes: # gcc should be version 4 or greater, otherwise some of the options # used will not be recognized. -@@ -157,6 +160,11 @@ LDFLAGS +=-m32 +@@ -165,6 +168,11 @@ LDFLAGS +=-m32 endif # diff --git a/acpica-tools.spec b/acpica-tools.spec index da35ea5..d1a8446 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20190703 +Version: 20190816 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -239,7 +239,10 @@ fi %changelog -* Thu Oct 24 2019 Al Stone +* Sun Oct 27 2019 Al Stone - 20190816-1 +- Update to 20190816 source tree, including patch refeshes. + +* Thu Oct 24 2019 Al Stone - 20190703-1 - Update to 20190703 source tree, including patch refeshes. * Wed Jul 24 2019 Fedora Release Engineering - 20190509-5 diff --git a/big-endian-v2.patch b/big-endian-v2.patch index 0c8831a..600a43d 100644 --- a/big-endian-v2.patch +++ b/big-endian-v2.patch @@ -3,10 +3,11 @@ in the original big-endian patch; we try to capture those here. Signed-off-by: Al Stone -diff -Naur acpica-unix2-20170929.orig/source/compiler/asllookup.c acpica-unix2-20170929/source/compiler/asllookup.c ---- acpica-unix2-20170929.orig/source/compiler/asllookup.c 2017-10-09 12:26:25.893508481 -0600 -+++ acpica-unix2-20170929/source/compiler/asllookup.c 2017-10-17 11:45:42.230763844 -0600 -@@ -249,7 +249,8 @@ +Index: acpica-unix-20180508/source/compiler/asllookup.c +=================================================================== +--- acpica-unix-20180508.orig/source/compiler/asllookup.c ++++ acpica-unix-20180508/source/compiler/asllookup.c +@@ -249,7 +249,8 @@ LkIsObjectUsed ( * ACPI names and are typically not referenced since they are meant * to be called by the host OS. */ diff --git a/big-endian.patch b/big-endian.patch index c2699f9..5735a94 100644 --- a/big-endian.patch +++ b/big-endian.patch @@ -23,10 +23,10 @@ Signed-off-by: Al Stone source/include/platform/aclinux.h | 8 ++ 12 files changed, 487 insertions(+), 283 deletions(-) -Index: acpica-unix-20190405/source/compiler/aslcodegen.c +Index: acpica-unix-20190816/source/compiler/aslcodegen.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslcodegen.c -+++ acpica-unix-20190405/source/compiler/aslcodegen.c +--- acpica-unix-20190816.orig/source/compiler/aslcodegen.c ++++ acpica-unix-20190816/source/compiler/aslcodegen.c @@ -237,16 +237,12 @@ CgWriteAmlOpcode ( ACPI_PARSE_OBJECT *Op) { @@ -228,7 +228,7 @@ Index: acpica-unix-20190405/source/compiler/aslcodegen.c /* Calculate the comment lengths for this definition block parseOp */ -@@ -624,7 +631,10 @@ CgWriteNode ( +@@ -625,7 +632,10 @@ CgWriteNode ( ACPI_PARSE_OBJECT *Op) { ASL_RESOURCE_NODE *Rnode; @@ -240,7 +240,7 @@ Index: acpica-unix-20190405/source/compiler/aslcodegen.c /* Write all comments here. */ -@@ -648,13 +658,24 @@ CgWriteNode ( +@@ -649,13 +659,24 @@ CgWriteNode ( switch (Op->Asl.AmlOpcode) { case AML_RAW_DATA_BYTE: @@ -268,10 +268,10 @@ Index: acpica-unix-20190405/source/compiler/aslcodegen.c case AML_RAW_DATA_BUFFER: -Index: acpica-unix-20190405/source/compiler/aslopcodes.c +Index: acpica-unix-20190816/source/compiler/aslopcodes.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslopcodes.c -+++ acpica-unix-20190405/source/compiler/aslopcodes.c +--- acpica-unix-20190816.orig/source/compiler/aslopcodes.c ++++ acpica-unix-20190816/source/compiler/aslopcodes.c @@ -485,6 +485,7 @@ OpcDoUnicode ( UINT32 i; UINT8 *AsciiString; @@ -290,10 +290,10 @@ Index: acpica-unix-20190405/source/compiler/aslopcodes.c } /* -Index: acpica-unix-20190405/source/compiler/aslrestype1.c +Index: acpica-unix-20190816/source/compiler/aslrestype1.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype1.c -+++ acpica-unix-20190405/source/compiler/aslrestype1.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype1.c ++++ acpica-unix-20190816/source/compiler/aslrestype1.c @@ -142,6 +142,11 @@ RsDoMemory24Descriptor ( ACPI_PARSE_OBJECT *LengthOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -490,10 +490,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.AddressLength)); break; -Index: acpica-unix-20190405/source/compiler/aslrestype1i.c +Index: acpica-unix-20190816/source/compiler/aslrestype1i.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype1i.c -+++ acpica-unix-20190405/source/compiler/aslrestype1i.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype1i.c ++++ acpica-unix-20190816/source/compiler/aslrestype1i.c @@ -198,6 +198,8 @@ RsDoFixedDmaDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -630,10 +630,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype1i.c + ACPI_MOVE_16_TO_16(&Descriptor->Irq.IrqMask, &IrqMask); return (Rnode); } -Index: acpica-unix-20190405/source/compiler/aslrestype2.c +Index: acpica-unix-20190816/source/compiler/aslrestype2.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype2.c -+++ acpica-unix-20190405/source/compiler/aslrestype2.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype2.c ++++ acpica-unix-20190816/source/compiler/aslrestype2.c @@ -76,6 +76,7 @@ RsDoGeneralRegisterDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -774,10 +774,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype2.c /* Point to end-of-descriptor for vendor data */ -Index: acpica-unix-20190405/source/compiler/aslrestype2d.c +Index: acpica-unix-20190816/source/compiler/aslrestype2d.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype2d.c -+++ acpica-unix-20190405/source/compiler/aslrestype2d.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype2d.c ++++ acpica-unix-20190816/source/compiler/aslrestype2d.c @@ -79,7 +79,13 @@ RsDoDwordIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1133,10 +1133,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype2d.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20190405/source/compiler/aslrestype2e.c +Index: acpica-unix-20190816/source/compiler/aslrestype2e.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype2e.c -+++ acpica-unix-20190405/source/compiler/aslrestype2e.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype2e.c ++++ acpica-unix-20190816/source/compiler/aslrestype2e.c @@ -78,6 +78,13 @@ RsDoExtendedIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1242,10 +1242,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype2e.c Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); -Index: acpica-unix-20190405/source/compiler/aslrestype2q.c +Index: acpica-unix-20190816/source/compiler/aslrestype2q.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype2q.c -+++ acpica-unix-20190405/source/compiler/aslrestype2q.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype2q.c ++++ acpica-unix-20190816/source/compiler/aslrestype2q.c @@ -80,7 +80,13 @@ RsDoQwordIoDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; @@ -1584,10 +1584,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype2q.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20190405/source/compiler/aslrestype2s.c +Index: acpica-unix-20190816/source/compiler/aslrestype2s.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype2s.c -+++ acpica-unix-20190405/source/compiler/aslrestype2s.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype2s.c ++++ acpica-unix-20190816/source/compiler/aslrestype2s.c @@ -340,9 +340,14 @@ RsDoGpioIntDescriptor ( UINT16 VendorLength; UINT16 InterruptLength; @@ -2053,10 +2053,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype2s.c MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } -Index: acpica-unix-20190405/source/compiler/aslrestype2w.c +Index: acpica-unix-20190816/source/compiler/aslrestype2w.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslrestype2w.c -+++ acpica-unix-20190405/source/compiler/aslrestype2w.c +--- acpica-unix-20190816.orig/source/compiler/aslrestype2w.c ++++ acpica-unix-20190816/source/compiler/aslrestype2w.c @@ -81,6 +81,12 @@ RsDoWordIoDescriptor ( UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -2400,10 +2400,10 @@ Index: acpica-unix-20190405/source/compiler/aslrestype2w.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20190405/source/include/acmacros.h +Index: acpica-unix-20190816/source/include/acmacros.h =================================================================== ---- acpica-unix-20190405.orig/source/include/acmacros.h -+++ acpica-unix-20190405/source/include/acmacros.h +--- acpica-unix-20190816.orig/source/include/acmacros.h ++++ acpica-unix-20190816/source/include/acmacros.h @@ -98,9 +98,12 @@ ((UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\ ((UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];} @@ -2482,10 +2482,10 @@ Index: acpica-unix-20190405/source/include/acmacros.h #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ -Index: acpica-unix-20190405/source/include/platform/aclinux.h +Index: acpica-unix-20190816/source/include/platform/aclinux.h =================================================================== ---- acpica-unix-20190405.orig/source/include/platform/aclinux.h -+++ acpica-unix-20190405/source/include/platform/aclinux.h +--- acpica-unix-20190816.orig/source/include/platform/aclinux.h ++++ acpica-unix-20190816/source/include/platform/aclinux.h @@ -198,6 +198,7 @@ #ifdef ACPI_USE_STANDARD_HEADERS @@ -2505,10 +2505,10 @@ Index: acpica-unix-20190405/source/include/platform/aclinux.h #endif /* __KERNEL__ */ #endif /* __ACLINUX_H__ */ -Index: acpica-unix-20190405/source/compiler/aslanalyze.c +Index: acpica-unix-20190816/source/compiler/aslanalyze.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslanalyze.c -+++ acpica-unix-20190405/source/compiler/aslanalyze.c +--- acpica-unix-20190816.orig/source/compiler/aslanalyze.c ++++ acpica-unix-20190816/source/compiler/aslanalyze.c @@ -461,7 +461,7 @@ ApCheckForGpeNameConflict ( /* Need a null-terminated string version of NameSeg */ @@ -2527,10 +2527,10 @@ Index: acpica-unix-20190405/source/compiler/aslanalyze.c /* Inject opposite letter ("L" versus "E") */ -Index: acpica-unix-20190405/source/compiler/asllookup.c +Index: acpica-unix-20190816/source/compiler/asllookup.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/asllookup.c -+++ acpica-unix-20190405/source/compiler/asllookup.c +--- acpica-unix-20190816.orig/source/compiler/asllookup.c ++++ acpica-unix-20190816/source/compiler/asllookup.c @@ -119,6 +119,7 @@ LkIsObjectUsed ( { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); @@ -2561,10 +2561,10 @@ Index: acpica-unix-20190405/source/compiler/asllookup.c AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED, LkGetNameOp (Node->Op), AslGbl_MsgBuffer); return (AE_OK); -Index: acpica-unix-20190405/source/compiler/aslmain.c +Index: acpica-unix-20190816/source/compiler/aslmain.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslmain.c -+++ acpica-unix-20190405/source/compiler/aslmain.c +--- acpica-unix-20190816.orig/source/compiler/aslmain.c ++++ acpica-unix-20190816/source/compiler/aslmain.c @@ -101,18 +101,6 @@ main ( signal (SIGINT, AslSignalHandler); @@ -2584,10 +2584,10 @@ Index: acpica-unix-20190405/source/compiler/aslmain.c AcpiOsInitialize (); ACPI_DEBUG_INITIALIZE (); /* For debug version only */ -Index: acpica-unix-20190405/source/common/acfileio.c +Index: acpica-unix-20190816/source/common/acfileio.c =================================================================== ---- acpica-unix-20190405.orig/source/common/acfileio.c -+++ acpica-unix-20190405/source/common/acfileio.c +--- acpica-unix-20190816.orig/source/common/acfileio.c ++++ acpica-unix-20190816/source/common/acfileio.c @@ -280,6 +280,7 @@ AcGetOneTableFromFile ( ACPI_TABLE_HEADER *Table; INT32 Count; @@ -2654,10 +2654,10 @@ Index: acpica-unix-20190405/source/common/acfileio.c (UINT32) (FileSize - TableOffset)); return (AE_BAD_HEADER); } -Index: acpica-unix-20190405/source/common/dmtable.c +Index: acpica-unix-20190816/source/common/dmtable.c =================================================================== ---- acpica-unix-20190405.orig/source/common/dmtable.c -+++ acpica-unix-20190405/source/common/dmtable.c +--- acpica-unix-20190816.orig/source/common/dmtable.c ++++ acpica-unix-20190816/source/common/dmtable.c @@ -551,7 +551,7 @@ AcpiDmDumpDataTable ( */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_FACS)) @@ -2756,10 +2756,10 @@ Index: acpica-unix-20190405/source/common/dmtable.c AcpiDmNfitSubnames[Temp16]); break; -Index: acpica-unix-20190405/source/common/dmtables.c +Index: acpica-unix-20190816/source/common/dmtables.c =================================================================== ---- acpica-unix-20190405.orig/source/common/dmtables.c -+++ acpica-unix-20190405/source/common/dmtables.c +--- acpica-unix-20190816.orig/source/common/dmtables.c ++++ acpica-unix-20190816/source/common/dmtables.c @@ -142,7 +142,9 @@ AdCreateTableHeader ( ACPI_TABLE_HEADER *Table) { @@ -2825,10 +2825,10 @@ Index: acpica-unix-20190405/source/common/dmtables.c AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); ASL_CV_INIT_FILETREE(Table, AmlStart, AmlLength); -Index: acpica-unix-20190405/source/common/dmtbdump.c +Index: acpica-unix-20190816/source/common/dmtbdump.c =================================================================== ---- acpica-unix-20190405.orig/source/common/dmtbdump.c -+++ acpica-unix-20190405/source/common/dmtbdump.c +--- acpica-unix-20190816.orig/source/common/dmtbdump.c ++++ acpica-unix-20190816/source/common/dmtbdump.c @@ -277,6 +277,8 @@ AcpiDmDumpRsdt ( UINT32 Entries; UINT32 Offset; @@ -2987,10 +2987,10 @@ Index: acpica-unix-20190405/source/common/dmtbdump.c - Revision, Length, ExpectedLength); + Revision, Tmp32, ExpectedLength); } -Index: acpica-unix-20190405/source/common/dmtbdump1.c +Index: acpica-unix-20190816/source/common/dmtbdump1.c =================================================================== ---- acpica-unix-20190405.orig/source/common/dmtbdump1.c -+++ acpica-unix-20190405/source/common/dmtbdump1.c +--- acpica-unix-20190816.orig/source/common/dmtbdump1.c ++++ acpica-unix-20190816/source/common/dmtbdump1.c @@ -79,17 +79,21 @@ AcpiDmDumpAsf ( UINT32 DataOffset = 0; UINT32 i; @@ -3624,10 +3624,10 @@ Index: acpica-unix-20190405/source/common/dmtbdump1.c { case ACPI_HEST_TYPE_IA32_CHECK: -Index: acpica-unix-20190405/source/common/dmtbdump2.c +Index: acpica-unix-20190816/source/common/dmtbdump2.c =================================================================== ---- acpica-unix-20190405.orig/source/common/dmtbdump2.c -+++ acpica-unix-20190405/source/common/dmtbdump2.c +--- acpica-unix-20190816.orig/source/common/dmtbdump2.c ++++ acpica-unix-20190816/source/common/dmtbdump2.c @@ -75,15 +75,21 @@ AcpiDmDumpIort ( ACPI_IORT_SMMU *IortSmmu = NULL; UINT32 Offset; @@ -3969,8 +3969,8 @@ Index: acpica-unix-20190405/source/common/dmtbdump2.c + if (Offset + sizeof (ACPI_MCFG_ALLOCATION) > Len) { AcpiOsPrintf ("Warning: there are %u invalid trailing bytes\n", -- sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Table->Length)); -+ sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Len)); +- (UINT32) sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Table->Length)); ++ (UINT32) sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Len)); return; } @@ -4510,10 +4510,10 @@ Index: acpica-unix-20190405/source/common/dmtbdump2.c Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { -Index: acpica-unix-20190405/source/common/dmtbdump3.c +Index: acpica-unix-20190816/source/common/dmtbdump3.c =================================================================== ---- acpica-unix-20190405.orig/source/common/dmtbdump3.c -+++ acpica-unix-20190405/source/common/dmtbdump3.c +--- acpica-unix-20190816.orig/source/common/dmtbdump3.c ++++ acpica-unix-20190816/source/common/dmtbdump3.c @@ -68,9 +68,11 @@ void AcpiDmDumpSlic ( ACPI_TABLE_HEADER *Table) @@ -4760,11 +4760,11 @@ Index: acpica-unix-20190405/source/common/dmtbdump3.c + (void) AcpiDmDumpTable (Length, 0, Table, ArgumentsLength, AcpiDmTableInfoWpbt0); } -Index: acpica-unix-20190405/source/compiler/dtfield.c +Index: acpica-unix-20190816/source/compiler/dtfield.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/dtfield.c -+++ acpica-unix-20190405/source/compiler/dtfield.c -@@ -359,7 +359,27 @@ DtCompileInteger ( +--- acpica-unix-20190816.orig/source/compiler/dtfield.c ++++ acpica-unix-20190816/source/compiler/dtfield.c +@@ -361,7 +361,27 @@ DtCompileInteger ( DtError (ASL_ERROR, ASL_MSG_INTEGER_SIZE, Field, AslGbl_MsgBuffer); } @@ -4793,10 +4793,10 @@ Index: acpica-unix-20190405/source/compiler/dtfield.c return; } -Index: acpica-unix-20190405/source/compiler/dtsubtable.c +Index: acpica-unix-20190816/source/compiler/dtsubtable.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/dtsubtable.c -+++ acpica-unix-20190405/source/compiler/dtsubtable.c +--- acpica-unix-20190816.orig/source/compiler/dtsubtable.c ++++ acpica-unix-20190816/source/compiler/dtsubtable.c @@ -378,6 +378,21 @@ DtSetSubtableLength ( return; } @@ -4821,10 +4821,10 @@ Index: acpica-unix-20190405/source/compiler/dtsubtable.c + Subtable->SizeOfLengthField); + } } -Index: acpica-unix-20190405/source/compiler/dttable1.c +Index: acpica-unix-20190816/source/compiler/dttable1.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/dttable1.c -+++ acpica-unix-20190405/source/compiler/dttable1.c +--- acpica-unix-20190816.orig/source/compiler/dttable1.c ++++ acpica-unix-20190816/source/compiler/dttable1.c @@ -281,6 +281,8 @@ DtCompileCsrt ( DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 DescriptorCount; @@ -5196,10 +5196,10 @@ Index: acpica-unix-20190405/source/compiler/dttable1.c return (AE_OK); } -Index: acpica-unix-20190405/source/compiler/dttable2.c +Index: acpica-unix-20190816/source/compiler/dttable2.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/dttable2.c -+++ acpica-unix-20190405/source/compiler/dttable2.c +--- acpica-unix-20190816.orig/source/compiler/dttable2.c ++++ acpica-unix-20190816/source/compiler/dttable2.c @@ -345,7 +345,7 @@ DtCompileMpst ( DtPushSubtable (Subtable); @@ -5392,10 +5392,10 @@ Index: acpica-unix-20190405/source/compiler/dttable2.c ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); -Index: acpica-unix-20190405/source/components/disassembler/dmbuffer.c +Index: acpica-unix-20190816/source/components/disassembler/dmbuffer.c =================================================================== ---- acpica-unix-20190405.orig/source/components/disassembler/dmbuffer.c -+++ acpica-unix-20190405/source/components/disassembler/dmbuffer.c +--- acpica-unix-20190816.orig/source/components/disassembler/dmbuffer.c ++++ acpica-unix-20190816/source/components/disassembler/dmbuffer.c @@ -204,7 +204,7 @@ AcpiDmByteList ( @@ -5471,10 +5471,10 @@ Index: acpica-unix-20190405/source/components/disassembler/dmbuffer.c NextOp = AcpiPsGetDepthNext (NULL, Op); if (!NextOp) -Index: acpica-unix-20190405/source/components/disassembler/dmopcode.c +Index: acpica-unix-20190816/source/components/disassembler/dmopcode.c =================================================================== ---- acpica-unix-20190405.orig/source/components/disassembler/dmopcode.c -+++ acpica-unix-20190405/source/components/disassembler/dmopcode.c +--- acpica-unix-20190816.orig/source/components/disassembler/dmopcode.c ++++ acpica-unix-20190816/source/components/disassembler/dmopcode.c @@ -244,6 +244,7 @@ AcpiDmPredefinedDescription ( char *NameString; int LastCharIsDigit; @@ -5545,10 +5545,10 @@ Index: acpica-unix-20190405/source/components/disassembler/dmopcode.c Info->Level += 1; Info->MappingOp = Op; -Index: acpica-unix-20190405/source/components/disassembler/dmresrcl.c +Index: acpica-unix-20190816/source/components/disassembler/dmresrcl.c =================================================================== ---- acpica-unix-20190405.orig/source/components/disassembler/dmresrcl.c -+++ acpica-unix-20190405/source/components/disassembler/dmresrcl.c +--- acpica-unix-20190816.orig/source/components/disassembler/dmresrcl.c ++++ acpica-unix-20190816/source/components/disassembler/dmresrcl.c @@ -141,7 +141,8 @@ AcpiDmMemoryFields ( UINT32 Level) { @@ -5697,10 +5697,10 @@ Index: acpica-unix-20190405/source/components/disassembler/dmresrcl.c } AcpiDmIndent (Level); -Index: acpica-unix-20190405/source/components/disassembler/dmresrcl2.c +Index: acpica-unix-20190816/source/components/disassembler/dmresrcl2.c =================================================================== ---- acpica-unix-20190405.orig/source/components/disassembler/dmresrcl2.c -+++ acpica-unix-20190405/source/components/disassembler/dmresrcl2.c +--- acpica-unix-20190816.orig/source/components/disassembler/dmresrcl2.c ++++ acpica-unix-20190816/source/components/disassembler/dmresrcl2.c @@ -191,22 +191,24 @@ AcpiDmGpioCommon ( char *DeviceName = NULL; UINT32 PinCount; @@ -5924,10 +5924,10 @@ Index: acpica-unix-20190405/source/components/disassembler/dmresrcl2.c DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); -Index: acpica-unix-20190405/source/components/disassembler/dmresrcs.c +Index: acpica-unix-20190816/source/components/disassembler/dmresrcs.c =================================================================== ---- acpica-unix-20190405.orig/source/components/disassembler/dmresrcs.c -+++ acpica-unix-20190405/source/components/disassembler/dmresrcs.c +--- acpica-unix-20190816.orig/source/components/disassembler/dmresrcs.c ++++ acpica-unix-20190816/source/components/disassembler/dmresrcs.c @@ -72,6 +72,7 @@ AcpiDmIrqDescriptor ( UINT32 Length, UINT32 Level) @@ -5984,10 +5984,10 @@ Index: acpica-unix-20190405/source/components/disassembler/dmresrcs.c AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->FixedIo.AddressLength, "Length"); -Index: acpica-unix-20190405/source/components/dispatcher/dsfield.c +Index: acpica-unix-20190816/source/components/dispatcher/dsfield.c =================================================================== ---- acpica-unix-20190405.orig/source/components/dispatcher/dsfield.c -+++ acpica-unix-20190405/source/components/dispatcher/dsfield.c +--- acpica-unix-20190816.orig/source/components/dispatcher/dsfield.c ++++ acpica-unix-20190816/source/components/dispatcher/dsfield.c @@ -325,6 +325,7 @@ AcpiDsGetFieldNames ( ACPI_STATUS Status; UINT64 Position; @@ -6032,10 +6032,10 @@ Index: acpica-unix-20190405/source/components/dispatcher/dsfield.c if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, -Index: acpica-unix-20190405/source/components/events/evgpeblk.c +Index: acpica-unix-20190816/source/components/events/evgpeblk.c =================================================================== ---- acpica-unix-20190405.orig/source/components/events/evgpeblk.c -+++ acpica-unix-20190405/source/components/events/evgpeblk.c +--- acpica-unix-20190816.orig/source/components/events/evgpeblk.c ++++ acpica-unix-20190816/source/components/events/evgpeblk.c @@ -376,6 +376,7 @@ AcpiEvCreateGpeBlock ( ACPI_STATUS Status; ACPI_GPE_BLOCK_INFO *GpeBlock; @@ -6068,10 +6068,10 @@ Index: acpica-unix-20190405/source/components/events/evgpeblk.c InterruptNumber == AcpiGbl_FADT.SciInterrupt ? " (SCI)" : "")); /* Update global count of currently available GPEs */ -Index: acpica-unix-20190405/source/components/hardware/hwregs.c +Index: acpica-unix-20190816/source/components/hardware/hwregs.c =================================================================== ---- acpica-unix-20190405.orig/source/components/hardware/hwregs.c -+++ acpica-unix-20190405/source/components/hardware/hwregs.c +--- acpica-unix-20190816.orig/source/components/hardware/hwregs.c ++++ acpica-unix-20190816/source/components/hardware/hwregs.c @@ -197,7 +197,7 @@ AcpiHwValidateRegister ( * Address must not be null. A null address also indicates an optional * ACPI register that is not supported, so no error message. @@ -6081,10 +6081,10 @@ Index: acpica-unix-20190405/source/components/hardware/hwregs.c if (!(*Address)) { return (AE_BAD_ADDRESS); -Index: acpica-unix-20190405/source/components/hardware/hwvalid.c +Index: acpica-unix-20190816/source/components/hardware/hwvalid.c =================================================================== ---- acpica-unix-20190405.orig/source/components/hardware/hwvalid.c -+++ acpica-unix-20190405/source/components/hardware/hwvalid.c +--- acpica-unix-20190816.orig/source/components/hardware/hwvalid.c ++++ acpica-unix-20190816/source/components/hardware/hwvalid.c @@ -135,6 +135,8 @@ AcpiHwValidateIoRequest ( UINT32 ByteWidth; ACPI_IO_ADDRESS LastAddress; @@ -6106,11 +6106,11 @@ Index: acpica-unix-20190405/source/components/hardware/hwvalid.c { ACPI_ERROR ((AE_INFO, "Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X", -Index: acpica-unix-20190405/source/components/namespace/nsaccess.c +Index: acpica-unix-20190816/source/components/namespace/nsaccess.c =================================================================== ---- acpica-unix-20190405.orig/source/components/namespace/nsaccess.c -+++ acpica-unix-20190405/source/components/namespace/nsaccess.c -@@ -314,6 +314,7 @@ AcpiNsLookup ( +--- acpica-unix-20190816.orig/source/components/namespace/nsaccess.c ++++ acpica-unix-20190816/source/components/namespace/nsaccess.c +@@ -349,6 +349,7 @@ AcpiNsLookup ( UINT32 SearchParentFlag = ACPI_NS_SEARCH_PARENT; UINT32 LocalFlags; ACPI_INTERPRETER_MODE LocalInterpreterMode; @@ -6118,7 +6118,7 @@ Index: acpica-unix-20190405/source/components/namespace/nsaccess.c ACPI_FUNCTION_TRACE (NsLookup); -@@ -723,9 +724,10 @@ AcpiNsLookup ( +@@ -758,9 +759,10 @@ AcpiNsLookup ( { /* Complain about a type mismatch */ @@ -6130,10 +6130,10 @@ Index: acpica-unix-20190405/source/components/namespace/nsaccess.c AcpiUtGetTypeName (ThisNode->Type), AcpiUtGetTypeName (TypeToCheckFor))); } -Index: acpica-unix-20190405/source/components/namespace/nsparse.c +Index: acpica-unix-20190816/source/components/namespace/nsparse.c =================================================================== ---- acpica-unix-20190405.orig/source/components/namespace/nsparse.c -+++ acpica-unix-20190405/source/components/namespace/nsparse.c +--- acpica-unix-20190816.orig/source/components/namespace/nsparse.c ++++ acpica-unix-20190816/source/components/namespace/nsparse.c @@ -216,13 +216,14 @@ AcpiNsOneCompleteParse ( /* Table must consist of at least a complete header */ @@ -6151,10 +6151,10 @@ Index: acpica-unix-20190405/source/components/namespace/nsparse.c Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_FAILURE (Status)) -Index: acpica-unix-20190405/source/components/tables/tbdata.c +Index: acpica-unix-20190816/source/components/tables/tbdata.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbdata.c -+++ acpica-unix-20190405/source/components/tables/tbdata.c +--- acpica-unix-20190816.orig/source/components/tables/tbdata.c ++++ acpica-unix-20190816/source/components/tables/tbdata.c @@ -552,6 +552,7 @@ AcpiTbVerifyTempTable ( UINT32 *TableIndex) { @@ -6173,10 +6173,10 @@ Index: acpica-unix-20190405/source/components/tables/tbdata.c if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, AE_NO_MEMORY, -Index: acpica-unix-20190405/source/components/tables/tbfadt.c +Index: acpica-unix-20190816/source/components/tables/tbfadt.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbfadt.c -+++ acpica-unix-20190405/source/components/tables/tbfadt.c +--- acpica-unix-20190816.orig/source/components/tables/tbfadt.c ++++ acpica-unix-20190816/source/components/tables/tbfadt.c @@ -424,18 +424,20 @@ AcpiTbCreateLocalFadt ( ACPI_TABLE_HEADER *Table, UINT32 Length) @@ -6288,10 +6288,10 @@ Index: acpica-unix-20190405/source/components/tables/tbfadt.c "PmRegisters", 0); } } -Index: acpica-unix-20190405/source/components/tables/tbfind.c +Index: acpica-unix-20190816/source/components/tables/tbfind.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbfind.c -+++ acpica-unix-20190405/source/components/tables/tbfind.c +--- acpica-unix-20190816.orig/source/components/tables/tbfind.c ++++ acpica-unix-20190816/source/components/tables/tbfind.c @@ -108,8 +108,11 @@ AcpiTbFindTable ( (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) @@ -6305,10 +6305,10 @@ Index: acpica-unix-20190405/source/components/tables/tbfind.c { /* Not the requested table */ -Index: acpica-unix-20190405/source/components/tables/tbprint.c +Index: acpica-unix-20190816/source/components/tables/tbprint.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbprint.c -+++ acpica-unix-20190405/source/components/tables/tbprint.c +--- acpica-unix-20190816.orig/source/components/tables/tbprint.c ++++ acpica-unix-20190816/source/components/tables/tbprint.c @@ -143,15 +143,18 @@ AcpiTbPrintTableHeader ( ACPI_TABLE_HEADER *Header) { @@ -6350,10 +6350,10 @@ Index: acpica-unix-20190405/source/components/tables/tbprint.c } } -Index: acpica-unix-20190405/source/components/tables/tbutils.c +Index: acpica-unix-20190816/source/components/tables/tbutils.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbutils.c -+++ acpica-unix-20190405/source/components/tables/tbutils.c +--- acpica-unix-20190816.orig/source/components/tables/tbutils.c ++++ acpica-unix-20190816/source/components/tables/tbutils.c @@ -238,7 +238,7 @@ AcpiTbGetRootTableEntry ( * 64-bit platform, XSDT: Move (unaligned) 64-bit to local, * return 64-bit @@ -6413,10 +6413,10 @@ Index: acpica-unix-20190405/source/components/tables/tbutils.c { AcpiGbl_FadtIndex = TableIndex; AcpiTbParseFadt (); -Index: acpica-unix-20190405/source/components/tables/tbxface.c +Index: acpica-unix-20190816/source/components/tables/tbxface.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbxface.c -+++ acpica-unix-20190405/source/components/tables/tbxface.c +--- acpica-unix-20190816.orig/source/components/tables/tbxface.c ++++ acpica-unix-20190816/source/components/tables/tbxface.c @@ -293,8 +293,11 @@ AcpiGetTableHeader ( for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) @@ -6430,10 +6430,10 @@ Index: acpica-unix-20190405/source/components/tables/tbxface.c { continue; } -Index: acpica-unix-20190405/source/components/tables/tbxfload.c +Index: acpica-unix-20190816/source/components/tables/tbxfload.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbxfload.c -+++ acpica-unix-20190405/source/components/tables/tbxfload.c +--- acpica-unix-20190816.orig/source/components/tables/tbxfload.c ++++ acpica-unix-20190816/source/components/tables/tbxfload.c @@ -153,6 +153,7 @@ AcpiTbLoadNamespace ( ACPI_TABLE_DESC *Table; UINT32 TablesLoaded = 0; @@ -6453,10 +6453,10 @@ Index: acpica-unix-20190405/source/components/tables/tbxfload.c ACPI_FAILURE (AcpiTbValidateTable (Table))) { Status = AE_NO_ACPI_TABLES; -Index: acpica-unix-20190405/source/tools/acpiexec/aetables.c +Index: acpica-unix-20190816/source/tools/acpiexec/aetables.c =================================================================== ---- acpica-unix-20190405.orig/source/tools/acpiexec/aetables.c -+++ acpica-unix-20190405/source/tools/acpiexec/aetables.c +--- acpica-unix-20190816.orig/source/tools/acpiexec/aetables.c ++++ acpica-unix-20190816/source/tools/acpiexec/aetables.c @@ -146,21 +146,25 @@ AeInitializeTableHeader ( char *Signature, UINT32 Length) @@ -6608,10 +6608,10 @@ Index: acpica-unix-20190405/source/tools/acpiexec/aetables.c } return (AE_OK); -Index: acpica-unix-20190405/source/common/dmswitch.c +Index: acpica-unix-20190816/source/common/dmswitch.c =================================================================== ---- acpica-unix-20190405.orig/source/common/dmswitch.c -+++ acpica-unix-20190405/source/common/dmswitch.c +--- acpica-unix-20190816.orig/source/common/dmswitch.c ++++ acpica-unix-20190816/source/common/dmswitch.c @@ -88,13 +88,15 @@ AcpiDmProcessSwitch ( ACPI_PARSE_OBJECT_LIST *Current; ACPI_PARSE_OBJECT_LIST *Previous; diff --git a/f23-harden.patch b/f23-harden.patch index 2891d9b..70e1f5a 100644 --- a/f23-harden.patch +++ b/f23-harden.patch @@ -8,11 +8,11 @@ From: Al Stone generate/unix/iasl/Makefile | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) -Index: acpica-unix2-20180209/generate/unix/Makefile.config +Index: acpica-unix-20190816/generate/unix/Makefile.config =================================================================== ---- acpica-unix2-20180209.orig/generate/unix/Makefile.config -+++ acpica-unix2-20180209/generate/unix/Makefile.config -@@ -182,6 +182,8 @@ ifneq ($(NOFORTIFY),TRUE) +--- acpica-unix-20190816.orig/generate/unix/Makefile.config ++++ acpica-unix-20190816/generate/unix/Makefile.config +@@ -190,6 +190,8 @@ ifneq ($(NOFORTIFY),TRUE) OPT_CFLAGS += -D_FORTIFY_SOURCE=2 endif @@ -21,11 +21,11 @@ Index: acpica-unix2-20180209/generate/unix/Makefile.config CFLAGS += \ -D$(HOST)\ -D_GNU_SOURCE\ -Index: acpica-unix2-20180209/generate/unix/iasl/Makefile +Index: acpica-unix-20190816/generate/unix/iasl/Makefile =================================================================== ---- acpica-unix2-20180209.orig/generate/unix/iasl/Makefile -+++ acpica-unix2-20180209/generate/unix/iasl/Makefile -@@ -344,26 +344,27 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa +--- acpica-unix-20190816.orig/generate/unix/iasl/Makefile ++++ acpica-unix-20190816/generate/unix/iasl/Makefile +@@ -358,34 +358,35 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa # Cannot use the common compile warning flags since the C files are created # by the utilities above and they are not necessarily ANSI C, etc. # @@ -38,6 +38,16 @@ Index: acpica-unix2-20180209/generate/unix/iasl/Makefile $(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c @echo "- " "Intermediate" $< - @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $< ++ @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $< + + $(OBJDIR)/dtcompilerparserlex.o : $(OBJDIR)/dtcompilerparserlex.c + @echo "- " "Intermediate" $< +- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $< ++ @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $< + + $(OBJDIR)/dtcompilerparserparse.o : $(OBJDIR)/dtcompilerparserparse.c + @echo "- " "Intermediate" $< +- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $< + @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $< $(OBJDIR)/dtparserlex.o : $(OBJDIR)/dtparserlex.c diff --git a/grammar.asl.result b/grammar.asl.result index 90341c0..73351de 100644 --- a/grammar.asl.result +++ b/grammar.asl.result @@ -37,6 +37,9 @@ Warning 3055 - ^ Invalid Hex/Octal Escape - Non- grammar.asl 620: RCIV (Subtract (Arg0, 1)) Remark 2098 - ^ Recursive method call (RCIV) +grammar.asl 631: Processor(CPU0,0x0,0xFFFFFFFF,0x0) {} +Warning 3168 - ^ Legacy Processor() keyword detected. Use Device() keyword instead. + grammar.asl 668: Method(SMWE, 4) Remark 2146 - ^ Method Argument is never used (Arg0) @@ -371,4 +374,4 @@ Ignoring all errors, forcing AML file generation ASL Input: grammar.asl - 323653 bytes 4818 keywords 10284 source lines AML Output: grammar.aml - 43758 bytes 4148 opcodes 670 named objects -Compilation successful. 6 Errors, 88 Warnings, 27 Remarks, 1106 Optimizations +Compilation successful. 6 Errors, 89 Warnings, 27 Remarks, 1106 Optimizations diff --git a/int-format.patch b/int-format.patch index de10b2d..a578087 100644 --- a/int-format.patch +++ b/int-format.patch @@ -21,11 +21,11 @@ From: Al Stone source/components/utilities/utownerid.c | 2 +- 18 files changed, 28 insertions(+), 28 deletions(-) -Index: acpica-unix-20190405/source/compiler/aslerror.c +Index: acpica-unix-20190816/source/compiler/aslerror.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslerror.c -+++ acpica-unix-20190405/source/compiler/aslerror.c -@@ -906,7 +906,7 @@ AslLogNewError ( +--- acpica-unix-20190816.orig/source/compiler/aslerror.c ++++ acpica-unix-20190816/source/compiler/aslerror.c +@@ -898,7 +898,7 @@ AslLogNewError ( AslGbl_ExceptionCount[ModifiedLevel]++; if (!AslGbl_IgnoreErrors && AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT) { @@ -34,10 +34,10 @@ Index: acpica-unix-20190405/source/compiler/aslerror.c AslGbl_SourceLine = 0; AslGbl_NextError = AslGbl_ErrorLog; -Index: acpica-unix-20190405/source/compiler/aslopt.c +Index: acpica-unix-20190816/source/compiler/aslopt.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslopt.c -+++ acpica-unix-20190405/source/compiler/aslopt.c +--- acpica-unix-20190816.orig/source/compiler/aslopt.c ++++ acpica-unix-20190816/source/compiler/aslopt.c @@ -583,7 +583,7 @@ OptOptimizeNamePath ( } @@ -47,10 +47,10 @@ Index: acpica-unix-20190405/source/compiler/aslopt.c Op->Asl.LogicalLineNumber, AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode), AcpiPsGetOpcodeName (Op->Common.AmlOpcode))); -Index: acpica-unix-20190405/source/compiler/aslprepkg.c +Index: acpica-unix-20190816/source/compiler/aslprepkg.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslprepkg.c -+++ acpica-unix-20190405/source/compiler/aslprepkg.c +--- acpica-unix-20190816.orig/source/compiler/aslprepkg.c ++++ acpica-unix-20190816/source/compiler/aslprepkg.c @@ -309,7 +309,7 @@ ApCheckPackage ( if (Count & 1) @@ -60,10 +60,10 @@ Index: acpica-unix-20190405/source/compiler/aslprepkg.c Predefined->Info.Name, Count); AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH, -Index: acpica-unix-20190405/source/components/debugger/dbexec.c +Index: acpica-unix-20190816/source/components/debugger/dbexec.c =================================================================== ---- acpica-unix-20190405.orig/source/components/debugger/dbexec.c -+++ acpica-unix-20190405/source/components/debugger/dbexec.c +--- acpica-unix-20190816.orig/source/components/debugger/dbexec.c ++++ acpica-unix-20190816/source/components/debugger/dbexec.c @@ -230,7 +230,7 @@ AcpiDbExecuteMethod ( ACPI_ERROR ((AE_INFO, "Possible buffer overflow within AML Debugger " @@ -73,10 +73,10 @@ Index: acpica-unix-20190405/source/components/debugger/dbexec.c } } -Index: acpica-unix-20190405/source/components/dispatcher/dsmthdat.c +Index: acpica-unix-20190816/source/components/dispatcher/dsmthdat.c =================================================================== ---- acpica-unix-20190405.orig/source/components/dispatcher/dsmthdat.c -+++ acpica-unix-20190405/source/components/dispatcher/dsmthdat.c +--- acpica-unix-20190816.orig/source/components/dispatcher/dsmthdat.c ++++ acpica-unix-20190816/source/components/dispatcher/dsmthdat.c @@ -291,7 +291,7 @@ AcpiDsMethodDataGetNode ( if (Index > ACPI_METHOD_MAX_LOCAL) { @@ -95,10 +95,10 @@ Index: acpica-unix-20190405/source/components/dispatcher/dsmthdat.c Index, ACPI_METHOD_MAX_ARG)); return_ACPI_STATUS (AE_AML_INVALID_INDEX); } -Index: acpica-unix-20190405/source/components/dispatcher/dsutils.c +Index: acpica-unix-20190816/source/components/dispatcher/dsutils.c =================================================================== ---- acpica-unix-20190405.orig/source/components/dispatcher/dsutils.c -+++ acpica-unix-20190405/source/components/dispatcher/dsutils.c +--- acpica-unix-20190816.orig/source/components/dispatcher/dsutils.c ++++ acpica-unix-20190816/source/components/dispatcher/dsutils.c @@ -786,7 +786,7 @@ AcpiDsCreateOperands ( } @@ -108,10 +108,10 @@ Index: acpica-unix-20190405/source/components/dispatcher/dsutils.c WalkState->NumOperands, ArgCount, Index)); /* Create the interpreter arguments, in reverse order */ -Index: acpica-unix-20190405/source/components/dispatcher/dswscope.c +Index: acpica-unix-20190816/source/components/dispatcher/dswscope.c =================================================================== ---- acpica-unix-20190405.orig/source/components/dispatcher/dswscope.c -+++ acpica-unix-20190405/source/components/dispatcher/dswscope.c +--- acpica-unix-20190816.orig/source/components/dispatcher/dswscope.c ++++ acpica-unix-20190816/source/components/dispatcher/dswscope.c @@ -149,7 +149,7 @@ AcpiDsScopeStackPush ( WalkState->ScopeDepth++; @@ -130,11 +130,11 @@ Index: acpica-unix-20190405/source/components/dispatcher/dswscope.c (UINT32) WalkState->ScopeDepth, AcpiUtGetNodeName (ScopeInfo->Scope.Node), AcpiUtGetTypeName (ScopeInfo->Common.Value))); -Index: acpica-unix-20190405/source/components/events/evgpe.c +Index: acpica-unix-20190816/source/components/events/evgpe.c =================================================================== ---- acpica-unix-20190405.orig/source/components/events/evgpe.c -+++ acpica-unix-20190405/source/components/events/evgpe.c -@@ -489,7 +489,7 @@ AcpiEvGpeDetect ( +--- acpica-unix-20190816.orig/source/components/events/evgpe.c ++++ acpica-unix-20190816/source/components/events/evgpe.c +@@ -488,7 +488,7 @@ AcpiEvGpeDetect ( "Ignore disabled registers for GPE %02X-%02X: " "RunEnable=%02X, WakeEnable=%02X\n", GpeRegisterInfo->BaseGpeNumber, @@ -143,10 +143,10 @@ Index: acpica-unix-20190405/source/components/events/evgpe.c GpeRegisterInfo->EnableForRun, GpeRegisterInfo->EnableForWake)); continue; -Index: acpica-unix-20190405/source/components/executer/exdump.c +Index: acpica-unix-20190816/source/components/executer/exdump.c =================================================================== ---- acpica-unix-20190405.orig/source/components/executer/exdump.c -+++ acpica-unix-20190405/source/components/executer/exdump.c +--- acpica-unix-20190816.orig/source/components/executer/exdump.c ++++ acpica-unix-20190816/source/components/executer/exdump.c @@ -678,7 +678,7 @@ AcpiExDumpOperand ( if (Depth > 0) { @@ -156,10 +156,10 @@ Index: acpica-unix-20190405/source/components/executer/exdump.c } else { -Index: acpica-unix-20190405/source/components/executer/exfldio.c +Index: acpica-unix-20190816/source/components/executer/exfldio.c =================================================================== ---- acpica-unix-20190405.orig/source/components/executer/exfldio.c -+++ acpica-unix-20190405/source/components/executer/exfldio.c +--- acpica-unix-20190816.orig/source/components/executer/exfldio.c ++++ acpica-unix-20190816/source/components/executer/exfldio.c @@ -681,8 +681,8 @@ AcpiExWriteWithUpdateRule ( ACPI_ERROR ((AE_INFO, @@ -171,10 +171,10 @@ Index: acpica-unix-20190405/source/components/executer/exfldio.c return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } } -Index: acpica-unix-20190405/source/components/executer/exnames.c +Index: acpica-unix-20190816/source/components/executer/exnames.c =================================================================== ---- acpica-unix-20190405.orig/source/components/executer/exnames.c -+++ acpica-unix-20190405/source/components/executer/exnames.c +--- acpica-unix-20190816.orig/source/components/executer/exnames.c ++++ acpica-unix-20190816/source/components/executer/exnames.c @@ -237,7 +237,7 @@ AcpiExNameSegment ( */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, @@ -193,10 +193,10 @@ Index: acpica-unix-20190405/source/components/executer/exnames.c } *InAmlAddress = ACPI_CAST_PTR (UINT8, AmlAddress); -Index: acpica-unix-20190405/source/components/hardware/hwregs.c +Index: acpica-unix-20190816/source/components/hardware/hwregs.c =================================================================== ---- acpica-unix-20190405.orig/source/components/hardware/hwregs.c -+++ acpica-unix-20190405/source/components/hardware/hwregs.c +--- acpica-unix-20190816.orig/source/components/hardware/hwregs.c ++++ acpica-unix-20190816/source/components/hardware/hwregs.c @@ -460,7 +460,7 @@ AcpiHwClearAcpiStatus ( @@ -206,10 +206,10 @@ Index: acpica-unix-20190405/source/components/hardware/hwregs.c ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address))); LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock); -Index: acpica-unix-20190405/source/components/tables/tbfadt.c +Index: acpica-unix-20190816/source/components/tables/tbfadt.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbfadt.c -+++ acpica-unix-20190405/source/components/tables/tbfadt.c +--- acpica-unix-20190816.orig/source/components/tables/tbfadt.c ++++ acpica-unix-20190816/source/components/tables/tbfadt.c @@ -233,7 +233,7 @@ AcpiTbInitGenericAddress ( if (!(Flags & ACPI_FADT_GPE_REGISTER)) { @@ -237,10 +237,10 @@ Index: acpica-unix-20190405/source/components/tables/tbfadt.c Name, Address32, ACPI_FORMAT_UINT64 (Address64->Address), AcpiGbl_Use32BitFadtAddresses ? 32 : 64)); -Index: acpica-unix-20190405/source/components/tables/tbxfroot.c +Index: acpica-unix-20190816/source/components/tables/tbxfroot.c =================================================================== ---- acpica-unix-20190405.orig/source/components/tables/tbxfroot.c -+++ acpica-unix-20190405/source/components/tables/tbxfroot.c +--- acpica-unix-20190816.orig/source/components/tables/tbxfroot.c ++++ acpica-unix-20190816/source/components/tables/tbxfroot.c @@ -177,7 +177,7 @@ AcpiFindRootPointer ( { ACPI_ERROR ((AE_INFO, @@ -268,15 +268,15 @@ Index: acpica-unix-20190405/source/components/tables/tbxfroot.c return_ACPI_STATUS (AE_NO_MEMORY); } -Index: acpica-unix-20190405/source/components/utilities/utownerid.c +Index: acpica-unix-20190816/source/components/utilities/utownerid.c =================================================================== ---- acpica-unix-20190405.orig/source/components/utilities/utownerid.c -+++ acpica-unix-20190405/source/components/utilities/utownerid.c +--- acpica-unix-20190816.orig/source/components/utilities/utownerid.c ++++ acpica-unix-20190816/source/components/utilities/utownerid.c @@ -237,7 +237,7 @@ AcpiUtReleaseOwnerId ( else { ACPI_ERROR ((AE_INFO, -- "Release of non-allocated OwnerId: 0x%2.2X", OwnerId + 1)); +- "Attempted release of non-allocated OwnerId: 0x%3.3X", OwnerId + 1)); + "Release of non-allocated OwnerId: 0x%2.2X", (UINT32) OwnerId + 1)); } diff --git a/sources b/sources index be7b154..ff9ab51 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20190703.tar.gz) = 8445a6d354ce3bcbfb5159f4ec0312b1e910c0b1b2033a2300f892e4ac580abab4e3f5b4ded379f0036299359d307330511ab7053678cfd9031d7df4c365f555 -SHA512 (acpitests-unix-20190703.tar.gz) = d9bab56198dc00fc11b50a199035eb9dc164c226441cd00e163ecd6362d399a50058afa7582f86e62a085b990772995fc10e077581a3b04a6c6b2e95e055f167 +SHA512 (acpica-unix2-20190816.tar.gz) = f2b5363a18391d35465cc14d3be1c2f5b72c599a02e617febc7abc64f0a825fd7ef06d9bc5f13264cf526b7f4ba6a605dd188152c6007efcf661641b537d22b2 +SHA512 (acpitests-unix-20190816.tar.gz) = ea3944888a5229be246c47b9d53256ccc42a988e3dd98995df6ab77ebb0715e777577df609340ee806c5274536ecdcf5798d2aad3786f5a1462a6be8dea9ed1b diff --git a/template.patch b/template.patch index e8b06f5..c3e1387 100644 --- a/template.patch +++ b/template.patch @@ -7,16 +7,16 @@ From: Al Stone tests/templates/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: acpica-unix2-20161222/tests/templates/Makefile +Index: acpica-unix-20190816/tests/templates/Makefile =================================================================== ---- acpica-unix2-20161222.orig/tests/templates/Makefile -+++ acpica-unix2-20161222/tests/templates/Makefile -@@ -2,7 +2,7 @@ - PROG= templates +--- acpica-unix-20190816.orig/tests/templates/Makefile ++++ acpica-unix-20190816/tests/templates/Makefile +@@ -26,7 +26,7 @@ $(aml_obj): %.aml: %.asl + templates : - sh templates.sh + sh templates.sh 1 - clean : - rm -f *.asl *.aml *.dsl *.hex diff.log + .PHONY: clean + clean: diff --git a/unaligned.patch b/unaligned.patch index 9a729d3..6365508 100644 --- a/unaligned.patch +++ b/unaligned.patch @@ -14,10 +14,10 @@ Signed-off-by: Paolo Bonzini source/include/actypes.h | 26 +++++++++++++------------- 3 files changed, 32 insertions(+), 21 deletions(-) -Index: acpica-unix2-20170728/source/components/executer/exoparg2.c +Index: acpica-unix-20180508/source/components/executer/exoparg2.c =================================================================== ---- acpica-unix2-20170728.orig/source/components/executer/exoparg2.c -+++ acpica-unix2-20170728/source/components/executer/exoparg2.c +--- acpica-unix-20180508.orig/source/components/executer/exoparg2.c ++++ acpica-unix-20180508/source/components/executer/exoparg2.c @@ -172,6 +172,8 @@ AcpiExOpcode_2A_2T_1R ( ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc1 = NULL; @@ -58,10 +58,10 @@ Index: acpica-unix2-20170728/source/components/executer/exoparg2.c break; case AML_CONCATENATE_OP: /* Concatenate (Data1, Data2, Result) */ -Index: acpica-unix2-20170728/source/include/actypes.h +Index: acpica-unix-20180508/source/include/actypes.h =================================================================== ---- acpica-unix2-20170728.orig/source/include/actypes.h -+++ acpica-unix2-20170728/source/include/actypes.h +--- acpica-unix-20180508.orig/source/include/actypes.h ++++ acpica-unix-20180508/source/include/actypes.h @@ -143,6 +143,19 @@ typedef COMPILER_DEPENDENT_INT64 */ #define ACPI_THREAD_ID UINT64 @@ -75,7 +75,7 @@ Index: acpica-unix2-20170728/source/include/actypes.h + * Note: EM64T and other X86-64 processors support misaligned transfers, + * so there is no need to define this flag. + */ -+#if defined (__IA64__) || defined (__ia64__) || defined(__alpha__) || defined(__sparc__) || defined(__hppa__) ++#if defined (__IA64__) || defined (__ia64__) || defined(__alpha__) || defined(__sparc__) || defined(__hppa__) || defined(__arm__) +#define ACPI_MISALIGNMENT_NOT_SUPPORTED +#endif + From 0acf62d4a9716dce2130bec61a2cf3a38bb5a7d6 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 29 Oct 2019 17:41:12 -0600 Subject: [PATCH 03/82] Add in a patch to fix incorrect exit status from iasl Signed-off-by: Al Stone --- acpica-tools.spec | 19 ++++++------------- badexit.patch | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 badexit.patch diff --git a/acpica-tools.spec b/acpica-tools.spec index d1a8446..0fb365f 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -42,6 +42,7 @@ Patch14: str-trunc-warn.patch Patch15: ptr-cast.patch Patch16: aslcodegen.patch Patch17: facp.patch +Patch18: badexit.patch BuildRequires: bison patchutils flex gcc @@ -111,6 +112,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch15 -p1 -b .ptr-cast %patch16 -p1 -b .aslcodegen %patch17 -p1 -b .facp +%patch18 -p1 -b .badexit cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -197,18 +199,6 @@ cd tests # misc tests ./run-misc-tests.sh %{buildroot}%{_bindir} %{version} -# Template tests -cd templates -make -if [ -f diff.log ] -then - if [ -s diff.log ] - then - exit 1 # implies errors occurred - fi -fi -cd .. - %pre if [ -e %{_bindir}/acpixtract-acpica ] then @@ -239,8 +229,11 @@ fi %changelog -* Sun Oct 27 2019 Al Stone - 20190816-1 +* Tue Oct 29 2019 Al Stone - 20190816-1 - Update to 20190816 source tree, including patch refeshes. +- Add a patch to fix a non-zero exit from iasl -T ALL that actually succeeds +- Remove the "template" tests; they have been subsumed by aslts.sh as they + should be * Thu Oct 24 2019 Al Stone - 20190703-1 - Update to 20190703 source tree, including patch refeshes. diff --git a/badexit.patch b/badexit.patch new file mode 100644 index 0000000..6e8353e --- /dev/null +++ b/badexit.patch @@ -0,0 +1,17 @@ +When iasl is invoked with 'iasl -T ALL', and everything works correctly, +it still exits with a non-zero value. Exit with zero if all is well. + +Signed-off-by: Al Stone + +diff -Naur acpica-unix2-20190816/source/compiler/asloptions.c acpica-unix2-20190816.fix/source/compiler/asloptions.c +--- acpica-unix2-20190816/source/compiler/asloptions.c 2019-08-16 09:01:30.000000000 -0600 ++++ acpica-unix2-20190816.fix/source/compiler/asloptions.c 2019-10-29 15:52:40.987156555 -0600 +@@ -111,7 +111,7 @@ + { + exit (-1); + } +- exit (1); ++ exit (0); + } + + /* Next parameter must be the input filename */ From d7f8eec1b252f778159d84d8bdf15b0a179c89cc Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sat, 23 Nov 2019 16:16:51 -0700 Subject: [PATCH 04/82] Update to 20191018 upstream source with refreshed patches Signed-off-by: Al Stone --- .gitignore | 2 + OPT_LDFLAGS.patch | 6 +- acpica-tools.spec | 87 +- arm7hl.patch | 7 +- aslcodegen.patch | 6 +- badexit.patch | 9 +- big-endian-dmtbdump.patch | 162 +++ big-endian-dmtbdump1.patch | 637 ++++++++++ big-endian-dmtbdump2.patch | 887 ++++++++++++++ big-endian-dmtbdump3.patch | 250 ++++ big-endian-v2.patch | 6 +- big-endian.patch | 2298 +++--------------------------------- cve-2017-13693.patch | 6 +- cve-2017-13694.patch | 14 +- cve-2017-13695.patch | 8 +- f23-harden.patch | 12 +- grammar.asl.result | 11 +- int-format.patch | 90 +- mips-be-fix.patch | 12 +- ppc64le.patch | 6 +- ptr-cast.patch | 20 +- simple-64bit.patch | 6 +- sources | 4 +- str-trunc-warn.patch | 20 +- template.patch | 6 +- unaligned.patch | 12 +- 26 files changed, 2298 insertions(+), 2286 deletions(-) create mode 100644 big-endian-dmtbdump.patch create mode 100644 big-endian-dmtbdump1.patch create mode 100644 big-endian-dmtbdump2.patch create mode 100644 big-endian-dmtbdump3.patch diff --git a/.gitignore b/.gitignore index ab14efb..4886745 100644 --- a/.gitignore +++ b/.gitignore @@ -119,3 +119,5 @@ series /acpitests-unix-20190703.tar.gz /acpica-unix2-20190816.tar.gz /acpitests-unix-20190816.tar.gz +/acpica-unix2-20191018.tar.gz +/acpitests-unix-20191018.tar.gz diff --git a/OPT_LDFLAGS.patch b/OPT_LDFLAGS.patch index 975a97e..5d9a21f 100644 --- a/OPT_LDFLAGS.patch +++ b/OPT_LDFLAGS.patch @@ -1,7 +1,7 @@ -Index: acpica-unix-20190816/generate/unix/Makefile.config +Index: acpica-unix-20191018/generate/unix/Makefile.config =================================================================== ---- acpica-unix-20190816.orig/generate/unix/Makefile.config -+++ acpica-unix-20190816/generate/unix/Makefile.config +--- acpica-unix-20191018.orig/generate/unix/Makefile.config ++++ acpica-unix-20191018/generate/unix/Makefile.config @@ -23,6 +23,9 @@ # OPT_CFLAGS can be overridden on the make command line by # adding OPT_CFLAGS="..." to the invocation. diff --git a/acpica-tools.spec b/acpica-tools.spec index 0fb365f..6d10d78 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20190816 +Version: 20191018 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -25,24 +25,28 @@ Source15: run-misc-tests.sh Source16: COPYING Patch0: big-endian.patch -Patch1: unaligned.patch -Patch2: OPT_LDFLAGS.patch -Patch3: int-format.patch -Patch4: f23-harden.patch -Patch5: template.patch -Patch6: ppc64le.patch -Patch7: arm7hl.patch -Patch8: big-endian-v2.patch -Patch9: simple-64bit.patch -Patch10: mips-be-fix.patch -Patch11: cve-2017-13693.patch -Patch12: cve-2017-13694.patch -Patch13: cve-2017-13695.patch -Patch14: str-trunc-warn.patch -Patch15: ptr-cast.patch -Patch16: aslcodegen.patch -Patch17: facp.patch -Patch18: badexit.patch +Patch1: big-endian-dmtbdump.patch +Patch2: big-endian-dmtbdump1.patch +Patch3: big-endian-dmtbdump2.patch +Patch4: big-endian-dmtbdump3.patch +Patch5: unaligned.patch +Patch6: OPT_LDFLAGS.patch +Patch7: int-format.patch +Patch8: f23-harden.patch +Patch9: template.patch +Patch10: ppc64le.patch +Patch11: arm7hl.patch +Patch12: big-endian-v2.patch +Patch13: simple-64bit.patch +Patch14: mips-be-fix.patch +Patch15: cve-2017-13693.patch +Patch16: cve-2017-13694.patch +Patch17: cve-2017-13695.patch +Patch18: str-trunc-warn.patch +Patch19: ptr-cast.patch +Patch20: aslcodegen.patch +Patch21: facp.patch +Patch22: badexit.patch BuildRequires: bison patchutils flex gcc @@ -92,27 +96,31 @@ This version of the tools is being released under GPLv2 license. %setup -q -n acpica-unix2-%{version} gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - -%patch0 -p1 -b .big-endian -%patch1 -p1 -b .unaligned -%patch2 -p1 -b .OPT_LDFLAGS -%patch3 -p1 -b .int-format -%patch4 -p1 -b .f23-harden +%patch0 -p1 -b .big-endian +%patch1 -p1 -b .big-endian-dmtbdump +%patch2 -p1 -b .big-endian-dmtbdump1 +%patch3 -p1 -b .big-endian-dmtbdump2 +%patch4 -p1 -b .big-endian-dmtbdump3 +%patch5 -p1 -b .unaligned +%patch6 -p1 -b .OPT_LDFLAGS +%patch7 -p1 -b .int-format +%patch8 -p1 -b .f23-harden # do not preserve a backup for this patch; it alters the results # of the template test case and forces it to fail -%patch5 -p1 -%patch6 -p1 -b .ppc64le -%patch7 -p1 -b .arm7hl -%patch8 -p1 -b .big-endian-v2 -%patch9 -p1 -b .simple-64bit -%patch10 -p1 -b .mips-be-fix -%patch11 -p1 -b .cve-2017-13693 -%patch12 -p1 -b .cve-2017-13694 -%patch13 -p1 -b .cve-2017-13695 -%patch14 -p1 -b .str-trunc-warn -%patch15 -p1 -b .ptr-cast -%patch16 -p1 -b .aslcodegen -%patch17 -p1 -b .facp -%patch18 -p1 -b .badexit +%patch9 -p1 +%patch10 -p1 -b .ppc64le +%patch11 -p1 -b .arm7hl +%patch12 -p1 -b .big-endian-v2 +%patch13 -p1 -b .simple-64bit +%patch14 -p1 -b .mips-be-fix +%patch15 -p1 -b .cve-2017-13693 +%patch16 -p1 -b .cve-2017-13694 +%patch17 -p1 -b .cve-2017-13695 +%patch18 -p1 -b .str-trunc-warn +%patch19 -p1 -b .ptr-cast +%patch20 -p1 -b .aslcodegen +%patch21 -p1 -b .facp +%patch22 -p1 -b .badexit cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -229,6 +237,9 @@ fi %changelog +* Sat Nov 23 2019 Al Stone - 20191018-1 +- Update to 20191019 source tree, including patch refeshes. + * Tue Oct 29 2019 Al Stone - 20190816-1 - Update to 20190816 source tree, including patch refeshes. - Add a patch to fix a non-zero exit from iasl -T ALL that actually succeeds diff --git a/arm7hl.patch b/arm7hl.patch index fb10291..75abf45 100644 --- a/arm7hl.patch +++ b/arm7hl.patch @@ -1,6 +1,7 @@ -diff -Naur acpica-unix2-20170119/source/include/acmacros.h acpica-unix2-20170119-arm7hl/source/include/acmacros.h ---- acpica-unix2-20170119/source/include/acmacros.h 2017-01-30 17:25:54.346151952 -0700 -+++ acpica-unix2-20170119-arm7hl/source/include/acmacros.h 2017-01-30 17:22:25.249388742 -0700 +Index: acpica-unix-20191018/source/include/acmacros.h +=================================================================== +--- acpica-unix-20191018.orig/source/include/acmacros.h ++++ acpica-unix-20191018/source/include/acmacros.h @@ -178,6 +178,8 @@ /* 16-bit source, 16/32/64 destination */ diff --git a/aslcodegen.patch b/aslcodegen.patch index 9267f7e..2e2854e 100644 --- a/aslcodegen.patch +++ b/aslcodegen.patch @@ -4,10 +4,10 @@ support; this patch repairs that adaptation. Signed-off-by: Al Stone -Index: acpica-unix-20190405/source/compiler/aslcodegen.c +Index: acpica-unix-20191018/source/compiler/aslcodegen.c =================================================================== ---- acpica-unix-20190405.orig/source/compiler/aslcodegen.c -+++ acpica-unix-20190405/source/compiler/aslcodegen.c +--- acpica-unix-20191018.orig/source/compiler/aslcodegen.c ++++ acpica-unix-20191018/source/compiler/aslcodegen.c @@ -497,8 +497,7 @@ CgWriteTableHeader ( /* Table length. Checksum zero for now, will rewrite later */ diff --git a/badexit.patch b/badexit.patch index 6e8353e..6bcc699 100644 --- a/badexit.patch +++ b/badexit.patch @@ -3,10 +3,11 @@ it still exits with a non-zero value. Exit with zero if all is well. Signed-off-by: Al Stone -diff -Naur acpica-unix2-20190816/source/compiler/asloptions.c acpica-unix2-20190816.fix/source/compiler/asloptions.c ---- acpica-unix2-20190816/source/compiler/asloptions.c 2019-08-16 09:01:30.000000000 -0600 -+++ acpica-unix2-20190816.fix/source/compiler/asloptions.c 2019-10-29 15:52:40.987156555 -0600 -@@ -111,7 +111,7 @@ +Index: acpica-unix-20191018/source/compiler/asloptions.c +=================================================================== +--- acpica-unix-20191018.orig/source/compiler/asloptions.c ++++ acpica-unix-20191018/source/compiler/asloptions.c +@@ -111,7 +111,7 @@ AslCommandLine ( { exit (-1); } diff --git a/big-endian-dmtbdump.patch b/big-endian-dmtbdump.patch new file mode 100644 index 0000000..fed81c1 --- /dev/null +++ b/big-endian-dmtbdump.patch @@ -0,0 +1,162 @@ +Index: acpica-unix-20191018/source/common/dmtbdump.c +=================================================================== +--- acpica-unix-20191018.orig/source/common/dmtbdump.c ++++ acpica-unix-20191018/source/common/dmtbdump.c +@@ -277,6 +277,8 @@ AcpiDmDumpRsdt ( + UINT32 Entries; + UINT32 Offset; + UINT32 i; ++ UINT32 Length; ++ UINT32 Address; + + + /* Point to start of table pointer array */ +@@ -286,12 +288,14 @@ AcpiDmDumpRsdt ( + + /* RSDT uses 32-bit pointers */ + +- Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Entries = (Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32); + + for (i = 0; i < Entries; i++) + { + AcpiDmLineHeader2 (Offset, sizeof (UINT32), "ACPI Table Address", i); +- AcpiOsPrintf ("%8.8X\n", Array[i]); ++ ACPI_MOVE_32_TO_32(&Address, &Array[i]); ++ AcpiOsPrintf ("%8.8X\n", Address); + Offset += sizeof (UINT32); + } + } +@@ -317,6 +321,8 @@ AcpiDmDumpXsdt ( + UINT32 Entries; + UINT32 Offset; + UINT32 i; ++ UINT32 Length; ++ UINT64 Address; + + + /* Point to start of table pointer array */ +@@ -326,12 +332,14 @@ AcpiDmDumpXsdt ( + + /* XSDT uses 64-bit pointers */ + +- Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT64); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Entries = (Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT64); + + for (i = 0; i < Entries; i++) + { + AcpiDmLineHeader2 (Offset, sizeof (UINT64), "ACPI Table Address", i); +- AcpiOsPrintf ("%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Array[i])); ++ ACPI_MOVE_64_TO_64(&Address, &Array[i]); ++ AcpiOsPrintf ("%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Address)); + Offset += sizeof (UINT64); + } + } +@@ -358,12 +366,12 @@ AcpiDmDumpFadt ( + ACPI_TABLE_HEADER *Table) + { + ACPI_STATUS Status; +- ++ UINT32 Length; + + /* Always dump the minimum FADT revision 1 fields (ACPI 1.0) */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, +- AcpiDmTableInfoFadt1); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFadt1); + if (ACPI_FAILURE (Status)) + { + return; +@@ -371,11 +379,9 @@ AcpiDmDumpFadt ( + + /* Check for FADT revision 2 fields (ACPI 1.0B MS extensions) */ + +- if ((Table->Length > ACPI_FADT_V1_SIZE) && +- (Table->Length <= ACPI_FADT_V2_SIZE)) ++ if ((Length > ACPI_FADT_V1_SIZE) && (Length <= ACPI_FADT_V2_SIZE)) + { +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, +- AcpiDmTableInfoFadt2); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFadt2); + if (ACPI_FAILURE (Status)) + { + return; +@@ -384,10 +390,9 @@ AcpiDmDumpFadt ( + + /* Check for FADT revision 3/4 fields and up (ACPI 2.0+ extended data) */ + +- else if (Table->Length > ACPI_FADT_V2_SIZE) ++ else if (Length > ACPI_FADT_V2_SIZE) + { +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, +- AcpiDmTableInfoFadt3); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFadt3); + if (ACPI_FAILURE (Status)) + { + return; +@@ -395,9 +400,9 @@ AcpiDmDumpFadt ( + + /* Check for FADT revision 5 fields and up (ACPI 5.0+) */ + +- if (Table->Length > ACPI_FADT_V3_SIZE) ++ if (Length > ACPI_FADT_V3_SIZE) + { +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, + AcpiDmTableInfoFadt5); + if (ACPI_FAILURE (Status)) + { +@@ -407,9 +412,9 @@ AcpiDmDumpFadt ( + + /* Check for FADT revision 6 fields and up (ACPI 6.0+) */ + +- if (Table->Length > ACPI_FADT_V3_SIZE) ++ if (Length > ACPI_FADT_V3_SIZE) + { +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, + AcpiDmTableInfoFadt6); + if (ACPI_FAILURE (Status)) + { +@@ -420,11 +425,11 @@ AcpiDmDumpFadt ( + + /* Validate various fields in the FADT, including length */ + +- AcpiTbCreateLocalFadt (Table, Table->Length); ++ AcpiTbCreateLocalFadt (Table, Length); + + /* Validate FADT length against the revision */ + +- AcpiDmValidateFadtLength (Table->Revision, Table->Length); ++ AcpiDmValidateFadtLength (Table->Revision, Length); + } + + +@@ -450,6 +455,7 @@ AcpiDmValidateFadtLength ( + UINT32 Length) + { + UINT32 ExpectedLength; ++ UINT32 Tmp32; + + + switch (Revision) +@@ -485,7 +491,8 @@ AcpiDmValidateFadtLength ( + return; + } + +- if (Length == ExpectedLength) ++ ACPI_MOVE_32_TO_32(&Tmp32, &Length); ++ if (Tmp32 == ExpectedLength) + { + return; + } +@@ -493,5 +500,5 @@ AcpiDmValidateFadtLength ( + AcpiOsPrintf ( + "\n// ACPI Warning: FADT revision %X does not match length: " + "found %X expected %X\n", +- Revision, Length, ExpectedLength); ++ Revision, Tmp32, ExpectedLength); + } diff --git a/big-endian-dmtbdump1.patch b/big-endian-dmtbdump1.patch new file mode 100644 index 0000000..ba37c6f --- /dev/null +++ b/big-endian-dmtbdump1.patch @@ -0,0 +1,637 @@ +Index: acpica-unix-20191018/source/common/dmtbdump1.c +=================================================================== +--- acpica-unix-20191018.orig/source/common/dmtbdump1.c ++++ acpica-unix-20191018/source/common/dmtbdump1.c +@@ -79,17 +79,21 @@ AcpiDmDumpAsf ( + UINT32 DataOffset = 0; + UINT32 i; + UINT8 Type; ++ UINT32 Len; ++ UINT16 SubLen; + + + /* No main table, only subtables */ + ++ ACPI_MOVE_32_TO_32(&Len, &Table->Length); + Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Len) + { + /* Common subtable header */ + +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Subtable->Header.Length, AcpiDmTableInfoAsfHdr); ++ ACPI_MOVE_16_TO_16(&SubLen, &Subtable->Header.Length); ++ Status = AcpiDmDumpTable (Len, Offset, Subtable, ++ SubLen, AcpiDmTableInfoAsfHdr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -146,8 +150,7 @@ AcpiDmDumpAsf ( + return; + } + +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Subtable->Header.Length, InfoTable); ++ Status = AcpiDmDumpTable (Len, Offset, Subtable, SubLen, InfoTable); + if (ACPI_FAILURE (Status)) + { + return; +@@ -163,7 +166,7 @@ AcpiDmDumpAsf ( + for (i = 0; i < DataCount; i++) + { + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, DataOffset, ++ Status = AcpiDmDumpTable (Len, DataOffset, + DataTable, DataLength, DataInfoTable); + if (ACPI_FAILURE (Status)) + { +@@ -209,15 +212,14 @@ AcpiDmDumpAsf ( + + /* Point to next subtable */ + +- if (!Subtable->Header.Length) ++ if (!SubLen) + { + AcpiOsPrintf ("Invalid zero subtable header length\n"); + return; + } + +- Offset += Subtable->Header.Length; +- Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Subtable, +- Subtable->Header.Length); ++ Offset += SubLen; ++ Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Subtable, SubLen); + } + } + +@@ -241,12 +243,13 @@ AcpiDmDumpCpep ( + { + ACPI_STATUS Status; + ACPI_CPEP_POLLING *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_CPEP); + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoCpep); + if (ACPI_FAILURE (Status)) + { +@@ -256,7 +259,7 @@ AcpiDmDumpCpep ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_CPEP_POLLING, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + AcpiOsPrintf ("\n"); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +@@ -296,7 +299,10 @@ AcpiDmDumpCsrt ( + ACPI_CSRT_GROUP *Subtable; + ACPI_CSRT_SHARED_INFO *SharedInfoTable; + ACPI_CSRT_DESCRIPTOR *SubSubtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; ++ UINT32 SubLength; ++ UINT32 SubSubLength; ++ UINT32 SharedInfoLength; + UINT32 Offset = sizeof (ACPI_TABLE_CSRT); + UINT32 SubOffset; + UINT32 SubSubOffset; +@@ -307,14 +313,16 @@ AcpiDmDumpCsrt ( + + /* Subtables (Resource Groups) */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Resource group subtable */ + + AcpiOsPrintf ("\n"); ++ ACPI_MOVE_32_TO_32(&SubLength, &Subtable->Length); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +- Subtable->Length, AcpiDmTableInfoCsrt0); ++ SubLength, AcpiDmTableInfoCsrt0); + if (ACPI_FAILURE (Status)) + { + return; +@@ -334,19 +342,20 @@ AcpiDmDumpCsrt ( + return; + } + +- SubOffset += Subtable->SharedInfoLength; ++ ACPI_MOVE_32_TO_32(&SharedInfoLength, &Subtable->SharedInfoLength); ++ SubOffset += SharedInfoLength; + + /* Sub-Subtables (Resource Descriptors) */ + + SubSubtable = ACPI_ADD_PTR (ACPI_CSRT_DESCRIPTOR, Table, + Offset + SubOffset); + +- while ((SubOffset < Subtable->Length) && +- ((Offset + SubOffset) < Table->Length)) ++ while ((SubOffset < SubLength) && ((Offset + SubOffset) < Length)) + { + AcpiOsPrintf ("\n"); ++ ACPI_MOVE_32_TO_32(&SubSubLength, &SubSubtable->Length); + Status = AcpiDmDumpTable (Length, Offset + SubOffset, SubSubtable, +- SubSubtable->Length, AcpiDmTableInfoCsrt2); ++ SubSubLength, AcpiDmTableInfoCsrt2); + if (ACPI_FAILURE (Status)) + { + return; +@@ -356,7 +365,7 @@ AcpiDmDumpCsrt ( + + /* Resource-specific info buffer */ + +- InfoLength = SubSubtable->Length - SubSubOffset; ++ InfoLength = SubSubLength - SubSubOffset; + if (InfoLength) + { + Status = AcpiDmDumpTable (Length, +@@ -370,16 +379,15 @@ AcpiDmDumpCsrt ( + + /* Point to next sub-subtable */ + +- SubOffset += SubSubtable->Length; ++ SubOffset += SubSubLength; + SubSubtable = ACPI_ADD_PTR (ACPI_CSRT_DESCRIPTOR, SubSubtable, +- SubSubtable->Length); ++ SubSubLength); + } + + /* Point to next subtable */ + +- Offset += Subtable->Length; +- Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Subtable, +- Subtable->Length); ++ Offset += SubLength; ++ Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Subtable, SubLength); + } + } + +@@ -403,16 +411,20 @@ AcpiDmDumpDbg2 ( + { + ACPI_STATUS Status; + ACPI_DBG2_DEVICE *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; ++ UINT16 SubLength; + UINT32 Offset = sizeof (ACPI_TABLE_DBG2); + UINT32 i; + UINT32 ArrayOffset; + UINT32 AbsoluteOffset; + UINT8 *Array; ++ UINT16 Tmp16; ++ UINT16 AlsoTmp16; + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDbg2); + if (ACPI_FAILURE (Status)) + { +@@ -422,11 +434,12 @@ AcpiDmDumpDbg2 ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_DBG2_DEVICE, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + AcpiOsPrintf ("\n"); ++ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +- Subtable->Length, AcpiDmTableInfoDbg2Device); ++ SubLength, AcpiDmTableInfoDbg2Device); + if (ACPI_FAILURE (Status)) + { + return; +@@ -436,13 +449,13 @@ AcpiDmDumpDbg2 ( + + for (i = 0; i < Subtable->RegisterCount; i++) + { +- ArrayOffset = Subtable->BaseAddressOffset + +- (sizeof (ACPI_GENERIC_ADDRESS) * i); ++ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->BaseAddressOffset); ++ ArrayOffset = Tmp16 + (sizeof (ACPI_GENERIC_ADDRESS) * i); + AbsoluteOffset = Offset + ArrayOffset; + Array = (UINT8 *) Subtable + ArrayOffset; + + Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, +- Subtable->Length, AcpiDmTableInfoDbg2Addr); ++ SubLength, AcpiDmTableInfoDbg2Addr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -453,13 +466,13 @@ AcpiDmDumpDbg2 ( + + for (i = 0; i < Subtable->RegisterCount; i++) + { +- ArrayOffset = Subtable->AddressSizeOffset + +- (sizeof (UINT32) * i); ++ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->AddressSizeOffset); ++ ArrayOffset = Tmp16 + (sizeof (UINT32) * i); + AbsoluteOffset = Offset + ArrayOffset; + Array = (UINT8 *) Subtable + ArrayOffset; + + Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, +- Subtable->Length, AcpiDmTableInfoDbg2Size); ++ SubLength, AcpiDmTableInfoDbg2Size); + if (ACPI_FAILURE (Status)) + { + return; +@@ -469,12 +482,13 @@ AcpiDmDumpDbg2 ( + /* Dump the Namestring (required) */ + + AcpiOsPrintf ("\n"); +- ArrayOffset = Subtable->NamepathOffset; ++ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->NamepathOffset); ++ ArrayOffset = Tmp16; + AbsoluteOffset = Offset + ArrayOffset; + Array = (UINT8 *) Subtable + ArrayOffset; + + Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, +- Subtable->Length, AcpiDmTableInfoDbg2Name); ++ SubLength, AcpiDmTableInfoDbg2Name); + if (ACPI_FAILURE (Status)) + { + return; +@@ -484,9 +498,10 @@ AcpiDmDumpDbg2 ( + + if (Subtable->OemDataOffset) + { +- Status = AcpiDmDumpTable (Length, Offset + Subtable->OemDataOffset, +- Table, Subtable->OemDataLength, +- AcpiDmTableInfoDbg2OemData); ++ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->OemDataOffset); ++ ACPI_MOVE_16_TO_16(&AlsoTmp16, &Subtable->OemDataLength); ++ Status = AcpiDmDumpTable (Length, Offset + Tmp16, ++ Table, AlsoTmp16, AcpiDmTableInfoDbg2OemData); + if (ACPI_FAILURE (Status)) + { + return; +@@ -495,9 +510,9 @@ AcpiDmDumpDbg2 ( + + /* Point to next subtable */ + +- Offset += Subtable->Length; ++ Offset += SubLength; + Subtable = ACPI_ADD_PTR (ACPI_DBG2_DEVICE, Subtable, +- Subtable->Length); ++ SubLength); + } + } + +@@ -521,17 +536,20 @@ AcpiDmDumpDmar ( + { + ACPI_STATUS Status; + ACPI_DMAR_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; ++ UINT16 SubLength; + UINT32 Offset = sizeof (ACPI_TABLE_DMAR); + ACPI_DMTABLE_INFO *InfoTable; + ACPI_DMAR_DEVICE_SCOPE *ScopeTable; + UINT32 ScopeOffset; + UINT8 *PciPath; + UINT32 PathOffset; ++ UINT16 SubType; + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDmar); + if (ACPI_FAILURE (Status)) + { +@@ -541,13 +559,14 @@ AcpiDmDumpDmar ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); ++ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +- Subtable->Length, AcpiDmTableInfoDmarHdr); ++ SubLength, AcpiDmTableInfoDmarHdr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -555,7 +574,8 @@ AcpiDmDumpDmar ( + + AcpiOsPrintf ("\n"); + +- switch (Subtable->Type) ++ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); ++ switch (SubType) + { + case ACPI_DMAR_TYPE_HARDWARE_UNIT: + +@@ -590,12 +610,12 @@ AcpiDmDumpDmar ( + default: + + AcpiOsPrintf ("\n**** Unknown DMAR subtable type 0x%X\n\n", +- Subtable->Type); ++ SubType); + return; + } + + Status = AcpiDmDumpTable (Length, Offset, Subtable, +- Subtable->Length, InfoTable); ++ SubLength, InfoTable); + if (ACPI_FAILURE (Status)) + { + return; +@@ -604,8 +624,8 @@ AcpiDmDumpDmar ( + /* + * Dump the optional device scope entries + */ +- if ((Subtable->Type == ACPI_DMAR_TYPE_HARDWARE_AFFINITY) || +- (Subtable->Type == ACPI_DMAR_TYPE_NAMESPACE)) ++ if ((SubType == ACPI_DMAR_TYPE_HARDWARE_AFFINITY) || ++ (SubType == ACPI_DMAR_TYPE_NAMESPACE)) + { + /* These types do not support device scopes */ + +@@ -613,7 +633,7 @@ AcpiDmDumpDmar ( + } + + ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE, Subtable, ScopeOffset); +- while (ScopeOffset < Subtable->Length) ++ while (ScopeOffset < SubLength) + { + AcpiOsPrintf ("\n"); + Status = AcpiDmDumpTable (Length, Offset + ScopeOffset, ScopeTable, +@@ -654,9 +674,8 @@ AcpiDmDumpDmar ( + NextSubtable: + /* Point to next subtable */ + +- Offset += Subtable->Length; +- Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Subtable, +- Subtable->Length); ++ Offset += SubLength; ++ Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Subtable, SubLength); + } + } + +@@ -683,12 +702,15 @@ AcpiDmDumpDrtm ( + ACPI_DRTM_RESOURCE_LIST *DrtmRl; + ACPI_DRTM_DPS_ID *DrtmDps; + UINT32 Count; ++ UINT32 ValidatedCount; ++ UINT32 ResourceCount; ++ UINT32 Length; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, +- AcpiDmTableInfoDrtm); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDrtm); + if (ACPI_FAILURE (Status)) + { + return; +@@ -702,7 +724,7 @@ AcpiDmDumpDrtm ( + + DrtmVtl = ACPI_ADD_PTR (ACPI_DRTM_VTABLE_LIST, Table, Offset); + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, ++ Status = AcpiDmDumpTable (Length, Offset, + DrtmVtl, ACPI_OFFSET (ACPI_DRTM_VTABLE_LIST, ValidatedTables), + AcpiDmTableInfoDrtm0); + if (ACPI_FAILURE (Status)) +@@ -715,10 +737,11 @@ AcpiDmDumpDrtm ( + /* Dump Validated table addresses */ + + Count = 0; +- while ((Offset < Table->Length) && +- (DrtmVtl->ValidatedTableCount > Count)) ++ ACPI_MOVE_32_TO_32(&ValidatedCount, &DrtmVtl->ValidatedTableCount); ++ while ((Offset < Length) && ++ (ValidatedCount > Count)) + { +- Status = AcpiDmDumpTable (Table->Length, Offset, ++ Status = AcpiDmDumpTable (Length, Offset, + ACPI_ADD_PTR (void, Table, Offset), sizeof (UINT64), + AcpiDmTableInfoDrtm0a); + if (ACPI_FAILURE (Status)) +@@ -734,7 +757,7 @@ AcpiDmDumpDrtm ( + + DrtmRl = ACPI_ADD_PTR (ACPI_DRTM_RESOURCE_LIST, Table, Offset); + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, ++ Status = AcpiDmDumpTable (Length, Offset, + DrtmRl, ACPI_OFFSET (ACPI_DRTM_RESOURCE_LIST, Resources), + AcpiDmTableInfoDrtm1); + if (ACPI_FAILURE (Status)) +@@ -747,10 +770,11 @@ AcpiDmDumpDrtm ( + /* Dump the Resource List */ + + Count = 0; +- while ((Offset < Table->Length) && +- (DrtmRl->ResourceCount > Count)) ++ ACPI_MOVE_32_TO_32(&ResourceCount, &DrtmRl->ResourceCount); ++ while ((Offset < Length) && ++ (ResourceCount > Count)) + { +- Status = AcpiDmDumpTable (Table->Length, Offset, ++ Status = AcpiDmDumpTable (Length, Offset, + ACPI_ADD_PTR (void, Table, Offset), + sizeof (ACPI_DRTM_RESOURCE), AcpiDmTableInfoDrtm1a); + if (ACPI_FAILURE (Status)) +@@ -766,7 +790,7 @@ AcpiDmDumpDrtm ( + + DrtmDps = ACPI_ADD_PTR (ACPI_DRTM_DPS_ID, Table, Offset); + AcpiOsPrintf ("\n"); +- (void) AcpiDmDumpTable (Table->Length, Offset, ++ (void) AcpiDmDumpTable (Length, Offset, + DrtmDps, sizeof (ACPI_DRTM_DPS_ID), AcpiDmTableInfoDrtm2); + } + +@@ -790,12 +814,13 @@ AcpiDmDumpEinj ( + { + ACPI_STATUS Status; + ACPI_WHEA_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_EINJ); + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoEinj); + if (ACPI_FAILURE (Status)) + { +@@ -805,7 +830,7 @@ AcpiDmDumpEinj ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + AcpiOsPrintf ("\n"); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +@@ -843,12 +868,13 @@ AcpiDmDumpErst ( + { + ACPI_STATUS Status; + ACPI_WHEA_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_ERST); + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoErst); + if (ACPI_FAILURE (Status)) + { +@@ -858,7 +884,7 @@ AcpiDmDumpErst ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + AcpiOsPrintf ("\n"); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +@@ -896,17 +922,19 @@ AcpiDmDumpFpdt ( + { + ACPI_STATUS Status; + ACPI_FPDT_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_FPDT); + ACPI_DMTABLE_INFO *InfoTable; ++ UINT16 Type; + + + /* There is no main table (other than the standard ACPI header) */ + + /* Subtables */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + +@@ -918,7 +946,8 @@ AcpiDmDumpFpdt ( + return; + } + +- switch (Subtable->Type) ++ ACPI_MOVE_16_TO_16(&Type, &Subtable->Type); ++ switch (Type) + { + case ACPI_FPDT_TYPE_BOOT: + +@@ -932,8 +961,7 @@ AcpiDmDumpFpdt ( + + default: + +- AcpiOsPrintf ("\n**** Unknown FPDT subtable type 0x%X\n\n", +- Subtable->Type); ++ AcpiOsPrintf ("\n**** Unknown FPDT subtable type 0x%X\n\n", Type); + + /* Attempt to continue */ + +@@ -981,16 +1009,19 @@ AcpiDmDumpGtdt ( + { + ACPI_STATUS Status; + ACPI_GTDT_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; ++ UINT16 SubLength; + UINT32 Offset = sizeof (ACPI_TABLE_GTDT); + ACPI_DMTABLE_INFO *InfoTable; + UINT32 SubtableLength; + UINT32 GtCount; ++ UINT32 Tmp32; + ACPI_GTDT_TIMER_ENTRY *GtxTable; + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoGtdt); + if (ACPI_FAILURE (Status)) + { +@@ -1017,7 +1048,7 @@ AcpiDmDumpGtdt ( + + /* Subtables */ + +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + +@@ -1035,8 +1066,9 @@ AcpiDmDumpGtdt ( + case ACPI_GTDT_TYPE_TIMER_BLOCK: + + SubtableLength = sizeof (ACPI_GTDT_TIMER_BLOCK); +- GtCount = (ACPI_CAST_PTR (ACPI_GTDT_TIMER_BLOCK, ++ Tmp32 = (ACPI_CAST_PTR (ACPI_GTDT_TIMER_BLOCK, + Subtable))->TimerCount; ++ ACPI_MOVE_32_TO_32(&GtCount, &Tmp32); + + InfoTable = AcpiDmTableInfoGtdt0; + break; +@@ -1057,8 +1089,9 @@ AcpiDmDumpGtdt ( + return; + } + ++ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +- Subtable->Length, InfoTable); ++ SubLength, InfoTable); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1117,16 +1150,18 @@ AcpiDmDumpHest ( + { + ACPI_STATUS Status; + ACPI_HEST_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_HEST); + ACPI_DMTABLE_INFO *InfoTable; + UINT32 SubtableLength; + UINT32 BankCount; + ACPI_HEST_IA_ERROR_BANK *BankTable; ++ UINT16 SubType; + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHest); + if (ACPI_FAILURE (Status)) + { +@@ -1136,10 +1171,11 @@ AcpiDmDumpHest ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_HEST_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + BankCount = 0; +- switch (Subtable->Type) ++ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); ++ switch (SubType) + { + case ACPI_HEST_TYPE_IA32_CHECK: + diff --git a/big-endian-dmtbdump2.patch b/big-endian-dmtbdump2.patch new file mode 100644 index 0000000..381da29 --- /dev/null +++ b/big-endian-dmtbdump2.patch @@ -0,0 +1,887 @@ +Index: acpica-unix-20191018/source/common/dmtbdump2.c +=================================================================== +--- acpica-unix-20191018.orig/source/common/dmtbdump2.c ++++ acpica-unix-20191018/source/common/dmtbdump2.c +@@ -75,16 +75,23 @@ AcpiDmDumpIort ( + ACPI_IORT_SMMU *IortSmmu = NULL; + UINT32 Offset; + UINT32 NodeOffset; ++ UINT16 NodeLength; + UINT32 Length; + ACPI_DMTABLE_INFO *InfoTable; + char *String; + UINT32 i; + UINT32 MappingByteLength; ++ UINT32 TableLen; ++ UINT32 ItsCount; ++ UINT32 MappingCount; ++ UINT32 CtxIntCount; ++ UINT32 PmuIntCount; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIort); ++ ACPI_MOVE_32_TO_32(&TableLen, &Table->Length); ++ Status = AcpiDmDumpTable (TableLen, 0, Table, 0, AcpiDmTableInfoIort); + if (ACPI_FAILURE (Status)) + { + return; +@@ -95,18 +102,19 @@ AcpiDmDumpIort ( + + /* Dump the OptionalPadding (optional) */ + +- if (Iort->NodeOffset > Offset) ++ ACPI_MOVE_32_TO_32(&NodeOffset, &Iort->NodeOffset); ++ if (NodeOffset > Offset) + { +- Status = AcpiDmDumpTable (Table->Length, Offset, Table, +- Iort->NodeOffset - Offset, AcpiDmTableInfoIortPad); ++ Status = AcpiDmDumpTable (TableLen, Offset, Table, ++ NodeOffset - Offset, AcpiDmTableInfoIortPad); + if (ACPI_FAILURE (Status)) + { + return; + } + } + +- Offset = Iort->NodeOffset; +- while (Offset < Table->Length) ++ ACPI_MOVE_32_TO_32(&Offset, &Iort->NodeOffset); ++ while (Offset < TableLen) + { + /* Common subtable header */ + +@@ -142,7 +150,8 @@ AcpiDmDumpIort ( + case ACPI_IORT_NODE_PCI_ROOT_COMPLEX: + + InfoTable = AcpiDmTableInfoIort2; +- Length = IortNode->Length - NodeOffset; ++ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); ++ Length = NodeLength - NodeOffset; + break; + + case ACPI_IORT_NODE_SMMU: +@@ -155,7 +164,8 @@ AcpiDmDumpIort ( + case ACPI_IORT_NODE_SMMU_V3: + + InfoTable = AcpiDmTableInfoIort4; +- Length = IortNode->Length - NodeOffset; ++ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); ++ Length = NodeLength - NodeOffset; + break; + + case ACPI_IORT_NODE_PMCG: +@@ -171,7 +181,8 @@ AcpiDmDumpIort ( + + /* Attempt to continue */ + +- if (!IortNode->Length) ++ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); ++ if (!NodeLength) + { + AcpiOsPrintf ("Invalid zero length IORT node\n"); + return; +@@ -182,7 +193,7 @@ AcpiDmDumpIort ( + /* Dump the node subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ++ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, + ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), + Length, InfoTable); + if (ACPI_FAILURE (Status)) +@@ -202,9 +213,10 @@ AcpiDmDumpIort ( + + if (IortItsGroup) + { +- for (i = 0; i < IortItsGroup->ItsCount; i++) ++ ACPI_MOVE_32_TO_32(&ItsCount, &IortItsGroup->ItsCount); ++ for (i = 0; i < ItsCount; i++) + { +- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ++ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, + ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), + 4, AcpiDmTableInfoIort0a); + if (ACPI_FAILURE (Status)) +@@ -221,12 +233,13 @@ AcpiDmDumpIort ( + + /* Dump the Padding (optional) */ + +- if (IortNode->Length > NodeOffset) ++ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); ++ if (NodeLength > NodeOffset) + { + MappingByteLength = + IortNode->MappingCount * sizeof (ACPI_IORT_ID_MAPPING); +- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, +- Table, IortNode->Length - NodeOffset - MappingByteLength, ++ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, ++ Table, NodeLength - NodeOffset - MappingByteLength, + AcpiDmTableInfoIort1a); + if (ACPI_FAILURE (Status)) + { +@@ -244,8 +257,8 @@ AcpiDmDumpIort ( + if (IortSmmu) + { + Length = 2 * sizeof (UINT64); +- NodeOffset = IortSmmu->GlobalInterruptOffset; +- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ++ ACPI_MOVE_32_TO_32(&NodeOffset, &IortSmmu->GlobalInterruptOffset); ++ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, + ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), + Length, AcpiDmTableInfoIort3a); + if (ACPI_FAILURE (Status)) +@@ -253,10 +266,11 @@ AcpiDmDumpIort ( + return; + } + +- NodeOffset = IortSmmu->ContextInterruptOffset; +- for (i = 0; i < IortSmmu->ContextInterruptCount; i++) ++ ACPI_MOVE_32_TO_32(&NodeOffset, &IortSmmu->ContextInterruptOffset); ++ ACPI_MOVE_32_TO_32(&CtxIntCount, &IortSmmu->ContextInterruptCount); ++ for (i = 0; i < CtxIntCount; i++) + { +- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ++ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, + ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), + 8, AcpiDmTableInfoIort3b); + if (ACPI_FAILURE (Status)) +@@ -267,10 +281,11 @@ AcpiDmDumpIort ( + NodeOffset += 8; + } + +- NodeOffset = IortSmmu->PmuInterruptOffset; +- for (i = 0; i < IortSmmu->PmuInterruptCount; i++) ++ ACPI_MOVE_32_TO_32(&NodeOffset, &IortSmmu->PmuInterruptOffset); ++ ACPI_MOVE_32_TO_32(&PmuIntCount, &IortSmmu->PmuInterruptCount); ++ for (i = 0; i < PmuIntCount; i++) + { +- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ++ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, + ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), + 8, AcpiDmTableInfoIort3c); + if (ACPI_FAILURE (Status)) +@@ -290,12 +305,13 @@ AcpiDmDumpIort ( + + /* Dump the ID mappings */ + +- NodeOffset = IortNode->MappingOffset; +- for (i = 0; i < IortNode->MappingCount; i++) ++ ACPI_MOVE_32_TO_32(&NodeOffset, &IortNode->MappingOffset); ++ ACPI_MOVE_32_TO_32(&MappingCount, &IortNode->MappingCount); ++ for (i = 0; i < MappingCount; i++) + { + AcpiOsPrintf ("\n"); + Length = sizeof (ACPI_IORT_ID_MAPPING); +- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ++ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, + ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), + Length, AcpiDmTableInfoIortMap); + if (ACPI_FAILURE (Status)) +@@ -309,7 +325,8 @@ AcpiDmDumpIort ( + NextSubtable: + /* Point to next node subtable */ + +- Offset += IortNode->Length; ++ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); ++ Offset += NodeLength; + } + } + +@@ -340,11 +357,14 @@ AcpiDmDumpIvrs ( + ACPI_IVRS_DE_HEADER *DeviceEntry; + ACPI_IVRS_HEADER *Subtable; + ACPI_DMTABLE_INFO *InfoTable; ++ UINT32 Length; ++ UINT16 SubLength; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIvrs); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoIvrs); + if (ACPI_FAILURE (Status)) + { + return; +@@ -353,13 +373,14 @@ AcpiDmDumpIvrs ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Subtable->Length, AcpiDmTableInfoIvrsHdr); ++ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, ++ SubLength, AcpiDmTableInfoIvrsHdr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -386,7 +407,7 @@ AcpiDmDumpIvrs ( + + /* Attempt to continue */ + +- if (!Subtable->Length) ++ if (!SubLength) + { + AcpiOsPrintf ("Invalid zero length subtable\n"); + return; +@@ -397,8 +418,8 @@ AcpiDmDumpIvrs ( + /* Dump the subtable */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Subtable->Length, InfoTable); ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, ++ SubLength, InfoTable); + if (ACPI_FAILURE (Status)) + { + return; +@@ -412,7 +433,7 @@ AcpiDmDumpIvrs ( + DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, + sizeof (ACPI_IVRS_HARDWARE)); + +- while (EntryOffset < (Offset + Subtable->Length)) ++ while (EntryOffset < (Offset + SubLength)) + { + AcpiOsPrintf ("\n"); + /* +@@ -474,7 +495,7 @@ AcpiDmDumpIvrs ( + + /* Dump the Device Entry */ + +- Status = AcpiDmDumpTable (Table->Length, EntryOffset, ++ Status = AcpiDmDumpTable (Length, EntryOffset, + DeviceEntry, EntryLength, InfoTable); + if (ACPI_FAILURE (Status)) + { +@@ -490,8 +511,8 @@ AcpiDmDumpIvrs ( + NextSubtable: + /* Point to next subtable */ + +- Offset += Subtable->Length; +- Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Subtable, Subtable->Length); ++ Offset += SubLength; ++ Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Subtable, SubLength); + } + } + +@@ -517,7 +538,7 @@ AcpiDmDumpLpit ( + { + ACPI_STATUS Status; + ACPI_LPIT_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_LPIT); + ACPI_DMTABLE_INFO *InfoTable; + UINT32 SubtableLength; +@@ -525,8 +546,9 @@ AcpiDmDumpLpit ( + + /* Subtables */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Subtable = ACPI_ADD_PTR (ACPI_LPIT_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + +@@ -590,13 +612,14 @@ AcpiDmDumpMadt ( + { + ACPI_STATUS Status; + ACPI_SUBTABLE_HEADER *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_MADT); + ACPI_DMTABLE_INFO *InfoTable; + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt); + if (ACPI_FAILURE (Status)) + { +@@ -606,7 +629,7 @@ AcpiDmDumpMadt ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + +@@ -752,11 +775,13 @@ AcpiDmDumpMcfg ( + ACPI_STATUS Status; + UINT32 Offset = sizeof (ACPI_TABLE_MCFG); + ACPI_MCFG_ALLOCATION *Subtable; ++ UINT32 Len; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMcfg); ++ ACPI_MOVE_32_TO_32(&Len, &Table->Length); ++ Status = AcpiDmDumpTable (Len, 0, Table, 0, AcpiDmTableInfoMcfg); + if (ACPI_FAILURE (Status)) + { + return; +@@ -765,17 +790,17 @@ AcpiDmDumpMcfg ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_MCFG_ALLOCATION, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Len) + { +- if (Offset + sizeof (ACPI_MCFG_ALLOCATION) > Table->Length) ++ if (Offset + sizeof (ACPI_MCFG_ALLOCATION) > Len) + { + AcpiOsPrintf ("Warning: there are %u invalid trailing bytes\n", +- (UINT32) sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Table->Length)); ++ (UINT32) sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Len)); + return; + } + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Len, Offset, Subtable, + sizeof (ACPI_MCFG_ALLOCATION), AcpiDmTableInfoMcfg0); + if (ACPI_FAILURE (Status)) + { +@@ -809,6 +834,7 @@ AcpiDmDumpMpst ( + { + ACPI_STATUS Status; + UINT32 Offset = sizeof (ACPI_TABLE_MPST); ++ ACPI_TABLE_MPST *Mpst; + ACPI_MPST_POWER_NODE *Subtable0; + ACPI_MPST_POWER_STATE *Subtable0A; + ACPI_MPST_COMPONENT *Subtable0B; +@@ -817,11 +843,13 @@ AcpiDmDumpMpst ( + UINT16 SubtableCount; + UINT32 PowerStateCount; + UINT32 ComponentCount; ++ UINT32 Length; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMpst); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMpst); + if (ACPI_FAILURE (Status)) + { + return; +@@ -829,13 +857,14 @@ AcpiDmDumpMpst ( + + /* Subtable: Memory Power Node(s) */ + +- SubtableCount = (ACPI_CAST_PTR (ACPI_TABLE_MPST, Table))->PowerNodeCount; ++ Mpst = ACPI_CAST_PTR (ACPI_TABLE_MPST, Table); ++ ACPI_MOVE_16_TO_16(&SubtableCount, &Mpst->PowerNodeCount); + Subtable0 = ACPI_ADD_PTR (ACPI_MPST_POWER_NODE, Table, Offset); + +- while ((Offset < Table->Length) && SubtableCount) ++ while ((Offset < Length) && SubtableCount) + { + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable0, + sizeof (ACPI_MPST_POWER_NODE), AcpiDmTableInfoMpst0); + if (ACPI_FAILURE (Status)) + { +@@ -844,8 +873,8 @@ AcpiDmDumpMpst ( + + /* Extract the sub-subtable counts */ + +- PowerStateCount = Subtable0->NumPowerStates; +- ComponentCount = Subtable0->NumPhysicalComponents; ++ ACPI_MOVE_32_TO_32(&PowerStateCount, &Subtable0->NumPowerStates); ++ ACPI_MOVE_32_TO_32(&ComponentCount, &Subtable0->NumPhysicalComponents); + Offset += sizeof (ACPI_MPST_POWER_NODE); + + /* Sub-subtables - Memory Power State Structure(s) */ +@@ -856,7 +885,7 @@ AcpiDmDumpMpst ( + while (PowerStateCount) + { + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0A, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable0A, + sizeof (ACPI_MPST_POWER_STATE), AcpiDmTableInfoMpst0A); + if (ACPI_FAILURE (Status)) + { +@@ -866,7 +895,7 @@ AcpiDmDumpMpst ( + Subtable0A++; + PowerStateCount--; + Offset += sizeof (ACPI_MPST_POWER_STATE); +- } ++ } + + /* Sub-subtables - Physical Component ID Structure(s) */ + +@@ -879,7 +908,7 @@ AcpiDmDumpMpst ( + + while (ComponentCount) + { +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0B, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable0B, + sizeof (ACPI_MPST_COMPONENT), AcpiDmTableInfoMpst0B); + if (ACPI_FAILURE (Status)) + { +@@ -894,17 +923,19 @@ AcpiDmDumpMpst ( + /* Point to next Memory Power Node subtable */ + + SubtableCount--; ++ ACPI_MOVE_32_TO_32(&PowerStateCount, &Subtable0->NumPowerStates); ++ ACPI_MOVE_32_TO_32(&ComponentCount, &Subtable0->NumPhysicalComponents); + Subtable0 = ACPI_ADD_PTR (ACPI_MPST_POWER_NODE, Subtable0, + sizeof (ACPI_MPST_POWER_NODE) + +- (sizeof (ACPI_MPST_POWER_STATE) * Subtable0->NumPowerStates) + +- (sizeof (ACPI_MPST_COMPONENT) * Subtable0->NumPhysicalComponents)); ++ (sizeof (ACPI_MPST_POWER_STATE) * PowerStateCount) + ++ (sizeof (ACPI_MPST_COMPONENT) * ComponentCount)); + } + + /* Subtable: Count of Memory Power State Characteristic structures */ + + AcpiOsPrintf ("\n"); + Subtable1 = ACPI_CAST_PTR (ACPI_MPST_DATA_HDR, Subtable0); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable1, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable1, + sizeof (ACPI_MPST_DATA_HDR), AcpiDmTableInfoMpst1); + if (ACPI_FAILURE (Status)) + { +@@ -919,10 +950,10 @@ AcpiDmDumpMpst ( + Subtable2 = ACPI_ADD_PTR (ACPI_MPST_POWER_DATA, Subtable1, + sizeof (ACPI_MPST_DATA_HDR)); + +- while ((Offset < Table->Length) && SubtableCount) ++ while ((Offset < Length) && SubtableCount) + { + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable2, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable2, + sizeof (ACPI_MPST_POWER_DATA), AcpiDmTableInfoMpst2); + if (ACPI_FAILURE (Status)) + { +@@ -955,11 +986,13 @@ AcpiDmDumpMsct ( + ACPI_STATUS Status; + UINT32 Offset = sizeof (ACPI_TABLE_MSCT); + ACPI_MSCT_PROXIMITY *Subtable; ++ UINT32 Length; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMsct); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMsct); + if (ACPI_FAILURE (Status)) + { + return; +@@ -968,12 +1001,12 @@ AcpiDmDumpMsct ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + sizeof (ACPI_MSCT_PROXIMITY), AcpiDmTableInfoMsct0); + if (ACPI_FAILURE (Status)) + { +@@ -1008,11 +1041,13 @@ AcpiDmDumpMtmr ( + ACPI_STATUS Status; + UINT32 Offset = sizeof (ACPI_TABLE_MTMR); + ACPI_MTMR_ENTRY *Subtable; ++ UINT32 Length; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMtmr); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMtmr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1021,12 +1056,12 @@ AcpiDmDumpMtmr ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_MTMR_ENTRY, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + sizeof (ACPI_MTMR_ENTRY), AcpiDmTableInfoMtmr0); + if (ACPI_FAILURE (Status)) + { +@@ -1068,11 +1103,17 @@ AcpiDmDumpNfit ( + ACPI_NFIT_SMBIOS *SmbiosInfo = NULL; + ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; + UINT32 i; ++ UINT32 TableLength; ++ UINT16 SubLength; ++ UINT16 SubType; ++ UINT32 Count; ++ UINT16 Count16; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoNfit); ++ ACPI_MOVE_32_TO_32(&TableLength, &Table->Length); ++ Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoNfit); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1081,19 +1122,21 @@ AcpiDmDumpNfit ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < TableLength) + { + /* NFIT subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Subtable->Length, AcpiDmTableInfoNfitHdr); ++ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); ++ Status = AcpiDmDumpTable (TableLength, Offset, Subtable, ++ SubLength, AcpiDmTableInfoNfitHdr); + if (ACPI_FAILURE (Status)) + { + return; + } + +- switch (Subtable->Type) ++ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); ++ switch (SubType) + { + case ACPI_NFIT_TYPE_SYSTEM_ADDRESS: + +@@ -1148,7 +1191,7 @@ AcpiDmDumpNfit ( + + /* Attempt to continue */ + +- if (!Subtable->Length) ++ if (!SubLength) + { + AcpiOsPrintf ("Invalid zero length subtable\n"); + return; +@@ -1157,8 +1200,8 @@ AcpiDmDumpNfit ( + } + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Subtable->Length, InfoTable); ++ Status = AcpiDmDumpTable (TableLength, Offset, Subtable, ++ SubLength, InfoTable); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1166,14 +1209,15 @@ AcpiDmDumpNfit ( + + /* Per-subtable variable-length fields */ + +- switch (Subtable->Type) ++ switch (SubType) + { + case ACPI_NFIT_TYPE_INTERLEAVE: + + Interleave = ACPI_CAST_PTR (ACPI_NFIT_INTERLEAVE, Subtable); +- for (i = 0; i < Interleave->LineCount; i++) ++ ACPI_MOVE_32_TO_32(&Count, &Interleave->LineCount); ++ for (i = 0; i < Count; i++) + { +- Status = AcpiDmDumpTable (Table->Length, Offset + FieldOffset, ++ Status = AcpiDmDumpTable (TableLength, Offset + FieldOffset, + &Interleave->LineOffset[i], + sizeof (UINT32), AcpiDmTableInfoNfit2a); + if (ACPI_FAILURE (Status)) +@@ -1187,12 +1231,11 @@ AcpiDmDumpNfit ( + + case ACPI_NFIT_TYPE_SMBIOS: + +- Length = Subtable->Length - +- sizeof (ACPI_NFIT_SMBIOS) + sizeof (UINT8); ++ Length = SubLength - sizeof (ACPI_NFIT_SMBIOS) + sizeof (UINT8); + + if (Length) + { +- Status = AcpiDmDumpTable (Table->Length, ++ Status = AcpiDmDumpTable (TableLength, + sizeof (ACPI_NFIT_SMBIOS) - sizeof (UINT8), + SmbiosInfo, + Length, AcpiDmTableInfoNfit3a); +@@ -1207,9 +1250,10 @@ AcpiDmDumpNfit ( + case ACPI_NFIT_TYPE_FLUSH_ADDRESS: + + Hint = ACPI_CAST_PTR (ACPI_NFIT_FLUSH_ADDRESS, Subtable); +- for (i = 0; i < Hint->HintCount; i++) ++ ACPI_MOVE_16_TO_16(&Count16, &Hint->HintCount); ++ for (i = 0; i < Count16; i++) + { +- Status = AcpiDmDumpTable (Table->Length, Offset + FieldOffset, ++ Status = AcpiDmDumpTable (TableLength, Offset + FieldOffset, + &Hint->HintAddress[i], + sizeof (UINT64), AcpiDmTableInfoNfit6a); + if (ACPI_FAILURE (Status)) +@@ -1228,8 +1272,8 @@ AcpiDmDumpNfit ( + NextSubtable: + /* Point to next subtable */ + +- Offset += Subtable->Length; +- Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Subtable, Subtable->Length); ++ Offset += SubLength; ++ Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Subtable, SubLength); + } + } + +@@ -1254,12 +1298,13 @@ AcpiDmDumpPcct ( + ACPI_STATUS Status; + ACPI_PCCT_SUBSPACE *Subtable; + ACPI_DMTABLE_INFO *InfoTable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_PCCT); + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPcct); + if (ACPI_FAILURE (Status)) + { +@@ -1269,7 +1314,7 @@ AcpiDmDumpPcct ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_PCCT_SUBSPACE, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + +@@ -1409,16 +1454,21 @@ AcpiDmDumpPmtt ( + ACPI_PMTT_HEADER *MemSubtable; + ACPI_PMTT_HEADER *DimmSubtable; + ACPI_PMTT_DOMAIN *DomainArray; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 Offset = sizeof (ACPI_TABLE_PMTT); + UINT32 MemOffset; + UINT32 DimmOffset; + UINT32 DomainOffset; +- UINT32 DomainCount; ++ UINT16 DomainCount; ++ UINT16 SubLength; ++ UINT16 Tmp16; ++ UINT16 MemLength; ++ UINT16 DimmLength; + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPmtt); + if (ACPI_FAILURE (Status)) + { +@@ -1428,13 +1478,14 @@ AcpiDmDumpPmtt ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); ++ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); + Status = AcpiDmDumpTable (Length, Offset, Subtable, +- Subtable->Length, AcpiDmTableInfoPmttHdr); ++ SubLength, AcpiDmTableInfoPmttHdr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1453,7 +1504,7 @@ AcpiDmDumpPmtt ( + /* Dump the fixed-length portion of the subtable */ + + Status = AcpiDmDumpTable (Length, Offset, Subtable, +- Subtable->Length, AcpiDmTableInfoPmtt0); ++ SubLength, AcpiDmTableInfoPmtt0); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1465,15 +1516,16 @@ AcpiDmDumpPmtt ( + MemSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, + sizeof (ACPI_PMTT_SOCKET)); + +- while (((Offset + MemOffset) < Table->Length) && +- (MemOffset < Subtable->Length)) ++ while (((Offset + MemOffset) < Length) && ++ (MemOffset < SubLength)) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); ++ ACPI_MOVE_16_TO_16(&MemLength, &MemSubtable->Length); + Status = AcpiDmDumpTable (Length, + Offset + MemOffset, MemSubtable, +- MemSubtable->Length, AcpiDmTableInfoPmttHdr); ++ MemLength, AcpiDmTableInfoPmttHdr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1493,7 +1545,7 @@ AcpiDmDumpPmtt ( + + Status = AcpiDmDumpTable (Length, + Offset + MemOffset, MemSubtable, +- MemSubtable->Length, AcpiDmTableInfoPmtt1); ++ MemLength, AcpiDmTableInfoPmtt1); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1501,13 +1553,14 @@ AcpiDmDumpPmtt ( + + /* Walk the variable count of proximity domains */ + +- DomainCount = ((ACPI_PMTT_CONTROLLER *) MemSubtable)->DomainCount; ++ Tmp16 = ((ACPI_PMTT_CONTROLLER *) MemSubtable)->DomainCount; ++ ACPI_MOVE_16_TO_16(&DomainCount, &Tmp16); + DomainOffset = sizeof (ACPI_PMTT_CONTROLLER); + DomainArray = ACPI_ADD_PTR (ACPI_PMTT_DOMAIN, MemSubtable, + sizeof (ACPI_PMTT_CONTROLLER)); + +- while (((Offset + MemOffset + DomainOffset) < Table->Length) && +- ((MemOffset + DomainOffset) < Subtable->Length) && ++ while (((Offset + MemOffset + DomainOffset) < Length) && ++ ((MemOffset + DomainOffset) < SubLength) && + DomainCount) + { + Status = AcpiDmDumpTable (Length, +@@ -1535,15 +1588,16 @@ AcpiDmDumpPmtt ( + DimmSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, MemSubtable, + DomainOffset); + +- while (((Offset + MemOffset + DimmOffset) < Table->Length) && +- (DimmOffset < MemSubtable->Length)) ++ while (((Offset + MemOffset + DimmOffset) < Length) && ++ (DimmOffset < MemLength)) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); ++ ACPI_MOVE_16_TO_16(&DimmLength, &DimmSubtable->Length); + Status = AcpiDmDumpTable (Length, + Offset + MemOffset + DimmOffset, DimmSubtable, +- DimmSubtable->Length, AcpiDmTableInfoPmttHdr); ++ DimmLength, AcpiDmTableInfoPmttHdr); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1563,7 +1617,7 @@ AcpiDmDumpPmtt ( + + Status = AcpiDmDumpTable (Length, + Offset + MemOffset + DimmOffset, DimmSubtable, +- DimmSubtable->Length, AcpiDmTableInfoPmtt2); ++ DimmLength, AcpiDmTableInfoPmtt2); + if (ACPI_FAILURE (Status)) + { + return; +@@ -1571,23 +1625,22 @@ AcpiDmDumpPmtt ( + + /* Point to next DIMM subtable */ + +- DimmOffset += DimmSubtable->Length; ++ DimmOffset += DimmLength; + DimmSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, +- DimmSubtable, DimmSubtable->Length); ++ DimmSubtable, DimmLength); + } + + /* Point to next Controller subtable */ + +- MemOffset += MemSubtable->Length; ++ MemOffset += MemLength; + MemSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, +- MemSubtable, MemSubtable->Length); ++ MemSubtable, MemLength); + } + + /* Point to next Socket subtable */ + +- Offset += Subtable->Length; +- Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, +- Subtable, Subtable->Length); ++ Offset += SubLength; ++ Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, SubLength); + } + } + +@@ -1748,6 +1801,8 @@ AcpiDmDumpS3pt ( + ACPI_FPDT_HEADER *Subtable; + ACPI_DMTABLE_INFO *InfoTable; + ACPI_TABLE_S3PT *S3ptTable = ACPI_CAST_PTR (ACPI_TABLE_S3PT, Tables); ++ UINT32 Length; ++ UINT16 SubType; + + + /* Main table */ +@@ -1758,20 +1813,22 @@ AcpiDmDumpS3pt ( + return 0; + } + ++ ACPI_MOVE_32_TO_32(&Length, &S3ptTable->Length); + Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, S3ptTable, Offset); +- while (Offset < S3ptTable->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (S3ptTable->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + Subtable->Length, AcpiDmTableInfoS3ptHdr); + if (ACPI_FAILURE (Status)) + { + return 0; + } + +- switch (Subtable->Type) ++ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); ++ switch (SubType) + { + case ACPI_S3PT_TYPE_RESUME: + +@@ -1786,7 +1843,7 @@ AcpiDmDumpS3pt ( + default: + + AcpiOsPrintf ("\n**** Unknown S3PT subtable type 0x%X\n", +- Subtable->Type); ++ SubType); + + /* Attempt to continue */ + +@@ -1799,7 +1856,7 @@ AcpiDmDumpS3pt ( + } + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (S3ptTable->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + Subtable->Length, InfoTable); + if (ACPI_FAILURE (Status)) + { diff --git a/big-endian-dmtbdump3.patch b/big-endian-dmtbdump3.patch new file mode 100644 index 0000000..4daf79c --- /dev/null +++ b/big-endian-dmtbdump3.patch @@ -0,0 +1,250 @@ +Index: acpica-unix-20191018/source/common/dmtbdump3.c +=================================================================== +--- acpica-unix-20191018.orig/source/common/dmtbdump3.c ++++ acpica-unix-20191018/source/common/dmtbdump3.c +@@ -68,9 +68,11 @@ void + AcpiDmDumpSlic ( + ACPI_TABLE_HEADER *Table) + { ++ UINT32 Length; + +- (void) AcpiDmDumpTable (Table->Length, sizeof (ACPI_TABLE_HEADER), Table, +- Table->Length - sizeof (*Table), AcpiDmTableInfoSlic); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ (void) AcpiDmDumpTable (Length, sizeof (ACPI_TABLE_HEADER), Table, ++ Length - sizeof (*Table), AcpiDmTableInfoSlic); + } + + +@@ -93,14 +95,17 @@ AcpiDmDumpSlit ( + ACPI_STATUS Status; + UINT32 Offset; + UINT8 *Row; +- UINT32 Localities; ++ UINT64 Localities; + UINT32 i; + UINT32 j; ++ UINT32 Length; ++ UINT64 Tmp64; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSlit); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSlit); + if (ACPI_FAILURE (Status)) + { + return; +@@ -108,7 +113,8 @@ AcpiDmDumpSlit ( + + /* Display the Locality NxN Matrix */ + +- Localities = (UINT32) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; ++ Tmp64 = (UINT64) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; ++ ACPI_MOVE_64_TO_64(&Localities, &Tmp64); + Offset = ACPI_OFFSET (ACPI_TABLE_SLIT, Entry[0]); + Row = (UINT8 *) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->Entry; + +@@ -121,7 +127,7 @@ AcpiDmDumpSlit ( + { + /* Check for beyond EOT */ + +- if (Offset >= Table->Length) ++ if (Offset >= Length) + { + AcpiOsPrintf ( + "\n**** Not enough room in table for all localities\n"); +@@ -173,11 +179,13 @@ AcpiDmDumpSrat ( + UINT32 Offset = sizeof (ACPI_TABLE_SRAT); + ACPI_SUBTABLE_HEADER *Subtable; + ACPI_DMTABLE_INFO *InfoTable; ++ UINT32 Length; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSrat); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSrat); + if (ACPI_FAILURE (Status)) + { + return; +@@ -186,12 +194,12 @@ AcpiDmDumpSrat ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + Subtable->Length, AcpiDmTableInfoSratHdr); + if (ACPI_FAILURE (Status)) + { +@@ -245,7 +253,7 @@ AcpiDmDumpSrat ( + } + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + Subtable->Length, InfoTable); + if (ACPI_FAILURE (Status)) + { +@@ -282,13 +290,14 @@ AcpiDmDumpStao ( + { + ACPI_STATUS Status; + char *Namepath; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT32 StringLength; + UINT32 Offset = sizeof (ACPI_TABLE_STAO); + + + /* Main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoStao); + if (ACPI_FAILURE (Status)) + { +@@ -297,7 +306,7 @@ AcpiDmDumpStao ( + + /* The rest of the table consists of Namepath strings */ + +- while (Offset < Table->Length) ++ while (Offset < Length) + { + Namepath = ACPI_ADD_PTR (char, Table, Offset); + StringLength = strlen (Namepath) + 1; +@@ -339,11 +348,14 @@ AcpiDmDumpTcpa ( + ACPI_TABLE_TCPA_HDR *Subtable = ACPI_ADD_PTR ( + ACPI_TABLE_TCPA_HDR, Table, Offset); + ACPI_STATUS Status; ++ UINT32 Length; ++ UINT16 PlatformClass; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, + 0, AcpiDmTableInfoTcpaHdr); + if (ACPI_FAILURE (Status)) + { +@@ -354,18 +366,19 @@ AcpiDmDumpTcpa ( + * Examine the PlatformClass field to determine the table type. + * Either a client or server table. Only one. + */ +- switch (CommonHeader->PlatformClass) ++ ACPI_MOVE_16_TO_16(&PlatformClass, &CommonHeader->PlatformClass); ++ switch (PlatformClass) + { + case ACPI_TCPA_CLIENT_TABLE: + +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Table->Length - Offset, AcpiDmTableInfoTcpaClient); ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, ++ Length - Offset, AcpiDmTableInfoTcpaClient); + break; + + case ACPI_TCPA_SERVER_TABLE: + +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, +- Table->Length - Offset, AcpiDmTableInfoTcpaServer); ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, ++ Length - Offset, AcpiDmTableInfoTcpaServer); + break; + + default: +@@ -512,11 +525,13 @@ AcpiDmDumpVrtc ( + ACPI_STATUS Status; + UINT32 Offset = sizeof (ACPI_TABLE_VRTC); + ACPI_VRTC_ENTRY *Subtable; ++ UINT32 Length; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoVrtc); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoVrtc); + if (ACPI_FAILURE (Status)) + { + return; +@@ -525,12 +540,12 @@ AcpiDmDumpVrtc ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_VRTC_ENTRY, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + sizeof (ACPI_VRTC_ENTRY), AcpiDmTableInfoVrtc0); + if (ACPI_FAILURE (Status)) + { +@@ -565,11 +580,13 @@ AcpiDmDumpWdat ( + ACPI_STATUS Status; + UINT32 Offset = sizeof (ACPI_TABLE_WDAT); + ACPI_WDAT_ENTRY *Subtable; ++ UINT32 Length; + + + /* Main table */ + +- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoWdat); ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); ++ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoWdat); + if (ACPI_FAILURE (Status)) + { + return; +@@ -578,12 +595,12 @@ AcpiDmDumpWdat ( + /* Subtables */ + + Subtable = ACPI_ADD_PTR (ACPI_WDAT_ENTRY, Table, Offset); +- while (Offset < Table->Length) ++ while (Offset < Length) + { + /* Common subtable header */ + + AcpiOsPrintf ("\n"); +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (Length, Offset, Subtable, + sizeof (ACPI_WDAT_ENTRY), AcpiDmTableInfoWdat0); + if (ACPI_FAILURE (Status)) + { +@@ -618,12 +635,13 @@ AcpiDmDumpWpbt ( + { + ACPI_STATUS Status; + ACPI_TABLE_WPBT *Subtable; +- UINT32 Length = Table->Length; ++ UINT32 Length; + UINT16 ArgumentsLength; + + + /* Dump the main table */ + ++ ACPI_MOVE_32_TO_32(&Length, &Table->Length); + Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoWpbt); + if (ACPI_FAILURE (Status)) + { +@@ -633,10 +651,10 @@ AcpiDmDumpWpbt ( + /* Extract the arguments buffer length from the main table */ + + Subtable = ACPI_CAST_PTR (ACPI_TABLE_WPBT, Table); +- ArgumentsLength = Subtable->ArgumentsLength; ++ ACPI_MOVE_16_TO_16(&ArgumentsLength, &Subtable->ArgumentsLength); + + /* Dump the arguments buffer */ + +- (void) AcpiDmDumpTable (Table->Length, 0, Table, ArgumentsLength, ++ (void) AcpiDmDumpTable (Length, 0, Table, ArgumentsLength, + AcpiDmTableInfoWpbt0); + } diff --git a/big-endian-v2.patch b/big-endian-v2.patch index 600a43d..807e534 100644 --- a/big-endian-v2.patch +++ b/big-endian-v2.patch @@ -3,10 +3,10 @@ in the original big-endian patch; we try to capture those here. Signed-off-by: Al Stone -Index: acpica-unix-20180508/source/compiler/asllookup.c +Index: acpica-unix-20191018/source/compiler/asllookup.c =================================================================== ---- acpica-unix-20180508.orig/source/compiler/asllookup.c -+++ acpica-unix-20180508/source/compiler/asllookup.c +--- acpica-unix-20191018.orig/source/compiler/asllookup.c ++++ acpica-unix-20191018/source/compiler/asllookup.c @@ -249,7 +249,8 @@ LkIsObjectUsed ( * ACPI names and are typically not referenced since they are meant * to be called by the host OS. diff --git a/big-endian.patch b/big-endian.patch index 5735a94..bb12ed6 100644 --- a/big-endian.patch +++ b/big-endian.patch @@ -8,25 +8,10 @@ To date, this has been critical for the s390x architecture only. Signed-off-by: Al Stone ---- - source/compiler/aslcodegen.c | 109 ++++++++++++++++++------------ - source/compiler/aslopcodes.c | 4 + - source/compiler/aslrestype1.c | 68 +++++++++++++------ - source/compiler/aslrestype1i.c | 38 +++++++--- - source/compiler/aslrestype2.c | 25 ++++--- - source/compiler/aslrestype2d.c | 134 +++++++++++++++++++++---------------- - source/compiler/aslrestype2e.c | 39 +++++++---- - source/compiler/aslrestype2q.c | 117 +++++++++++++++++++++----------- - source/compiler/aslrestype2s.c | 86 +++++++++++++++++------- - source/compiler/aslrestype2w.c | 127 +++++++++++++++++++++-------------- - source/include/acmacros.h | 15 +++- - source/include/platform/aclinux.h | 8 ++ - 12 files changed, 487 insertions(+), 283 deletions(-) - -Index: acpica-unix-20190816/source/compiler/aslcodegen.c +Index: acpica-unix-20191018/source/compiler/aslcodegen.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslcodegen.c -+++ acpica-unix-20190816/source/compiler/aslcodegen.c +--- acpica-unix-20191018.orig/source/compiler/aslcodegen.c ++++ acpica-unix-20191018/source/compiler/aslcodegen.c @@ -237,16 +237,12 @@ CgWriteAmlOpcode ( ACPI_PARSE_OBJECT *Op) { @@ -268,10 +253,10 @@ Index: acpica-unix-20190816/source/compiler/aslcodegen.c case AML_RAW_DATA_BUFFER: -Index: acpica-unix-20190816/source/compiler/aslopcodes.c +Index: acpica-unix-20191018/source/compiler/aslopcodes.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslopcodes.c -+++ acpica-unix-20190816/source/compiler/aslopcodes.c +--- acpica-unix-20191018.orig/source/compiler/aslopcodes.c ++++ acpica-unix-20191018/source/compiler/aslopcodes.c @@ -485,6 +485,7 @@ OpcDoUnicode ( UINT32 i; UINT8 *AsciiString; @@ -290,10 +275,10 @@ Index: acpica-unix-20190816/source/compiler/aslopcodes.c } /* -Index: acpica-unix-20190816/source/compiler/aslrestype1.c +Index: acpica-unix-20191018/source/compiler/aslrestype1.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype1.c -+++ acpica-unix-20190816/source/compiler/aslrestype1.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype1.c ++++ acpica-unix-20191018/source/compiler/aslrestype1.c @@ -142,6 +142,11 @@ RsDoMemory24Descriptor ( ACPI_PARSE_OBJECT *LengthOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -490,10 +475,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.AddressLength)); break; -Index: acpica-unix-20190816/source/compiler/aslrestype1i.c +Index: acpica-unix-20191018/source/compiler/aslrestype1i.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype1i.c -+++ acpica-unix-20190816/source/compiler/aslrestype1i.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype1i.c ++++ acpica-unix-20191018/source/compiler/aslrestype1i.c @@ -198,6 +198,8 @@ RsDoFixedDmaDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -630,10 +615,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype1i.c + ACPI_MOVE_16_TO_16(&Descriptor->Irq.IrqMask, &IrqMask); return (Rnode); } -Index: acpica-unix-20190816/source/compiler/aslrestype2.c +Index: acpica-unix-20191018/source/compiler/aslrestype2.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype2.c -+++ acpica-unix-20190816/source/compiler/aslrestype2.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype2.c ++++ acpica-unix-20191018/source/compiler/aslrestype2.c @@ -76,6 +76,7 @@ RsDoGeneralRegisterDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -747,9 +732,9 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2.c } /* Add optional ResSource string if present */ -@@ -384,14 +406,15 @@ RsDoInterruptDescriptor ( - Rover = ACPI_ADD_PTR ( - AML_RESOURCE, &(Rover->ByteItem), StringLength); +@@ -381,14 +403,15 @@ RsDoInterruptDescriptor ( + { + strcpy ((char *) Rover, (char *) ResSourceString); - Descriptor->ExtendedIrq.ResourceLength = (UINT16) - (Descriptor->ExtendedIrq.ResourceLength + StringLength); @@ -765,7 +750,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2.c return (Rnode); } -@@ -439,7 +462,7 @@ RsDoVendorLargeDescriptor ( +@@ -436,7 +459,7 @@ RsDoVendorLargeDescriptor ( Descriptor = Rnode->Buffer; Descriptor->VendorLarge.DescriptorType = ACPI_RESOURCE_NAME_VENDOR_LARGE; @@ -774,10 +759,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2.c /* Point to end-of-descriptor for vendor data */ -Index: acpica-unix-20190816/source/compiler/aslrestype2d.c +Index: acpica-unix-20191018/source/compiler/aslrestype2d.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype2d.c -+++ acpica-unix-20190816/source/compiler/aslrestype2d.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype2d.c ++++ acpica-unix-20191018/source/compiler/aslrestype2d.c @@ -79,7 +79,13 @@ RsDoDwordIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1133,10 +1118,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2d.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20190816/source/compiler/aslrestype2e.c +Index: acpica-unix-20191018/source/compiler/aslrestype2e.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype2e.c -+++ acpica-unix-20190816/source/compiler/aslrestype2e.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype2e.c ++++ acpica-unix-20191018/source/compiler/aslrestype2e.c @@ -78,6 +78,13 @@ RsDoExtendedIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1242,10 +1227,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2e.c Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); -Index: acpica-unix-20190816/source/compiler/aslrestype2q.c +Index: acpica-unix-20191018/source/compiler/aslrestype2q.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype2q.c -+++ acpica-unix-20190816/source/compiler/aslrestype2q.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype2q.c ++++ acpica-unix-20191018/source/compiler/aslrestype2q.c @@ -80,7 +80,13 @@ RsDoQwordIoDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; @@ -1584,10 +1569,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2q.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20190816/source/compiler/aslrestype2s.c +Index: acpica-unix-20191018/source/compiler/aslrestype2s.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype2s.c -+++ acpica-unix-20190816/source/compiler/aslrestype2s.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype2s.c ++++ acpica-unix-20191018/source/compiler/aslrestype2s.c @@ -340,9 +340,14 @@ RsDoGpioIntDescriptor ( UINT16 VendorLength; UINT16 InterruptLength; @@ -1741,7 +1726,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c InitializerOp = Info->DescriptorTypeOp->Asl.Child; -@@ -577,7 +597,7 @@ RsDoGpioIoDescriptor ( +@@ -576,7 +596,7 @@ RsDoGpioIoDescriptor ( sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; @@ -1750,7 +1735,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c Descriptor->Gpio.DescriptorType = ACPI_RESOURCE_NAME_GPIO; Descriptor->Gpio.RevisionId = AML_RESOURCE_GPIO_REVISION; Descriptor->Gpio.ConnectionType = AML_RESOURCE_GPIO_TYPE_IO; -@@ -591,11 +611,11 @@ RsDoGpioIoDescriptor ( +@@ -590,11 +610,11 @@ RsDoGpioIoDescriptor ( /* Setup offsets within the descriptor */ @@ -1766,7 +1751,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c /* Process all child initialization nodes */ -@@ -605,7 +625,7 @@ RsDoGpioIoDescriptor ( +@@ -604,7 +624,7 @@ RsDoGpioIoDescriptor ( { case 0: /* Share Type [Flags] (_SHR) */ @@ -1775,7 +1760,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 3); break; -@@ -619,21 +639,21 @@ RsDoGpioIoDescriptor ( +@@ -618,21 +638,21 @@ RsDoGpioIoDescriptor ( case 2: /* Debounce Timeout [WORD] (_DBT) */ @@ -1800,7 +1785,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_IORESTRICTION, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 0, 2); break; -@@ -659,7 +679,7 @@ RsDoGpioIoDescriptor ( +@@ -658,7 +678,7 @@ RsDoGpioIoDescriptor ( case 7: /* Resource Usage (consumer/producer) */ @@ -1809,7 +1794,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c break; case 8: /* Resource Tag (Descriptor Name) */ -@@ -673,13 +693,14 @@ RsDoGpioIoDescriptor ( +@@ -672,13 +692,14 @@ RsDoGpioIoDescriptor ( * This field is required in order to calculate the length * of the ResourceSource at runtime. */ @@ -1827,7 +1812,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c } break; -@@ -692,7 +713,9 @@ RsDoGpioIoDescriptor ( +@@ -691,7 +712,9 @@ RsDoGpioIoDescriptor ( * (implies resource source must immediately follow the pin list.) * Name: _PIN */ @@ -1838,7 +1823,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c InterruptList++; PinCount++; -@@ -723,6 +746,11 @@ RsDoGpioIoDescriptor ( +@@ -722,6 +745,11 @@ RsDoGpioIoDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -1850,7 +1835,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c MpSaveGpioInfo (Info->MappingOp, Descriptor, PinCount, PinList, ResourceSource); return (Rnode); -@@ -753,8 +781,12 @@ RsDoI2cSerialBusDescriptor ( +@@ -752,8 +780,12 @@ RsDoI2cSerialBusDescriptor ( UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; @@ -1863,7 +1848,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c InitializerOp = Info->DescriptorTypeOp->Asl.Child; -@@ -777,12 +809,14 @@ RsDoI2cSerialBusDescriptor ( +@@ -776,12 +808,14 @@ RsDoI2cSerialBusDescriptor ( sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; @@ -1880,7 +1865,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c if (Info->DescriptorTypeOp->Asl.ParseOpcode == PARSEOP_I2C_SERIALBUS_V2) { -@@ -802,7 +836,7 @@ RsDoI2cSerialBusDescriptor ( +@@ -801,7 +835,7 @@ RsDoI2cSerialBusDescriptor ( { case 0: /* Slave Address [WORD] (_ADR) */ @@ -1889,7 +1874,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateWordField (InitializerOp, ACPI_RESTAG_ADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.SlaveAddress)); break; -@@ -816,14 +850,14 @@ RsDoI2cSerialBusDescriptor ( +@@ -815,14 +849,14 @@ RsDoI2cSerialBusDescriptor ( case 2: /* Connection Speed [DWORD] (_SPE) */ @@ -1906,7 +1891,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_MODE, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.TypeSpecificFlags), 0); break; -@@ -883,6 +917,9 @@ RsDoI2cSerialBusDescriptor ( +@@ -882,6 +916,9 @@ RsDoI2cSerialBusDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -1916,7 +1901,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } -@@ -912,6 +949,9 @@ RsDoSpiSerialBusDescriptor ( +@@ -911,6 +948,9 @@ RsDoSpiSerialBusDescriptor ( UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; @@ -1926,7 +1911,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c UINT32 CurrentByteOffset; UINT32 i; -@@ -962,21 +1002,21 @@ RsDoSpiSerialBusDescriptor ( +@@ -961,21 +1001,21 @@ RsDoSpiSerialBusDescriptor ( { case 0: /* Device Selection [WORD] (_ADR) */ @@ -1951,7 +1936,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_MODE, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.TypeSpecificFlags), 0); break; -@@ -997,7 +1037,7 @@ RsDoSpiSerialBusDescriptor ( +@@ -996,7 +1036,7 @@ RsDoSpiSerialBusDescriptor ( case 5: /* Connection Speed [DWORD] (_SPE) */ @@ -1960,7 +1945,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_SPEED, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.ConnectionSpeed)); break; -@@ -1071,6 +1111,10 @@ RsDoSpiSerialBusDescriptor ( +@@ -1070,6 +1110,10 @@ RsDoSpiSerialBusDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -1971,7 +1956,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } -@@ -1100,6 +1144,10 @@ RsDoUartSerialBusDescriptor ( +@@ -1099,6 +1143,10 @@ RsDoUartSerialBusDescriptor ( UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; @@ -1982,7 +1967,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c UINT32 CurrentByteOffset; UINT32 i; -@@ -1149,21 +1197,21 @@ RsDoUartSerialBusDescriptor ( +@@ -1148,21 +1196,21 @@ RsDoUartSerialBusDescriptor ( { case 0: /* Connection Speed (Baud Rate) [DWORD] (_SPE) */ @@ -2007,7 +1992,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_STOPBITS, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 2, 2); break; -@@ -1177,7 +1225,7 @@ RsDoUartSerialBusDescriptor ( +@@ -1176,7 +1224,7 @@ RsDoUartSerialBusDescriptor ( case 4: /* Endianness [Flag] (_END) */ @@ -2016,7 +2001,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_ENDIANNESS, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 7); break; -@@ -1191,21 +1239,21 @@ RsDoUartSerialBusDescriptor ( +@@ -1190,21 +1238,21 @@ RsDoUartSerialBusDescriptor ( case 6: /* Flow Control [Flags] (_FLC) */ @@ -2041,7 +2026,7 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH_TX, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TxFifoSize)); break; -@@ -1275,6 +1323,11 @@ RsDoUartSerialBusDescriptor ( +@@ -1274,6 +1322,11 @@ RsDoUartSerialBusDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -2053,10 +2038,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2s.c MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } -Index: acpica-unix-20190816/source/compiler/aslrestype2w.c +Index: acpica-unix-20191018/source/compiler/aslrestype2w.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslrestype2w.c -+++ acpica-unix-20190816/source/compiler/aslrestype2w.c +--- acpica-unix-20191018.orig/source/compiler/aslrestype2w.c ++++ acpica-unix-20191018/source/compiler/aslrestype2w.c @@ -81,6 +81,12 @@ RsDoWordIoDescriptor ( UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -2400,10 +2385,10 @@ Index: acpica-unix-20190816/source/compiler/aslrestype2w.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20190816/source/include/acmacros.h +Index: acpica-unix-20191018/source/include/acmacros.h =================================================================== ---- acpica-unix-20190816.orig/source/include/acmacros.h -+++ acpica-unix-20190816/source/include/acmacros.h +--- acpica-unix-20191018.orig/source/include/acmacros.h ++++ acpica-unix-20191018/source/include/acmacros.h @@ -98,9 +98,12 @@ ((UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\ ((UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];} @@ -2482,10 +2467,10 @@ Index: acpica-unix-20190816/source/include/acmacros.h #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ -Index: acpica-unix-20190816/source/include/platform/aclinux.h +Index: acpica-unix-20191018/source/include/platform/aclinux.h =================================================================== ---- acpica-unix-20190816.orig/source/include/platform/aclinux.h -+++ acpica-unix-20190816/source/include/platform/aclinux.h +--- acpica-unix-20191018.orig/source/include/platform/aclinux.h ++++ acpica-unix-20191018/source/include/platform/aclinux.h @@ -198,6 +198,7 @@ #ifdef ACPI_USE_STANDARD_HEADERS @@ -2505,16 +2490,16 @@ Index: acpica-unix-20190816/source/include/platform/aclinux.h #endif /* __KERNEL__ */ #endif /* __ACLINUX_H__ */ -Index: acpica-unix-20190816/source/compiler/aslanalyze.c +Index: acpica-unix-20191018/source/compiler/aslanalyze.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslanalyze.c -+++ acpica-unix-20190816/source/compiler/aslanalyze.c +--- acpica-unix-20191018.orig/source/compiler/aslanalyze.c ++++ acpica-unix-20191018/source/compiler/aslanalyze.c @@ -461,7 +461,7 @@ ApCheckForGpeNameConflict ( /* Need a null-terminated string version of NameSeg */ -- ACPI_MOVE_32_TO_32 (Name, &Op->Asl.NameSeg); -+ ACPI_COPY_NAMESEG (Name, &Op->Asl.NameSeg); +- ACPI_MOVE_32_TO_32 (Name, Op->Asl.NameSeg); ++ ACPI_COPY_NAMESEG (Name, Op->Asl.NameSeg); Name[ACPI_NAMESEG_SIZE] = 0; /* @@ -2527,10 +2512,10 @@ Index: acpica-unix-20190816/source/compiler/aslanalyze.c /* Inject opposite letter ("L" versus "E") */ -Index: acpica-unix-20190816/source/compiler/asllookup.c +Index: acpica-unix-20191018/source/compiler/asllookup.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/asllookup.c -+++ acpica-unix-20190816/source/compiler/asllookup.c +--- acpica-unix-20191018.orig/source/compiler/asllookup.c ++++ acpica-unix-20191018/source/compiler/asllookup.c @@ -119,6 +119,7 @@ LkIsObjectUsed ( { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); @@ -2561,10 +2546,10 @@ Index: acpica-unix-20190816/source/compiler/asllookup.c AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED, LkGetNameOp (Node->Op), AslGbl_MsgBuffer); return (AE_OK); -Index: acpica-unix-20190816/source/compiler/aslmain.c +Index: acpica-unix-20191018/source/compiler/aslmain.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslmain.c -+++ acpica-unix-20190816/source/compiler/aslmain.c +--- acpica-unix-20191018.orig/source/compiler/aslmain.c ++++ acpica-unix-20191018/source/compiler/aslmain.c @@ -101,18 +101,6 @@ main ( signal (SIGINT, AslSignalHandler); @@ -2584,10 +2569,10 @@ Index: acpica-unix-20190816/source/compiler/aslmain.c AcpiOsInitialize (); ACPI_DEBUG_INITIALIZE (); /* For debug version only */ -Index: acpica-unix-20190816/source/common/acfileio.c +Index: acpica-unix-20191018/source/common/acfileio.c =================================================================== ---- acpica-unix-20190816.orig/source/common/acfileio.c -+++ acpica-unix-20190816/source/common/acfileio.c +--- acpica-unix-20191018.orig/source/common/acfileio.c ++++ acpica-unix-20191018/source/common/acfileio.c @@ -280,6 +280,7 @@ AcGetOneTableFromFile ( ACPI_TABLE_HEADER *Table; INT32 Count; @@ -2654,10 +2639,10 @@ Index: acpica-unix-20190816/source/common/acfileio.c (UINT32) (FileSize - TableOffset)); return (AE_BAD_HEADER); } -Index: acpica-unix-20190816/source/common/dmtable.c +Index: acpica-unix-20191018/source/common/dmtable.c =================================================================== ---- acpica-unix-20190816.orig/source/common/dmtable.c -+++ acpica-unix-20190816/source/common/dmtable.c +--- acpica-unix-20191018.orig/source/common/dmtable.c ++++ acpica-unix-20191018/source/common/dmtable.c @@ -551,7 +551,7 @@ AcpiDmDumpDataTable ( */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_FACS)) @@ -2756,10 +2741,10 @@ Index: acpica-unix-20190816/source/common/dmtable.c AcpiDmNfitSubnames[Temp16]); break; -Index: acpica-unix-20190816/source/common/dmtables.c +Index: acpica-unix-20191018/source/common/dmtables.c =================================================================== ---- acpica-unix-20190816.orig/source/common/dmtables.c -+++ acpica-unix-20190816/source/common/dmtables.c +--- acpica-unix-20191018.orig/source/common/dmtables.c ++++ acpica-unix-20191018/source/common/dmtables.c @@ -142,7 +142,9 @@ AdCreateTableHeader ( ACPI_TABLE_HEADER *Table) { @@ -2808,7 +2793,7 @@ Index: acpica-unix-20190816/source/common/dmtables.c /* @@ -221,7 +226,7 @@ AdCreateTableHeader ( AcpiOsPrintf ( - "DefinitionBlock (\"\", \"%4.4s\", %hu, \"%.6s\", \"%.8s\", 0x%8.8X)\n", + "DefinitionBlock (\"\", \"%4.4s\", %u, \"%.6s\", \"%.8s\", 0x%8.8X)\n", Table->Signature, Table->Revision, - Table->OemId, Table->OemTableId, Table->OemRevision); + Table->OemId, Table->OemTableId, OemRev); @@ -2825,1945 +2810,10 @@ Index: acpica-unix-20190816/source/common/dmtables.c AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); ASL_CV_INIT_FILETREE(Table, AmlStart, AmlLength); -Index: acpica-unix-20190816/source/common/dmtbdump.c +Index: acpica-unix-20191018/source/compiler/dtfield.c =================================================================== ---- acpica-unix-20190816.orig/source/common/dmtbdump.c -+++ acpica-unix-20190816/source/common/dmtbdump.c -@@ -277,6 +277,8 @@ AcpiDmDumpRsdt ( - UINT32 Entries; - UINT32 Offset; - UINT32 i; -+ UINT32 Length; -+ UINT32 Address; - - - /* Point to start of table pointer array */ -@@ -286,12 +288,14 @@ AcpiDmDumpRsdt ( - - /* RSDT uses 32-bit pointers */ - -- Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Entries = (Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32); - - for (i = 0; i < Entries; i++) - { - AcpiDmLineHeader2 (Offset, sizeof (UINT32), "ACPI Table Address", i); -- AcpiOsPrintf ("%8.8X\n", Array[i]); -+ ACPI_MOVE_32_TO_32(&Address, &Array[i]); -+ AcpiOsPrintf ("%8.8X\n", Address); - Offset += sizeof (UINT32); - } - } -@@ -317,6 +321,8 @@ AcpiDmDumpXsdt ( - UINT32 Entries; - UINT32 Offset; - UINT32 i; -+ UINT32 Length; -+ UINT64 Address; - - - /* Point to start of table pointer array */ -@@ -326,12 +332,14 @@ AcpiDmDumpXsdt ( - - /* XSDT uses 64-bit pointers */ - -- Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT64); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Entries = (Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT64); - - for (i = 0; i < Entries; i++) - { - AcpiDmLineHeader2 (Offset, sizeof (UINT64), "ACPI Table Address", i); -- AcpiOsPrintf ("%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Array[i])); -+ ACPI_MOVE_64_TO_64(&Address, &Array[i]); -+ AcpiOsPrintf ("%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Address)); - Offset += sizeof (UINT64); - } - } -@@ -358,12 +366,12 @@ AcpiDmDumpFadt ( - ACPI_TABLE_HEADER *Table) - { - ACPI_STATUS Status; -- -+ UINT32 Length; - - /* Always dump the minimum FADT revision 1 fields (ACPI 1.0) */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, -- AcpiDmTableInfoFadt1); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFadt1); - if (ACPI_FAILURE (Status)) - { - return; -@@ -371,11 +379,9 @@ AcpiDmDumpFadt ( - - /* Check for FADT revision 2 fields (ACPI 1.0B MS extensions) */ - -- if ((Table->Length > ACPI_FADT_V1_SIZE) && -- (Table->Length <= ACPI_FADT_V2_SIZE)) -+ if ((Length > ACPI_FADT_V1_SIZE) && (Length <= ACPI_FADT_V2_SIZE)) - { -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, -- AcpiDmTableInfoFadt2); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFadt2); - if (ACPI_FAILURE (Status)) - { - return; -@@ -384,10 +390,9 @@ AcpiDmDumpFadt ( - - /* Check for FADT revision 3/4 fields and up (ACPI 2.0+ extended data) */ - -- else if (Table->Length > ACPI_FADT_V2_SIZE) -+ else if (Length > ACPI_FADT_V2_SIZE) - { -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, -- AcpiDmTableInfoFadt3); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFadt3); - if (ACPI_FAILURE (Status)) - { - return; -@@ -395,9 +400,9 @@ AcpiDmDumpFadt ( - - /* Check for FADT revision 5 fields and up (ACPI 5.0+) */ - -- if (Table->Length > ACPI_FADT_V3_SIZE) -+ if (Length > ACPI_FADT_V3_SIZE) - { -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, - AcpiDmTableInfoFadt5); - if (ACPI_FAILURE (Status)) - { -@@ -407,9 +412,9 @@ AcpiDmDumpFadt ( - - /* Check for FADT revision 6 fields and up (ACPI 6.0+) */ - -- if (Table->Length > ACPI_FADT_V3_SIZE) -+ if (Length > ACPI_FADT_V3_SIZE) - { -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, - AcpiDmTableInfoFadt6); - if (ACPI_FAILURE (Status)) - { -@@ -420,11 +425,11 @@ AcpiDmDumpFadt ( - - /* Validate various fields in the FADT, including length */ - -- AcpiTbCreateLocalFadt (Table, Table->Length); -+ AcpiTbCreateLocalFadt (Table, Length); - - /* Validate FADT length against the revision */ - -- AcpiDmValidateFadtLength (Table->Revision, Table->Length); -+ AcpiDmValidateFadtLength (Table->Revision, Length); - } - - -@@ -450,6 +455,7 @@ AcpiDmValidateFadtLength ( - UINT32 Length) - { - UINT32 ExpectedLength; -+ UINT32 Tmp32; - - - switch (Revision) -@@ -485,7 +491,8 @@ AcpiDmValidateFadtLength ( - return; - } - -- if (Length == ExpectedLength) -+ ACPI_MOVE_32_TO_32(&Tmp32, &Length); -+ if (Tmp32 == ExpectedLength) - { - return; - } -@@ -493,5 +500,5 @@ AcpiDmValidateFadtLength ( - AcpiOsPrintf ( - "\n// ACPI Warning: FADT revision %X does not match length: " - "found %X expected %X\n", -- Revision, Length, ExpectedLength); -+ Revision, Tmp32, ExpectedLength); - } -Index: acpica-unix-20190816/source/common/dmtbdump1.c -=================================================================== ---- acpica-unix-20190816.orig/source/common/dmtbdump1.c -+++ acpica-unix-20190816/source/common/dmtbdump1.c -@@ -79,17 +79,21 @@ AcpiDmDumpAsf ( - UINT32 DataOffset = 0; - UINT32 i; - UINT8 Type; -+ UINT32 Len; -+ UINT16 SubLen; - - - /* No main table, only subtables */ - -+ ACPI_MOVE_32_TO_32(&Len, &Table->Length); - Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Len) - { - /* Common subtable header */ - -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Subtable->Header.Length, AcpiDmTableInfoAsfHdr); -+ ACPI_MOVE_16_TO_16(&SubLen, &Subtable->Header.Length); -+ Status = AcpiDmDumpTable (Len, Offset, Subtable, -+ SubLen, AcpiDmTableInfoAsfHdr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -146,8 +150,7 @@ AcpiDmDumpAsf ( - return; - } - -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Subtable->Header.Length, InfoTable); -+ Status = AcpiDmDumpTable (Len, Offset, Subtable, SubLen, InfoTable); - if (ACPI_FAILURE (Status)) - { - return; -@@ -163,7 +166,7 @@ AcpiDmDumpAsf ( - for (i = 0; i < DataCount; i++) - { - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, DataOffset, -+ Status = AcpiDmDumpTable (Len, DataOffset, - DataTable, DataLength, DataInfoTable); - if (ACPI_FAILURE (Status)) - { -@@ -209,15 +212,14 @@ AcpiDmDumpAsf ( - - /* Point to next subtable */ - -- if (!Subtable->Header.Length) -+ if (!SubLen) - { - AcpiOsPrintf ("Invalid zero subtable header length\n"); - return; - } - -- Offset += Subtable->Header.Length; -- Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Subtable, -- Subtable->Header.Length); -+ Offset += SubLen; -+ Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Subtable, SubLen); - } - } - -@@ -241,12 +243,13 @@ AcpiDmDumpCpep ( - { - ACPI_STATUS Status; - ACPI_CPEP_POLLING *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_CPEP); - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoCpep); - if (ACPI_FAILURE (Status)) - { -@@ -256,7 +259,7 @@ AcpiDmDumpCpep ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_CPEP_POLLING, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - AcpiOsPrintf ("\n"); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -@@ -296,7 +299,10 @@ AcpiDmDumpCsrt ( - ACPI_CSRT_GROUP *Subtable; - ACPI_CSRT_SHARED_INFO *SharedInfoTable; - ACPI_CSRT_DESCRIPTOR *SubSubtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; -+ UINT32 SubLength; -+ UINT32 SubSubLength; -+ UINT32 SharedInfoLength; - UINT32 Offset = sizeof (ACPI_TABLE_CSRT); - UINT32 SubOffset; - UINT32 SubSubOffset; -@@ -307,14 +313,16 @@ AcpiDmDumpCsrt ( - - /* Subtables (Resource Groups) */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Resource group subtable */ - - AcpiOsPrintf ("\n"); -+ ACPI_MOVE_32_TO_32(&SubLength, &Subtable->Length); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -- Subtable->Length, AcpiDmTableInfoCsrt0); -+ SubLength, AcpiDmTableInfoCsrt0); - if (ACPI_FAILURE (Status)) - { - return; -@@ -334,19 +342,20 @@ AcpiDmDumpCsrt ( - return; - } - -- SubOffset += Subtable->SharedInfoLength; -+ ACPI_MOVE_32_TO_32(&SharedInfoLength, &Subtable->SharedInfoLength); -+ SubOffset += SharedInfoLength; - - /* Sub-Subtables (Resource Descriptors) */ - - SubSubtable = ACPI_ADD_PTR (ACPI_CSRT_DESCRIPTOR, Table, - Offset + SubOffset); - -- while ((SubOffset < Subtable->Length) && -- ((Offset + SubOffset) < Table->Length)) -+ while ((SubOffset < SubLength) && ((Offset + SubOffset) < Length)) - { - AcpiOsPrintf ("\n"); -+ ACPI_MOVE_32_TO_32(&SubSubLength, &SubSubtable->Length); - Status = AcpiDmDumpTable (Length, Offset + SubOffset, SubSubtable, -- SubSubtable->Length, AcpiDmTableInfoCsrt2); -+ SubSubLength, AcpiDmTableInfoCsrt2); - if (ACPI_FAILURE (Status)) - { - return; -@@ -356,7 +365,7 @@ AcpiDmDumpCsrt ( - - /* Resource-specific info buffer */ - -- InfoLength = SubSubtable->Length - SubSubOffset; -+ InfoLength = SubSubLength - SubSubOffset; - if (InfoLength) - { - Status = AcpiDmDumpTable (Length, -@@ -371,16 +380,15 @@ AcpiDmDumpCsrt ( - - /* Point to next sub-subtable */ - -- SubOffset += SubSubtable->Length; -+ SubOffset += SubSubLength; - SubSubtable = ACPI_ADD_PTR (ACPI_CSRT_DESCRIPTOR, SubSubtable, -- SubSubtable->Length); -+ SubSubLength); - } - - /* Point to next subtable */ - -- Offset += Subtable->Length; -- Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Subtable, -- Subtable->Length); -+ Offset += SubLength; -+ Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Subtable, SubLength); - } - } - -@@ -404,16 +412,20 @@ AcpiDmDumpDbg2 ( - { - ACPI_STATUS Status; - ACPI_DBG2_DEVICE *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; -+ UINT16 SubLength; - UINT32 Offset = sizeof (ACPI_TABLE_DBG2); - UINT32 i; - UINT32 ArrayOffset; - UINT32 AbsoluteOffset; - UINT8 *Array; -+ UINT16 Tmp16; -+ UINT16 AlsoTmp16; - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDbg2); - if (ACPI_FAILURE (Status)) - { -@@ -423,11 +435,12 @@ AcpiDmDumpDbg2 ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_DBG2_DEVICE, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - AcpiOsPrintf ("\n"); -+ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -- Subtable->Length, AcpiDmTableInfoDbg2Device); -+ SubLength, AcpiDmTableInfoDbg2Device); - if (ACPI_FAILURE (Status)) - { - return; -@@ -437,13 +450,13 @@ AcpiDmDumpDbg2 ( - - for (i = 0; i < Subtable->RegisterCount; i++) - { -- ArrayOffset = Subtable->BaseAddressOffset + -- (sizeof (ACPI_GENERIC_ADDRESS) * i); -+ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->BaseAddressOffset); -+ ArrayOffset = Tmp16 + (sizeof (ACPI_GENERIC_ADDRESS) * i); - AbsoluteOffset = Offset + ArrayOffset; - Array = (UINT8 *) Subtable + ArrayOffset; - - Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, -- Subtable->Length, AcpiDmTableInfoDbg2Addr); -+ SubLength, AcpiDmTableInfoDbg2Addr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -454,13 +467,13 @@ AcpiDmDumpDbg2 ( - - for (i = 0; i < Subtable->RegisterCount; i++) - { -- ArrayOffset = Subtable->AddressSizeOffset + -- (sizeof (UINT32) * i); -+ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->AddressSizeOffset); -+ ArrayOffset = Tmp16 + (sizeof (UINT32) * i); - AbsoluteOffset = Offset + ArrayOffset; - Array = (UINT8 *) Subtable + ArrayOffset; - - Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, -- Subtable->Length, AcpiDmTableInfoDbg2Size); -+ SubLength, AcpiDmTableInfoDbg2Size); - if (ACPI_FAILURE (Status)) - { - return; -@@ -470,12 +483,13 @@ AcpiDmDumpDbg2 ( - /* Dump the Namestring (required) */ - - AcpiOsPrintf ("\n"); -- ArrayOffset = Subtable->NamepathOffset; -+ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->NamepathOffset); -+ ArrayOffset = Tmp16; - AbsoluteOffset = Offset + ArrayOffset; - Array = (UINT8 *) Subtable + ArrayOffset; - - Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, -- Subtable->Length, AcpiDmTableInfoDbg2Name); -+ SubLength, AcpiDmTableInfoDbg2Name); - if (ACPI_FAILURE (Status)) - { - return; -@@ -485,9 +499,10 @@ AcpiDmDumpDbg2 ( - - if (Subtable->OemDataOffset) - { -- Status = AcpiDmDumpTable (Length, Offset + Subtable->OemDataOffset, -- Table, Subtable->OemDataLength, -- AcpiDmTableInfoDbg2OemData); -+ ACPI_MOVE_16_TO_16(&Tmp16, &Subtable->OemDataOffset); -+ ACPI_MOVE_16_TO_16(&AlsoTmp16, &Subtable->OemDataLength); -+ Status = AcpiDmDumpTable (Length, Offset + Tmp16, -+ Table, AlsoTmp16, AcpiDmTableInfoDbg2OemData); - if (ACPI_FAILURE (Status)) - { - return; -@@ -496,9 +511,9 @@ AcpiDmDumpDbg2 ( - - /* Point to next subtable */ - -- Offset += Subtable->Length; -+ Offset += SubLength; - Subtable = ACPI_ADD_PTR (ACPI_DBG2_DEVICE, Subtable, -- Subtable->Length); -+ SubLength); - } - } - -@@ -522,17 +537,20 @@ AcpiDmDumpDmar ( - { - ACPI_STATUS Status; - ACPI_DMAR_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; -+ UINT16 SubLength; - UINT32 Offset = sizeof (ACPI_TABLE_DMAR); - ACPI_DMTABLE_INFO *InfoTable; - ACPI_DMAR_DEVICE_SCOPE *ScopeTable; - UINT32 ScopeOffset; - UINT8 *PciPath; - UINT32 PathOffset; -+ UINT16 SubType; - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDmar); - if (ACPI_FAILURE (Status)) - { -@@ -542,13 +560,14 @@ AcpiDmDumpDmar ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -+ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -- Subtable->Length, AcpiDmTableInfoDmarHdr); -+ SubLength, AcpiDmTableInfoDmarHdr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -556,7 +575,8 @@ AcpiDmDumpDmar ( - - AcpiOsPrintf ("\n"); - -- switch (Subtable->Type) -+ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); -+ switch (SubType) - { - case ACPI_DMAR_TYPE_HARDWARE_UNIT: - -@@ -591,12 +611,12 @@ AcpiDmDumpDmar ( - default: - - AcpiOsPrintf ("\n**** Unknown DMAR subtable type 0x%X\n\n", -- Subtable->Type); -+ SubType); - return; - } - - Status = AcpiDmDumpTable (Length, Offset, Subtable, -- Subtable->Length, InfoTable); -+ SubLength, InfoTable); - if (ACPI_FAILURE (Status)) - { - return; -@@ -605,8 +625,8 @@ AcpiDmDumpDmar ( - /* - * Dump the optional device scope entries - */ -- if ((Subtable->Type == ACPI_DMAR_TYPE_HARDWARE_AFFINITY) || -- (Subtable->Type == ACPI_DMAR_TYPE_NAMESPACE)) -+ if ((SubType == ACPI_DMAR_TYPE_HARDWARE_AFFINITY) || -+ (SubType == ACPI_DMAR_TYPE_NAMESPACE)) - { - /* These types do not support device scopes */ - -@@ -614,7 +634,7 @@ AcpiDmDumpDmar ( - } - - ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE, Subtable, ScopeOffset); -- while (ScopeOffset < Subtable->Length) -+ while (ScopeOffset < SubLength) - { - AcpiOsPrintf ("\n"); - Status = AcpiDmDumpTable (Length, Offset + ScopeOffset, ScopeTable, -@@ -655,9 +675,8 @@ AcpiDmDumpDmar ( - NextSubtable: - /* Point to next subtable */ - -- Offset += Subtable->Length; -- Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Subtable, -- Subtable->Length); -+ Offset += SubLength; -+ Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Subtable, SubLength); - } - } - -@@ -684,12 +703,15 @@ AcpiDmDumpDrtm ( - ACPI_DRTM_RESOURCE_LIST *DrtmRl; - ACPI_DRTM_DPS_ID *DrtmDps; - UINT32 Count; -+ UINT32 ValidatedCount; -+ UINT32 ResourceCount; -+ UINT32 Length; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, -- AcpiDmTableInfoDrtm); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDrtm); - if (ACPI_FAILURE (Status)) - { - return; -@@ -703,7 +725,7 @@ AcpiDmDumpDrtm ( - - DrtmVtl = ACPI_ADD_PTR (ACPI_DRTM_VTABLE_LIST, Table, Offset); - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, -+ Status = AcpiDmDumpTable (Length, Offset, - DrtmVtl, ACPI_OFFSET (ACPI_DRTM_VTABLE_LIST, ValidatedTables), - AcpiDmTableInfoDrtm0); - if (ACPI_FAILURE (Status)) -@@ -716,10 +738,11 @@ AcpiDmDumpDrtm ( - /* Dump Validated table addresses */ - - Count = 0; -- while ((Offset < Table->Length) && -- (DrtmVtl->ValidatedTableCount > Count)) -+ ACPI_MOVE_32_TO_32(&ValidatedCount, &DrtmVtl->ValidatedTableCount); -+ while ((Offset < Length) && -+ (ValidatedCount > Count)) - { -- Status = AcpiDmDumpTable (Table->Length, Offset, -+ Status = AcpiDmDumpTable (Length, Offset, - ACPI_ADD_PTR (void, Table, Offset), sizeof (UINT64), - AcpiDmTableInfoDrtm0a); - if (ACPI_FAILURE (Status)) -@@ -735,7 +758,7 @@ AcpiDmDumpDrtm ( - - DrtmRl = ACPI_ADD_PTR (ACPI_DRTM_RESOURCE_LIST, Table, Offset); - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, -+ Status = AcpiDmDumpTable (Length, Offset, - DrtmRl, ACPI_OFFSET (ACPI_DRTM_RESOURCE_LIST, Resources), - AcpiDmTableInfoDrtm1); - if (ACPI_FAILURE (Status)) -@@ -748,10 +771,11 @@ AcpiDmDumpDrtm ( - /* Dump the Resource List */ - - Count = 0; -- while ((Offset < Table->Length) && -- (DrtmRl->ResourceCount > Count)) -+ ACPI_MOVE_32_TO_32(&ResourceCount, &DrtmRl->ResourceCount); -+ while ((Offset < Length) && -+ (ResourceCount > Count)) - { -- Status = AcpiDmDumpTable (Table->Length, Offset, -+ Status = AcpiDmDumpTable (Length, Offset, - ACPI_ADD_PTR (void, Table, Offset), - sizeof (ACPI_DRTM_RESOURCE), AcpiDmTableInfoDrtm1a); - if (ACPI_FAILURE (Status)) -@@ -767,7 +791,7 @@ AcpiDmDumpDrtm ( - - DrtmDps = ACPI_ADD_PTR (ACPI_DRTM_DPS_ID, Table, Offset); - AcpiOsPrintf ("\n"); -- (void) AcpiDmDumpTable (Table->Length, Offset, -+ (void) AcpiDmDumpTable (Length, Offset, - DrtmDps, sizeof (ACPI_DRTM_DPS_ID), AcpiDmTableInfoDrtm2); - } - -@@ -791,12 +815,13 @@ AcpiDmDumpEinj ( - { - ACPI_STATUS Status; - ACPI_WHEA_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_EINJ); - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoEinj); - if (ACPI_FAILURE (Status)) - { -@@ -806,7 +831,7 @@ AcpiDmDumpEinj ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - AcpiOsPrintf ("\n"); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -@@ -844,12 +869,13 @@ AcpiDmDumpErst ( - { - ACPI_STATUS Status; - ACPI_WHEA_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_ERST); - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoErst); - if (ACPI_FAILURE (Status)) - { -@@ -859,7 +885,7 @@ AcpiDmDumpErst ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - AcpiOsPrintf ("\n"); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -@@ -897,17 +923,19 @@ AcpiDmDumpFpdt ( - { - ACPI_STATUS Status; - ACPI_FPDT_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_FPDT); - ACPI_DMTABLE_INFO *InfoTable; -+ UINT16 Type; - - - /* There is no main table (other than the standard ACPI header) */ - - /* Subtables */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - -@@ -919,7 +947,8 @@ AcpiDmDumpFpdt ( - return; - } - -- switch (Subtable->Type) -+ ACPI_MOVE_16_TO_16(&Type, &Subtable->Type); -+ switch (Type) - { - case ACPI_FPDT_TYPE_BOOT: - -@@ -933,8 +962,7 @@ AcpiDmDumpFpdt ( - - default: - -- AcpiOsPrintf ("\n**** Unknown FPDT subtable type 0x%X\n\n", -- Subtable->Type); -+ AcpiOsPrintf ("\n**** Unknown FPDT subtable type 0x%X\n\n", Type); - - /* Attempt to continue */ - -@@ -982,16 +1010,19 @@ AcpiDmDumpGtdt ( - { - ACPI_STATUS Status; - ACPI_GTDT_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; -+ UINT16 SubLength; - UINT32 Offset = sizeof (ACPI_TABLE_GTDT); - ACPI_DMTABLE_INFO *InfoTable; - UINT32 SubtableLength; - UINT32 GtCount; -+ UINT32 Tmp32; - ACPI_GTDT_TIMER_ENTRY *GtxTable; - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoGtdt); - if (ACPI_FAILURE (Status)) - { -@@ -1018,7 +1049,7 @@ AcpiDmDumpGtdt ( - - /* Subtables */ - -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - -@@ -1036,8 +1067,9 @@ AcpiDmDumpGtdt ( - case ACPI_GTDT_TYPE_TIMER_BLOCK: - - SubtableLength = sizeof (ACPI_GTDT_TIMER_BLOCK); -- GtCount = (ACPI_CAST_PTR (ACPI_GTDT_TIMER_BLOCK, -+ Tmp32 = (ACPI_CAST_PTR (ACPI_GTDT_TIMER_BLOCK, - Subtable))->TimerCount; -+ ACPI_MOVE_32_TO_32(&GtCount, &Tmp32); - - InfoTable = AcpiDmTableInfoGtdt0; - break; -@@ -1058,8 +1090,9 @@ AcpiDmDumpGtdt ( - return; - } - -+ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -- Subtable->Length, InfoTable); -+ SubLength, InfoTable); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1118,16 +1151,18 @@ AcpiDmDumpHest ( - { - ACPI_STATUS Status; - ACPI_HEST_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_HEST); - ACPI_DMTABLE_INFO *InfoTable; - UINT32 SubtableLength; - UINT32 BankCount; - ACPI_HEST_IA_ERROR_BANK *BankTable; -+ UINT16 SubType; - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHest); - if (ACPI_FAILURE (Status)) - { -@@ -1137,10 +1172,11 @@ AcpiDmDumpHest ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_HEST_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - BankCount = 0; -- switch (Subtable->Type) -+ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); -+ switch (SubType) - { - case ACPI_HEST_TYPE_IA32_CHECK: - -Index: acpica-unix-20190816/source/common/dmtbdump2.c -=================================================================== ---- acpica-unix-20190816.orig/source/common/dmtbdump2.c -+++ acpica-unix-20190816/source/common/dmtbdump2.c -@@ -75,15 +75,21 @@ AcpiDmDumpIort ( - ACPI_IORT_SMMU *IortSmmu = NULL; - UINT32 Offset; - UINT32 NodeOffset; -+ UINT16 NodeLength; - UINT32 Length; - ACPI_DMTABLE_INFO *InfoTable; - char *String; - UINT32 i; -- -+ UINT32 TableLen; -+ UINT32 ItsCount; -+ UINT32 MappingCount; -+ UINT32 CtxIntCount; -+ UINT32 PmuIntCount; - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIort); -+ ACPI_MOVE_32_TO_32(&TableLen, &Table->Length); -+ Status = AcpiDmDumpTable (TableLen, 0, Table, 0, AcpiDmTableInfoIort); - if (ACPI_FAILURE (Status)) - { - return; -@@ -94,18 +100,19 @@ AcpiDmDumpIort ( - - /* Dump the OptionalPadding (optional) */ - -- if (Iort->NodeOffset > Offset) -+ ACPI_MOVE_32_TO_32(&NodeOffset, &Iort->NodeOffset); -+ if (NodeOffset > Offset) - { -- Status = AcpiDmDumpTable (Table->Length, Offset, Table, -- Iort->NodeOffset - Offset, AcpiDmTableInfoIortPad); -+ Status = AcpiDmDumpTable (TableLen, Offset, Table, -+ NodeOffset - Offset, AcpiDmTableInfoIortPad); - if (ACPI_FAILURE (Status)) - { - return; - } - } - -- Offset = Iort->NodeOffset; -- while (Offset < Table->Length) -+ ACPI_MOVE_32_TO_32(&Offset, &Iort->NodeOffset); -+ while (Offset < TableLen) - { - /* Common subtable header */ - -@@ -141,7 +148,8 @@ AcpiDmDumpIort ( - case ACPI_IORT_NODE_PCI_ROOT_COMPLEX: - - InfoTable = AcpiDmTableInfoIort2; -- Length = IortNode->Length - NodeOffset; -+ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); -+ Length = NodeLength - NodeOffset; - break; - - case ACPI_IORT_NODE_SMMU: -@@ -154,7 +162,8 @@ AcpiDmDumpIort ( - case ACPI_IORT_NODE_SMMU_V3: - - InfoTable = AcpiDmTableInfoIort4; -- Length = IortNode->Length - NodeOffset; -+ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); -+ Length = NodeLength - NodeOffset; - break; - - case ACPI_IORT_NODE_PMCG: -@@ -170,7 +179,8 @@ AcpiDmDumpIort ( - - /* Attempt to continue */ - -- if (!IortNode->Length) -+ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); -+ if (!NodeLength) - { - AcpiOsPrintf ("Invalid zero length IORT node\n"); - return; -@@ -181,7 +191,7 @@ AcpiDmDumpIort ( - /* Dump the node subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, -+ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, - ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), - Length, InfoTable); - if (ACPI_FAILURE (Status)) -@@ -201,9 +211,10 @@ AcpiDmDumpIort ( - - if (IortItsGroup) - { -- for (i = 0; i < IortItsGroup->ItsCount; i++) -+ ACPI_MOVE_32_TO_32(&ItsCount, &IortItsGroup->ItsCount); -+ for (i = 0; i < ItsCount; i++) - { -- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, -+ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, - ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), - 4, AcpiDmTableInfoIort0a); - NodeOffset += 4; -@@ -215,11 +226,11 @@ AcpiDmDumpIort ( - - /* Dump the Padding (optional) */ - -- if (IortNode->Length > NodeOffset) -+ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); -+ if (NodeLength > NodeOffset) - { -- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, -- Table, IortNode->Length - NodeOffset, -- AcpiDmTableInfoIort1a); -+ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, -+ Table, NodeLength - NodeOffset, AcpiDmTableInfoIort1a); - if (ACPI_FAILURE (Status)) - { - return; -@@ -236,8 +247,8 @@ AcpiDmDumpIort ( - if (IortSmmu) - { - Length = 2 * sizeof (UINT64); -- NodeOffset = IortSmmu->GlobalInterruptOffset; -- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, -+ ACPI_MOVE_32_TO_32(&NodeOffset, &IortSmmu->GlobalInterruptOffset); -+ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, - ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), - Length, AcpiDmTableInfoIort3a); - if (ACPI_FAILURE (Status)) -@@ -245,10 +256,11 @@ AcpiDmDumpIort ( - return; - } - -- NodeOffset = IortSmmu->ContextInterruptOffset; -- for (i = 0; i < IortSmmu->ContextInterruptCount; i++) -+ ACPI_MOVE_32_TO_32(&NodeOffset, &IortSmmu->ContextInterruptOffset); -+ ACPI_MOVE_32_TO_32(&CtxIntCount, &IortSmmu->ContextInterruptCount); -+ for (i = 0; i < CtxIntCount; i++) - { -- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, -+ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, - ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), - 8, AcpiDmTableInfoIort3b); - if (ACPI_FAILURE (Status)) -@@ -259,10 +271,11 @@ AcpiDmDumpIort ( - NodeOffset += 8; - } - -- NodeOffset = IortSmmu->PmuInterruptOffset; -- for (i = 0; i < IortSmmu->PmuInterruptCount; i++) -+ ACPI_MOVE_32_TO_32(&NodeOffset, &IortSmmu->PmuInterruptOffset); -+ ACPI_MOVE_32_TO_32(&PmuIntCount, &IortSmmu->PmuInterruptCount); -+ for (i = 0; i < PmuIntCount; i++) - { -- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, -+ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, - ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), - 8, AcpiDmTableInfoIort3c); - if (ACPI_FAILURE (Status)) -@@ -282,12 +295,13 @@ AcpiDmDumpIort ( - - /* Dump the ID mappings */ - -- NodeOffset = IortNode->MappingOffset; -- for (i = 0; i < IortNode->MappingCount; i++) -+ ACPI_MOVE_32_TO_32(&NodeOffset, &IortNode->MappingOffset); -+ ACPI_MOVE_32_TO_32(&MappingCount, &IortNode->MappingCount); -+ for (i = 0; i < MappingCount; i++) - { - AcpiOsPrintf ("\n"); - Length = sizeof (ACPI_IORT_ID_MAPPING); -- Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, -+ Status = AcpiDmDumpTable (TableLen, Offset + NodeOffset, - ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), - Length, AcpiDmTableInfoIortMap); - if (ACPI_FAILURE (Status)) -@@ -301,8 +315,9 @@ AcpiDmDumpIort ( - NextSubtable: - /* Point to next node subtable */ - -- Offset += IortNode->Length; -- IortNode = ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, IortNode->Length); -+ ACPI_MOVE_16_TO_16(&NodeLength, &IortNode->Length); -+ Offset += NodeLength; -+ IortNode = ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeLength); - } - } - -@@ -333,11 +348,14 @@ AcpiDmDumpIvrs ( - ACPI_IVRS_DE_HEADER *DeviceEntry; - ACPI_IVRS_HEADER *Subtable; - ACPI_DMTABLE_INFO *InfoTable; -+ UINT32 Length; -+ UINT16 SubLength; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIvrs); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoIvrs); - if (ACPI_FAILURE (Status)) - { - return; -@@ -346,13 +364,14 @@ AcpiDmDumpIvrs ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Subtable->Length, AcpiDmTableInfoIvrsHdr); -+ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, -+ SubLength, AcpiDmTableInfoIvrsHdr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -379,7 +398,7 @@ AcpiDmDumpIvrs ( - - /* Attempt to continue */ - -- if (!Subtable->Length) -+ if (!SubLength) - { - AcpiOsPrintf ("Invalid zero length subtable\n"); - return; -@@ -390,8 +409,8 @@ AcpiDmDumpIvrs ( - /* Dump the subtable */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Subtable->Length, InfoTable); -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, -+ SubLength, InfoTable); - if (ACPI_FAILURE (Status)) - { - return; -@@ -405,7 +424,7 @@ AcpiDmDumpIvrs ( - DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, - sizeof (ACPI_IVRS_HARDWARE)); - -- while (EntryOffset < (Offset + Subtable->Length)) -+ while (EntryOffset < (Offset + SubLength)) - { - AcpiOsPrintf ("\n"); - /* -@@ -467,7 +486,7 @@ AcpiDmDumpIvrs ( - - /* Dump the Device Entry */ - -- Status = AcpiDmDumpTable (Table->Length, EntryOffset, -+ Status = AcpiDmDumpTable (Length, EntryOffset, - DeviceEntry, EntryLength, InfoTable); - if (ACPI_FAILURE (Status)) - { -@@ -483,8 +502,8 @@ AcpiDmDumpIvrs ( - NextSubtable: - /* Point to next subtable */ - -- Offset += Subtable->Length; -- Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Subtable, Subtable->Length); -+ Offset += SubLength; -+ Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Subtable, SubLength); - } - } - -@@ -510,7 +529,7 @@ AcpiDmDumpLpit ( - { - ACPI_STATUS Status; - ACPI_LPIT_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_LPIT); - ACPI_DMTABLE_INFO *InfoTable; - UINT32 SubtableLength; -@@ -518,8 +537,9 @@ AcpiDmDumpLpit ( - - /* Subtables */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Subtable = ACPI_ADD_PTR (ACPI_LPIT_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - -@@ -583,13 +603,14 @@ AcpiDmDumpMadt ( - { - ACPI_STATUS Status; - ACPI_SUBTABLE_HEADER *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_MADT); - ACPI_DMTABLE_INFO *InfoTable; - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt); - if (ACPI_FAILURE (Status)) - { -@@ -599,7 +620,7 @@ AcpiDmDumpMadt ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - -@@ -745,11 +766,13 @@ AcpiDmDumpMcfg ( - ACPI_STATUS Status; - UINT32 Offset = sizeof (ACPI_TABLE_MCFG); - ACPI_MCFG_ALLOCATION *Subtable; -+ UINT32 Len; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMcfg); -+ ACPI_MOVE_32_TO_32(&Len, &Table->Length); -+ Status = AcpiDmDumpTable (Len, 0, Table, 0, AcpiDmTableInfoMcfg); - if (ACPI_FAILURE (Status)) - { - return; -@@ -758,17 +781,17 @@ AcpiDmDumpMcfg ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_MCFG_ALLOCATION, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Len) - { -- if (Offset + sizeof (ACPI_MCFG_ALLOCATION) > Table->Length) -+ if (Offset + sizeof (ACPI_MCFG_ALLOCATION) > Len) - { - AcpiOsPrintf ("Warning: there are %u invalid trailing bytes\n", -- (UINT32) sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Table->Length)); -+ (UINT32) sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Len)); - return; - } - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Len, Offset, Subtable, - sizeof (ACPI_MCFG_ALLOCATION), AcpiDmTableInfoMcfg0); - if (ACPI_FAILURE (Status)) - { -@@ -802,6 +825,7 @@ AcpiDmDumpMpst ( - { - ACPI_STATUS Status; - UINT32 Offset = sizeof (ACPI_TABLE_MPST); -+ ACPI_TABLE_MPST *Mpst; - ACPI_MPST_POWER_NODE *Subtable0; - ACPI_MPST_POWER_STATE *Subtable0A; - ACPI_MPST_COMPONENT *Subtable0B; -@@ -810,11 +834,13 @@ AcpiDmDumpMpst ( - UINT16 SubtableCount; - UINT32 PowerStateCount; - UINT32 ComponentCount; -+ UINT32 Length; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMpst); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMpst); - if (ACPI_FAILURE (Status)) - { - return; -@@ -822,13 +848,14 @@ AcpiDmDumpMpst ( - - /* Subtable: Memory Power Node(s) */ - -- SubtableCount = (ACPI_CAST_PTR (ACPI_TABLE_MPST, Table))->PowerNodeCount; -+ Mpst = ACPI_CAST_PTR (ACPI_TABLE_MPST, Table); -+ ACPI_MOVE_16_TO_16(&SubtableCount, &Mpst->PowerNodeCount); - Subtable0 = ACPI_ADD_PTR (ACPI_MPST_POWER_NODE, Table, Offset); - -- while ((Offset < Table->Length) && SubtableCount) -+ while ((Offset < Length) && SubtableCount) - { - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable0, - sizeof (ACPI_MPST_POWER_NODE), AcpiDmTableInfoMpst0); - if (ACPI_FAILURE (Status)) - { -@@ -837,8 +864,8 @@ AcpiDmDumpMpst ( - - /* Extract the sub-subtable counts */ - -- PowerStateCount = Subtable0->NumPowerStates; -- ComponentCount = Subtable0->NumPhysicalComponents; -+ ACPI_MOVE_32_TO_32(&PowerStateCount, &Subtable0->NumPowerStates); -+ ACPI_MOVE_32_TO_32(&ComponentCount, &Subtable0->NumPhysicalComponents); - Offset += sizeof (ACPI_MPST_POWER_NODE); - - /* Sub-subtables - Memory Power State Structure(s) */ -@@ -849,7 +876,7 @@ AcpiDmDumpMpst ( - while (PowerStateCount) - { - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0A, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable0A, - sizeof (ACPI_MPST_POWER_STATE), AcpiDmTableInfoMpst0A); - if (ACPI_FAILURE (Status)) - { -@@ -859,7 +886,7 @@ AcpiDmDumpMpst ( - Subtable0A++; - PowerStateCount--; - Offset += sizeof (ACPI_MPST_POWER_STATE); -- } -+ } - - /* Sub-subtables - Physical Component ID Structure(s) */ - -@@ -872,7 +899,7 @@ AcpiDmDumpMpst ( - - while (ComponentCount) - { -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0B, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable0B, - sizeof (ACPI_MPST_COMPONENT), AcpiDmTableInfoMpst0B); - if (ACPI_FAILURE (Status)) - { -@@ -887,17 +914,19 @@ AcpiDmDumpMpst ( - /* Point to next Memory Power Node subtable */ - - SubtableCount--; -+ ACPI_MOVE_32_TO_32(&PowerStateCount, &Subtable0->NumPowerStates); -+ ACPI_MOVE_32_TO_32(&ComponentCount, &Subtable0->NumPhysicalComponents); - Subtable0 = ACPI_ADD_PTR (ACPI_MPST_POWER_NODE, Subtable0, - sizeof (ACPI_MPST_POWER_NODE) + -- (sizeof (ACPI_MPST_POWER_STATE) * Subtable0->NumPowerStates) + -- (sizeof (ACPI_MPST_COMPONENT) * Subtable0->NumPhysicalComponents)); -+ (sizeof (ACPI_MPST_POWER_STATE) * PowerStateCount) + -+ (sizeof (ACPI_MPST_COMPONENT) * ComponentCount)); - } - - /* Subtable: Count of Memory Power State Characteristic structures */ - - AcpiOsPrintf ("\n"); - Subtable1 = ACPI_CAST_PTR (ACPI_MPST_DATA_HDR, Subtable0); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable1, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable1, - sizeof (ACPI_MPST_DATA_HDR), AcpiDmTableInfoMpst1); - if (ACPI_FAILURE (Status)) - { -@@ -912,10 +941,10 @@ AcpiDmDumpMpst ( - Subtable2 = ACPI_ADD_PTR (ACPI_MPST_POWER_DATA, Subtable1, - sizeof (ACPI_MPST_DATA_HDR)); - -- while ((Offset < Table->Length) && SubtableCount) -+ while ((Offset < Length) && SubtableCount) - { - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable2, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable2, - sizeof (ACPI_MPST_POWER_DATA), AcpiDmTableInfoMpst2); - if (ACPI_FAILURE (Status)) - { -@@ -948,11 +977,13 @@ AcpiDmDumpMsct ( - ACPI_STATUS Status; - UINT32 Offset = sizeof (ACPI_TABLE_MSCT); - ACPI_MSCT_PROXIMITY *Subtable; -+ UINT32 Length; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMsct); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMsct); - if (ACPI_FAILURE (Status)) - { - return; -@@ -961,12 +992,12 @@ AcpiDmDumpMsct ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - sizeof (ACPI_MSCT_PROXIMITY), AcpiDmTableInfoMsct0); - if (ACPI_FAILURE (Status)) - { -@@ -1001,11 +1032,13 @@ AcpiDmDumpMtmr ( - ACPI_STATUS Status; - UINT32 Offset = sizeof (ACPI_TABLE_MTMR); - ACPI_MTMR_ENTRY *Subtable; -+ UINT32 Length; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMtmr); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMtmr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1014,12 +1047,12 @@ AcpiDmDumpMtmr ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_MTMR_ENTRY, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - sizeof (ACPI_MTMR_ENTRY), AcpiDmTableInfoMtmr0); - if (ACPI_FAILURE (Status)) - { -@@ -1061,11 +1094,17 @@ AcpiDmDumpNfit ( - ACPI_NFIT_SMBIOS *SmbiosInfo = NULL; - ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; - UINT32 i; -+ UINT32 TableLength; -+ UINT16 SubLength; -+ UINT16 SubType; -+ UINT32 Count; -+ UINT16 Count16; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoNfit); -+ ACPI_MOVE_32_TO_32(&TableLength, &Table->Length); -+ Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoNfit); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1074,19 +1113,21 @@ AcpiDmDumpNfit ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < TableLength) - { - /* NFIT subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Subtable->Length, AcpiDmTableInfoNfitHdr); -+ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); -+ Status = AcpiDmDumpTable (TableLength, Offset, Subtable, -+ SubLength, AcpiDmTableInfoNfitHdr); - if (ACPI_FAILURE (Status)) - { - return; - } - -- switch (Subtable->Type) -+ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); -+ switch (SubType) - { - case ACPI_NFIT_TYPE_SYSTEM_ADDRESS: - -@@ -1143,7 +1184,7 @@ AcpiDmDumpNfit ( - - /* Attempt to continue */ - -- if (!Subtable->Length) -+ if (!SubLength) - { - AcpiOsPrintf ("Invalid zero length subtable\n"); - return; -@@ -1152,8 +1193,8 @@ AcpiDmDumpNfit ( - } - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Subtable->Length, InfoTable); -+ Status = AcpiDmDumpTable (TableLength, Offset, Subtable, -+ SubLength, InfoTable); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1161,13 +1202,14 @@ AcpiDmDumpNfit ( - - /* Per-subtable variable-length fields */ - -- switch (Subtable->Type) -+ switch (SubType) - { - case ACPI_NFIT_TYPE_INTERLEAVE: - -- for (i = 0; i < Interleave->LineCount; i++) -+ ACPI_MOVE_32_TO_32(&Count, &Interleave->LineCount); -+ for (i = 0; i < Count; i++) - { -- Status = AcpiDmDumpTable (Table->Length, Offset + FieldOffset, -+ Status = AcpiDmDumpTable (TableLength, Offset + FieldOffset, - &Interleave->LineOffset[i], - sizeof (UINT32), AcpiDmTableInfoNfit2a); - if (ACPI_FAILURE (Status)) -@@ -1181,12 +1223,11 @@ AcpiDmDumpNfit ( - - case ACPI_NFIT_TYPE_SMBIOS: - -- Length = Subtable->Length - -- sizeof (ACPI_NFIT_SMBIOS) + sizeof (UINT8); -+ Length = SubLength - sizeof (ACPI_NFIT_SMBIOS) + sizeof (UINT8); - - if (Length) - { -- Status = AcpiDmDumpTable (Table->Length, -+ Status = AcpiDmDumpTable (TableLength, - sizeof (ACPI_NFIT_SMBIOS) - sizeof (UINT8), - SmbiosInfo, - Length, AcpiDmTableInfoNfit3a); -@@ -1200,9 +1241,10 @@ AcpiDmDumpNfit ( - - case ACPI_NFIT_TYPE_FLUSH_ADDRESS: - -- for (i = 0; i < Hint->HintCount; i++) -+ ACPI_MOVE_16_TO_16(&Count16, &Hint->HintCount); -+ for (i = 0; i < Count16; i++) - { -- Status = AcpiDmDumpTable (Table->Length, Offset + FieldOffset, -+ Status = AcpiDmDumpTable (TableLength, Offset + FieldOffset, - &Hint->HintAddress[i], - sizeof (UINT64), AcpiDmTableInfoNfit6a); - if (ACPI_FAILURE (Status)) -@@ -1221,8 +1263,8 @@ AcpiDmDumpNfit ( - NextSubtable: - /* Point to next subtable */ - -- Offset += Subtable->Length; -- Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Subtable, Subtable->Length); -+ Offset += SubLength; -+ Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Subtable, SubLength); - } - } - -@@ -1247,12 +1289,13 @@ AcpiDmDumpPcct ( - ACPI_STATUS Status; - ACPI_PCCT_SUBSPACE *Subtable; - ACPI_DMTABLE_INFO *InfoTable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_PCCT); - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPcct); - if (ACPI_FAILURE (Status)) - { -@@ -1262,7 +1305,7 @@ AcpiDmDumpPcct ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_PCCT_SUBSPACE, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - -@@ -1402,16 +1445,21 @@ AcpiDmDumpPmtt ( - ACPI_PMTT_HEADER *MemSubtable; - ACPI_PMTT_HEADER *DimmSubtable; - ACPI_PMTT_DOMAIN *DomainArray; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 Offset = sizeof (ACPI_TABLE_PMTT); - UINT32 MemOffset; - UINT32 DimmOffset; - UINT32 DomainOffset; -- UINT32 DomainCount; -+ UINT16 DomainCount; -+ UINT16 SubLength; -+ UINT16 Tmp16; -+ UINT16 MemLength; -+ UINT16 DimmLength; - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPmtt); - if (ACPI_FAILURE (Status)) - { -@@ -1421,13 +1469,14 @@ AcpiDmDumpPmtt ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -+ ACPI_MOVE_16_TO_16(&SubLength, &Subtable->Length); - Status = AcpiDmDumpTable (Length, Offset, Subtable, -- Subtable->Length, AcpiDmTableInfoPmttHdr); -+ SubLength, AcpiDmTableInfoPmttHdr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1446,7 +1495,7 @@ AcpiDmDumpPmtt ( - /* Dump the fixed-length portion of the subtable */ - - Status = AcpiDmDumpTable (Length, Offset, Subtable, -- Subtable->Length, AcpiDmTableInfoPmtt0); -+ SubLength, AcpiDmTableInfoPmtt0); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1458,15 +1507,16 @@ AcpiDmDumpPmtt ( - MemSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, - sizeof (ACPI_PMTT_SOCKET)); - -- while (((Offset + MemOffset) < Table->Length) && -- (MemOffset < Subtable->Length)) -+ while (((Offset + MemOffset) < Length) && -+ (MemOffset < SubLength)) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -+ ACPI_MOVE_16_TO_16(&MemLength, &MemSubtable->Length); - Status = AcpiDmDumpTable (Length, - Offset + MemOffset, MemSubtable, -- MemSubtable->Length, AcpiDmTableInfoPmttHdr); -+ MemLength, AcpiDmTableInfoPmttHdr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1486,7 +1536,7 @@ AcpiDmDumpPmtt ( - - Status = AcpiDmDumpTable (Length, - Offset + MemOffset, MemSubtable, -- MemSubtable->Length, AcpiDmTableInfoPmtt1); -+ MemLength, AcpiDmTableInfoPmtt1); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1494,13 +1544,14 @@ AcpiDmDumpPmtt ( - - /* Walk the variable count of proximity domains */ - -- DomainCount = ((ACPI_PMTT_CONTROLLER *) MemSubtable)->DomainCount; -+ Tmp16 = ((ACPI_PMTT_CONTROLLER *) MemSubtable)->DomainCount; -+ ACPI_MOVE_16_TO_16(&DomainCount, &Tmp16); - DomainOffset = sizeof (ACPI_PMTT_CONTROLLER); - DomainArray = ACPI_ADD_PTR (ACPI_PMTT_DOMAIN, MemSubtable, - sizeof (ACPI_PMTT_CONTROLLER)); - -- while (((Offset + MemOffset + DomainOffset) < Table->Length) && -- ((MemOffset + DomainOffset) < Subtable->Length) && -+ while (((Offset + MemOffset + DomainOffset) < Length) && -+ ((MemOffset + DomainOffset) < SubLength) && - DomainCount) - { - Status = AcpiDmDumpTable (Length, -@@ -1528,15 +1579,16 @@ AcpiDmDumpPmtt ( - DimmSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, MemSubtable, - DomainOffset); - -- while (((Offset + MemOffset + DimmOffset) < Table->Length) && -- (DimmOffset < MemSubtable->Length)) -+ while (((Offset + MemOffset + DimmOffset) < Length) && -+ (DimmOffset < MemLength)) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -+ ACPI_MOVE_16_TO_16(&DimmLength, &DimmSubtable->Length); - Status = AcpiDmDumpTable (Length, - Offset + MemOffset + DimmOffset, DimmSubtable, -- DimmSubtable->Length, AcpiDmTableInfoPmttHdr); -+ DimmLength, AcpiDmTableInfoPmttHdr); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1556,7 +1608,7 @@ AcpiDmDumpPmtt ( - - Status = AcpiDmDumpTable (Length, - Offset + MemOffset + DimmOffset, DimmSubtable, -- DimmSubtable->Length, AcpiDmTableInfoPmtt2); -+ DimmLength, AcpiDmTableInfoPmtt2); - if (ACPI_FAILURE (Status)) - { - return; -@@ -1564,23 +1616,22 @@ AcpiDmDumpPmtt ( - - /* Point to next DIMM subtable */ - -- DimmOffset += DimmSubtable->Length; -+ DimmOffset += DimmLength; - DimmSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, -- DimmSubtable, DimmSubtable->Length); -+ DimmSubtable, DimmLength); - } - - /* Point to next Controller subtable */ - -- MemOffset += MemSubtable->Length; -+ MemOffset += MemLength; - MemSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, -- MemSubtable, MemSubtable->Length); -+ MemSubtable, MemLength); - } - - /* Point to next Socket subtable */ - -- Offset += Subtable->Length; -- Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, -- Subtable, Subtable->Length); -+ Offset += SubLength; -+ Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, SubLength); - } - } - -@@ -1736,6 +1787,8 @@ AcpiDmDumpS3pt ( - ACPI_FPDT_HEADER *Subtable; - ACPI_DMTABLE_INFO *InfoTable; - ACPI_TABLE_S3PT *S3ptTable = ACPI_CAST_PTR (ACPI_TABLE_S3PT, Tables); -+ UINT32 Length; -+ UINT16 SubType; - - - /* Main table */ -@@ -1746,20 +1799,22 @@ AcpiDmDumpS3pt ( - return 0; - } - -+ ACPI_MOVE_32_TO_32(&Length, &S3ptTable->Length); - Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, S3ptTable, Offset); -- while (Offset < S3ptTable->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (S3ptTable->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - Subtable->Length, AcpiDmTableInfoS3ptHdr); - if (ACPI_FAILURE (Status)) - { - return 0; - } - -- switch (Subtable->Type) -+ ACPI_MOVE_16_TO_16(&SubType, &Subtable->Type); -+ switch (SubType) - { - case ACPI_S3PT_TYPE_RESUME: - -@@ -1774,7 +1829,7 @@ AcpiDmDumpS3pt ( - default: - - AcpiOsPrintf ("\n**** Unknown S3PT subtable type 0x%X\n", -- Subtable->Type); -+ SubType); - - /* Attempt to continue */ - -@@ -1787,7 +1842,7 @@ AcpiDmDumpS3pt ( - } - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (S3ptTable->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - Subtable->Length, InfoTable); - if (ACPI_FAILURE (Status)) - { -Index: acpica-unix-20190816/source/common/dmtbdump3.c -=================================================================== ---- acpica-unix-20190816.orig/source/common/dmtbdump3.c -+++ acpica-unix-20190816/source/common/dmtbdump3.c -@@ -68,9 +68,11 @@ void - AcpiDmDumpSlic ( - ACPI_TABLE_HEADER *Table) - { -+ UINT32 Length; - -- (void) AcpiDmDumpTable (Table->Length, sizeof (ACPI_TABLE_HEADER), Table, -- Table->Length - sizeof (*Table), AcpiDmTableInfoSlic); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ (void) AcpiDmDumpTable (Length, sizeof (ACPI_TABLE_HEADER), Table, -+ Length - sizeof (*Table), AcpiDmTableInfoSlic); - } - - -@@ -93,14 +95,17 @@ AcpiDmDumpSlit ( - ACPI_STATUS Status; - UINT32 Offset; - UINT8 *Row; -- UINT32 Localities; -+ UINT64 Localities; - UINT32 i; - UINT32 j; -+ UINT32 Length; -+ UINT64 Tmp64; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSlit); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSlit); - if (ACPI_FAILURE (Status)) - { - return; -@@ -108,7 +113,8 @@ AcpiDmDumpSlit ( - - /* Display the Locality NxN Matrix */ - -- Localities = (UINT32) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; -+ Tmp64 = (UINT64) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; -+ ACPI_MOVE_64_TO_64(&Localities, &Tmp64); - Offset = ACPI_OFFSET (ACPI_TABLE_SLIT, Entry[0]); - Row = (UINT8 *) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->Entry; - -@@ -121,7 +127,7 @@ AcpiDmDumpSlit ( - { - /* Check for beyond EOT */ - -- if (Offset >= Table->Length) -+ if (Offset >= Length) - { - AcpiOsPrintf ( - "\n**** Not enough room in table for all localities\n"); -@@ -173,11 +179,13 @@ AcpiDmDumpSrat ( - UINT32 Offset = sizeof (ACPI_TABLE_SRAT); - ACPI_SUBTABLE_HEADER *Subtable; - ACPI_DMTABLE_INFO *InfoTable; -+ UINT32 Length; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSrat); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSrat); - if (ACPI_FAILURE (Status)) - { - return; -@@ -186,12 +194,12 @@ AcpiDmDumpSrat ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - Subtable->Length, AcpiDmTableInfoSratHdr); - if (ACPI_FAILURE (Status)) - { -@@ -245,7 +253,7 @@ AcpiDmDumpSrat ( - } - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - Subtable->Length, InfoTable); - if (ACPI_FAILURE (Status)) - { -@@ -282,13 +290,14 @@ AcpiDmDumpStao ( - { - ACPI_STATUS Status; - char *Namepath; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT32 StringLength; - UINT32 Offset = sizeof (ACPI_TABLE_STAO); - - - /* Main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoStao); - if (ACPI_FAILURE (Status)) - { -@@ -297,7 +306,7 @@ AcpiDmDumpStao ( - - /* The rest of the table consists of Namepath strings */ - -- while (Offset < Table->Length) -+ while (Offset < Length) - { - Namepath = ACPI_ADD_PTR (char, Table, Offset); - StringLength = strlen (Namepath) + 1; -@@ -339,11 +348,14 @@ AcpiDmDumpTcpa ( - ACPI_TABLE_TCPA_HDR *Subtable = ACPI_ADD_PTR ( - ACPI_TABLE_TCPA_HDR, Table, Offset); - ACPI_STATUS Status; -+ UINT32 Length; -+ UINT16 PlatformClass; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, - 0, AcpiDmTableInfoTcpaHdr); - if (ACPI_FAILURE (Status)) - { -@@ -354,18 +366,19 @@ AcpiDmDumpTcpa ( - * Examine the PlatformClass field to determine the table type. - * Either a client or server table. Only one. - */ -- switch (CommonHeader->PlatformClass) -+ ACPI_MOVE_16_TO_16(&PlatformClass, &CommonHeader->PlatformClass); -+ switch (PlatformClass) - { - case ACPI_TCPA_CLIENT_TABLE: - -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Table->Length - Offset, AcpiDmTableInfoTcpaClient); -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, -+ Length - Offset, AcpiDmTableInfoTcpaClient); - break; - - case ACPI_TCPA_SERVER_TABLE: - -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -- Table->Length - Offset, AcpiDmTableInfoTcpaServer); -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, -+ Length - Offset, AcpiDmTableInfoTcpaServer); - break; - - default: -@@ -512,11 +525,13 @@ AcpiDmDumpVrtc ( - ACPI_STATUS Status; - UINT32 Offset = sizeof (ACPI_TABLE_VRTC); - ACPI_VRTC_ENTRY *Subtable; -+ UINT32 Length; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoVrtc); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoVrtc); - if (ACPI_FAILURE (Status)) - { - return; -@@ -525,12 +540,12 @@ AcpiDmDumpVrtc ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_VRTC_ENTRY, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - sizeof (ACPI_VRTC_ENTRY), AcpiDmTableInfoVrtc0); - if (ACPI_FAILURE (Status)) - { -@@ -565,11 +580,13 @@ AcpiDmDumpWdat ( - ACPI_STATUS Status; - UINT32 Offset = sizeof (ACPI_TABLE_WDAT); - ACPI_WDAT_ENTRY *Subtable; -+ UINT32 Length; - - - /* Main table */ - -- Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoWdat); -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); -+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoWdat); - if (ACPI_FAILURE (Status)) - { - return; -@@ -578,12 +595,12 @@ AcpiDmDumpWdat ( - /* Subtables */ - - Subtable = ACPI_ADD_PTR (ACPI_WDAT_ENTRY, Table, Offset); -- while (Offset < Table->Length) -+ while (Offset < Length) - { - /* Common subtable header */ - - AcpiOsPrintf ("\n"); -- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, -+ Status = AcpiDmDumpTable (Length, Offset, Subtable, - sizeof (ACPI_WDAT_ENTRY), AcpiDmTableInfoWdat0); - if (ACPI_FAILURE (Status)) - { -@@ -618,12 +635,13 @@ AcpiDmDumpWpbt ( - { - ACPI_STATUS Status; - ACPI_TABLE_WPBT *Subtable; -- UINT32 Length = Table->Length; -+ UINT32 Length; - UINT16 ArgumentsLength; - - - /* Dump the main table */ - -+ ACPI_MOVE_32_TO_32(&Length, &Table->Length); - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoWpbt); - if (ACPI_FAILURE (Status)) - { -@@ -633,10 +651,10 @@ AcpiDmDumpWpbt ( - /* Extract the arguments buffer length from the main table */ - - Subtable = ACPI_CAST_PTR (ACPI_TABLE_WPBT, Table); -- ArgumentsLength = Subtable->ArgumentsLength; -+ ACPI_MOVE_16_TO_16(&ArgumentsLength, &Subtable->ArgumentsLength); - - /* Dump the arguments buffer */ - -- (void) AcpiDmDumpTable (Table->Length, 0, Table, ArgumentsLength, -+ (void) AcpiDmDumpTable (Length, 0, Table, ArgumentsLength, - AcpiDmTableInfoWpbt0); - } -Index: acpica-unix-20190816/source/compiler/dtfield.c -=================================================================== ---- acpica-unix-20190816.orig/source/compiler/dtfield.c -+++ acpica-unix-20190816/source/compiler/dtfield.c +--- acpica-unix-20191018.orig/source/compiler/dtfield.c ++++ acpica-unix-20191018/source/compiler/dtfield.c @@ -361,7 +361,27 @@ DtCompileInteger ( DtError (ASL_ERROR, ASL_MSG_INTEGER_SIZE, Field, AslGbl_MsgBuffer); } @@ -4793,10 +2843,10 @@ Index: acpica-unix-20190816/source/compiler/dtfield.c return; } -Index: acpica-unix-20190816/source/compiler/dtsubtable.c +Index: acpica-unix-20191018/source/compiler/dtsubtable.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/dtsubtable.c -+++ acpica-unix-20190816/source/compiler/dtsubtable.c +--- acpica-unix-20191018.orig/source/compiler/dtsubtable.c ++++ acpica-unix-20191018/source/compiler/dtsubtable.c @@ -378,6 +378,21 @@ DtSetSubtableLength ( return; } @@ -4821,10 +2871,10 @@ Index: acpica-unix-20190816/source/compiler/dtsubtable.c + Subtable->SizeOfLengthField); + } } -Index: acpica-unix-20190816/source/compiler/dttable1.c +Index: acpica-unix-20191018/source/compiler/dttable1.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/dttable1.c -+++ acpica-unix-20190816/source/compiler/dttable1.c +--- acpica-unix-20191018.orig/source/compiler/dttable1.c ++++ acpica-unix-20191018/source/compiler/dttable1.c @@ -281,6 +281,8 @@ DtCompileCsrt ( DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 DescriptorCount; @@ -5196,10 +3246,10 @@ Index: acpica-unix-20190816/source/compiler/dttable1.c return (AE_OK); } -Index: acpica-unix-20190816/source/compiler/dttable2.c +Index: acpica-unix-20191018/source/compiler/dttable2.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/dttable2.c -+++ acpica-unix-20190816/source/compiler/dttable2.c +--- acpica-unix-20191018.orig/source/compiler/dttable2.c ++++ acpica-unix-20191018/source/compiler/dttable2.c @@ -345,7 +345,7 @@ DtCompileMpst ( DtPushSubtable (Subtable); @@ -5292,15 +3342,15 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c { case ACPI_S3PT_TYPE_RESUME: -@@ -1514,6 +1518,7 @@ DtCompileSlit ( - DT_FIELD *FieldList; +@@ -1517,6 +1521,7 @@ DtCompileSlit ( UINT32 Localities; + UINT32 LocalityListLength; UINT8 *LocalityBuffer; + UINT32 Tmp; Status = DtCompileTable (PFieldList, AcpiDmTableInfoSlit, -@@ -1526,7 +1531,8 @@ DtCompileSlit ( +@@ -1529,7 +1534,8 @@ DtCompileSlit ( ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); @@ -5308,9 +3358,9 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c + Tmp = *ACPI_CAST_PTR (UINT32, Subtable->Buffer); + ACPI_MOVE_32_TO_32(&Localities, &Tmp); LocalityBuffer = UtLocalCalloc (Localities); + LocalityListLength = 0; - /* Compile each locality buffer */ -@@ -1725,6 +1731,7 @@ DtCompileTcpa ( +@@ -1740,6 +1746,7 @@ DtCompileTcpa ( ACPI_TABLE_TCPA_HDR *TcpaHeader; DT_SUBTABLE *ParentTable; ACPI_STATUS Status; @@ -5318,7 +3368,7 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c /* Compile the main table */ -@@ -1745,7 +1752,8 @@ DtCompileTcpa ( +@@ -1760,7 +1767,8 @@ DtCompileTcpa ( */ TcpaHeader = ACPI_CAST_PTR (ACPI_TABLE_TCPA_HDR, ParentTable->Buffer); @@ -5328,7 +3378,7 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c { case ACPI_TCPA_CLIENT_TABLE: -@@ -1793,6 +1801,7 @@ DtCompileTpm2Rev3 ( +@@ -1808,6 +1816,7 @@ DtCompileTpm2Rev3 ( ACPI_TABLE_TPM23 *Tpm23Header; DT_SUBTABLE *ParentTable; ACPI_STATUS Status = AE_OK; @@ -5336,7 +3386,7 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c Status = DtCompileTable (PFieldList, AcpiDmTableInfoTpm23, -@@ -1804,7 +1813,8 @@ DtCompileTpm2Rev3 ( +@@ -1819,7 +1828,8 @@ DtCompileTpm2Rev3 ( /* Subtable type depends on the StartMethod */ @@ -5346,7 +3396,7 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c { case ACPI_TPM23_ACPI_START_METHOD: -@@ -1851,6 +1861,7 @@ DtCompileTpm2 ( +@@ -1866,6 +1876,7 @@ DtCompileTpm2 ( DT_SUBTABLE *ParentTable; ACPI_STATUS Status = AE_OK; ACPI_TABLE_HEADER *Header; @@ -5354,7 +3404,7 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c ParentTable = DtPeekSubtable (); -@@ -1894,7 +1905,8 @@ DtCompileTpm2 ( +@@ -1909,7 +1920,8 @@ DtCompileTpm2 ( /* Subtable type depends on the StartMethod */ @@ -5364,7 +3414,7 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c { case ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC: -@@ -2110,6 +2122,9 @@ DtCompileWpbt ( +@@ -2125,6 +2137,9 @@ DtCompileWpbt ( ACPI_TABLE_WPBT *Table; ACPI_STATUS Status; UINT16 Length; @@ -5374,7 +3424,7 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c /* Compile the main table */ -@@ -2137,7 +2152,16 @@ DtCompileWpbt ( +@@ -2152,7 +2167,16 @@ DtCompileWpbt ( Length = (UINT16) Subtable->TotalLength; Table = ACPI_CAST_PTR (ACPI_TABLE_WPBT, ParentTable->Buffer); @@ -5392,10 +3442,10 @@ Index: acpica-unix-20190816/source/compiler/dttable2.c ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); -Index: acpica-unix-20190816/source/components/disassembler/dmbuffer.c +Index: acpica-unix-20191018/source/components/disassembler/dmbuffer.c =================================================================== ---- acpica-unix-20190816.orig/source/components/disassembler/dmbuffer.c -+++ acpica-unix-20190816/source/components/disassembler/dmbuffer.c +--- acpica-unix-20191018.orig/source/components/disassembler/dmbuffer.c ++++ acpica-unix-20191018/source/components/disassembler/dmbuffer.c @@ -204,7 +204,7 @@ AcpiDmByteList ( @@ -5471,10 +3521,10 @@ Index: acpica-unix-20190816/source/components/disassembler/dmbuffer.c NextOp = AcpiPsGetDepthNext (NULL, Op); if (!NextOp) -Index: acpica-unix-20190816/source/components/disassembler/dmopcode.c +Index: acpica-unix-20191018/source/components/disassembler/dmopcode.c =================================================================== ---- acpica-unix-20190816.orig/source/components/disassembler/dmopcode.c -+++ acpica-unix-20190816/source/components/disassembler/dmopcode.c +--- acpica-unix-20191018.orig/source/components/disassembler/dmopcode.c ++++ acpica-unix-20191018/source/components/disassembler/dmopcode.c @@ -244,6 +244,7 @@ AcpiDmPredefinedDescription ( char *NameString; int LastCharIsDigit; @@ -5545,10 +3595,10 @@ Index: acpica-unix-20190816/source/components/disassembler/dmopcode.c Info->Level += 1; Info->MappingOp = Op; -Index: acpica-unix-20190816/source/components/disassembler/dmresrcl.c +Index: acpica-unix-20191018/source/components/disassembler/dmresrcl.c =================================================================== ---- acpica-unix-20190816.orig/source/components/disassembler/dmresrcl.c -+++ acpica-unix-20190816/source/components/disassembler/dmresrcl.c +--- acpica-unix-20191018.orig/source/components/disassembler/dmresrcl.c ++++ acpica-unix-20191018/source/components/disassembler/dmresrcl.c @@ -141,7 +141,8 @@ AcpiDmMemoryFields ( UINT32 Level) { @@ -5697,10 +3747,10 @@ Index: acpica-unix-20190816/source/components/disassembler/dmresrcl.c } AcpiDmIndent (Level); -Index: acpica-unix-20190816/source/components/disassembler/dmresrcl2.c +Index: acpica-unix-20191018/source/components/disassembler/dmresrcl2.c =================================================================== ---- acpica-unix-20190816.orig/source/components/disassembler/dmresrcl2.c -+++ acpica-unix-20190816/source/components/disassembler/dmresrcl2.c +--- acpica-unix-20191018.orig/source/components/disassembler/dmresrcl2.c ++++ acpica-unix-20191018/source/components/disassembler/dmresrcl2.c @@ -191,22 +191,24 @@ AcpiDmGpioCommon ( char *DeviceName = NULL; UINT32 PinCount; @@ -5924,10 +3974,10 @@ Index: acpica-unix-20190816/source/components/disassembler/dmresrcl2.c DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); -Index: acpica-unix-20190816/source/components/disassembler/dmresrcs.c +Index: acpica-unix-20191018/source/components/disassembler/dmresrcs.c =================================================================== ---- acpica-unix-20190816.orig/source/components/disassembler/dmresrcs.c -+++ acpica-unix-20190816/source/components/disassembler/dmresrcs.c +--- acpica-unix-20191018.orig/source/components/disassembler/dmresrcs.c ++++ acpica-unix-20191018/source/components/disassembler/dmresrcs.c @@ -72,6 +72,7 @@ AcpiDmIrqDescriptor ( UINT32 Length, UINT32 Level) @@ -5984,19 +4034,19 @@ Index: acpica-unix-20190816/source/components/disassembler/dmresrcs.c AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->FixedIo.AddressLength, "Length"); -Index: acpica-unix-20190816/source/components/dispatcher/dsfield.c +Index: acpica-unix-20191018/source/components/dispatcher/dsfield.c =================================================================== ---- acpica-unix-20190816.orig/source/components/dispatcher/dsfield.c -+++ acpica-unix-20190816/source/components/dispatcher/dsfield.c -@@ -325,6 +325,7 @@ AcpiDsGetFieldNames ( +--- acpica-unix-20191018.orig/source/components/dispatcher/dsfield.c ++++ acpica-unix-20191018/source/components/dispatcher/dsfield.c +@@ -324,6 +324,7 @@ AcpiDsGetFieldNames ( ACPI_STATUS Status; UINT64 Position; ACPI_PARSE_OBJECT *Child; + UINT32 TmpName; #ifdef ACPI_EXEC_APP - UINT64 Value = 0; -@@ -439,10 +440,17 @@ AcpiDsGetFieldNames ( + ACPI_OPERAND_OBJECT *ResultDesc; +@@ -437,10 +438,17 @@ AcpiDsGetFieldNames ( /* Lookup the name, it should already exist */ @@ -6014,7 +4064,7 @@ Index: acpica-unix-20190816/source/components/dispatcher/dsfield.c if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, -@@ -692,9 +700,17 @@ AcpiDsInitFieldObjects ( +@@ -689,9 +697,17 @@ AcpiDsInitFieldObjects ( */ if (Arg->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP) { @@ -6032,11 +4082,11 @@ Index: acpica-unix-20190816/source/components/dispatcher/dsfield.c if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, -Index: acpica-unix-20190816/source/components/events/evgpeblk.c +Index: acpica-unix-20191018/source/components/events/evgpeblk.c =================================================================== ---- acpica-unix-20190816.orig/source/components/events/evgpeblk.c -+++ acpica-unix-20190816/source/components/events/evgpeblk.c -@@ -376,6 +376,7 @@ AcpiEvCreateGpeBlock ( +--- acpica-unix-20191018.orig/source/components/events/evgpeblk.c ++++ acpica-unix-20191018/source/components/events/evgpeblk.c +@@ -380,6 +380,7 @@ AcpiEvCreateGpeBlock ( ACPI_STATUS Status; ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_GPE_WALK_INFO WalkInfo; @@ -6044,7 +4094,7 @@ Index: acpica-unix-20190816/source/components/events/evgpeblk.c ACPI_FUNCTION_TRACE (EvCreateGpeBlock); -@@ -396,7 +397,7 @@ AcpiEvCreateGpeBlock ( +@@ -400,7 +401,7 @@ AcpiEvCreateGpeBlock ( /* Initialize the new GPE block */ @@ -6053,7 +4103,7 @@ Index: acpica-unix-20190816/source/components/events/evgpeblk.c GpeBlock->SpaceId = SpaceId; GpeBlock->Node = GpeDevice; GpeBlock->GpeCount = (UINT16) (RegisterCount * ACPI_GPE_REGISTER_WIDTH); -@@ -445,11 +446,13 @@ AcpiEvCreateGpeBlock ( +@@ -449,11 +450,13 @@ AcpiEvCreateGpeBlock ( (*ReturnGpeBlock) = GpeBlock; } @@ -6068,10 +4118,10 @@ Index: acpica-unix-20190816/source/components/events/evgpeblk.c InterruptNumber == AcpiGbl_FADT.SciInterrupt ? " (SCI)" : "")); /* Update global count of currently available GPEs */ -Index: acpica-unix-20190816/source/components/hardware/hwregs.c +Index: acpica-unix-20191018/source/components/hardware/hwregs.c =================================================================== ---- acpica-unix-20190816.orig/source/components/hardware/hwregs.c -+++ acpica-unix-20190816/source/components/hardware/hwregs.c +--- acpica-unix-20191018.orig/source/components/hardware/hwregs.c ++++ acpica-unix-20191018/source/components/hardware/hwregs.c @@ -197,7 +197,7 @@ AcpiHwValidateRegister ( * Address must not be null. A null address also indicates an optional * ACPI register that is not supported, so no error message. @@ -6081,10 +4131,10 @@ Index: acpica-unix-20190816/source/components/hardware/hwregs.c if (!(*Address)) { return (AE_BAD_ADDRESS); -Index: acpica-unix-20190816/source/components/hardware/hwvalid.c +Index: acpica-unix-20191018/source/components/hardware/hwvalid.c =================================================================== ---- acpica-unix-20190816.orig/source/components/hardware/hwvalid.c -+++ acpica-unix-20190816/source/components/hardware/hwvalid.c +--- acpica-unix-20191018.orig/source/components/hardware/hwvalid.c ++++ acpica-unix-20191018/source/components/hardware/hwvalid.c @@ -135,6 +135,8 @@ AcpiHwValidateIoRequest ( UINT32 ByteWidth; ACPI_IO_ADDRESS LastAddress; @@ -6106,10 +4156,10 @@ Index: acpica-unix-20190816/source/components/hardware/hwvalid.c { ACPI_ERROR ((AE_INFO, "Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X", -Index: acpica-unix-20190816/source/components/namespace/nsaccess.c +Index: acpica-unix-20191018/source/components/namespace/nsaccess.c =================================================================== ---- acpica-unix-20190816.orig/source/components/namespace/nsaccess.c -+++ acpica-unix-20190816/source/components/namespace/nsaccess.c +--- acpica-unix-20191018.orig/source/components/namespace/nsaccess.c ++++ acpica-unix-20191018/source/components/namespace/nsaccess.c @@ -349,6 +349,7 @@ AcpiNsLookup ( UINT32 SearchParentFlag = ACPI_NS_SEARCH_PARENT; UINT32 LocalFlags; @@ -6130,10 +4180,10 @@ Index: acpica-unix-20190816/source/components/namespace/nsaccess.c AcpiUtGetTypeName (ThisNode->Type), AcpiUtGetTypeName (TypeToCheckFor))); } -Index: acpica-unix-20190816/source/components/namespace/nsparse.c +Index: acpica-unix-20191018/source/components/namespace/nsparse.c =================================================================== ---- acpica-unix-20190816.orig/source/components/namespace/nsparse.c -+++ acpica-unix-20190816/source/components/namespace/nsparse.c +--- acpica-unix-20191018.orig/source/components/namespace/nsparse.c ++++ acpica-unix-20191018/source/components/namespace/nsparse.c @@ -216,13 +216,14 @@ AcpiNsOneCompleteParse ( /* Table must consist of at least a complete header */ @@ -6151,10 +4201,10 @@ Index: acpica-unix-20190816/source/components/namespace/nsparse.c Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_FAILURE (Status)) -Index: acpica-unix-20190816/source/components/tables/tbdata.c +Index: acpica-unix-20191018/source/components/tables/tbdata.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbdata.c -+++ acpica-unix-20190816/source/components/tables/tbdata.c +--- acpica-unix-20191018.orig/source/components/tables/tbdata.c ++++ acpica-unix-20191018/source/components/tables/tbdata.c @@ -552,6 +552,7 @@ AcpiTbVerifyTempTable ( UINT32 *TableIndex) { @@ -6173,10 +4223,10 @@ Index: acpica-unix-20190816/source/components/tables/tbdata.c if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, AE_NO_MEMORY, -Index: acpica-unix-20190816/source/components/tables/tbfadt.c +Index: acpica-unix-20191018/source/components/tables/tbfadt.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbfadt.c -+++ acpica-unix-20190816/source/components/tables/tbfadt.c +--- acpica-unix-20191018.orig/source/components/tables/tbfadt.c ++++ acpica-unix-20191018/source/components/tables/tbfadt.c @@ -424,18 +424,20 @@ AcpiTbCreateLocalFadt ( ACPI_TABLE_HEADER *Table, UINT32 Length) @@ -6288,10 +4338,10 @@ Index: acpica-unix-20190816/source/components/tables/tbfadt.c "PmRegisters", 0); } } -Index: acpica-unix-20190816/source/components/tables/tbfind.c +Index: acpica-unix-20191018/source/components/tables/tbfind.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbfind.c -+++ acpica-unix-20190816/source/components/tables/tbfind.c +--- acpica-unix-20191018.orig/source/components/tables/tbfind.c ++++ acpica-unix-20191018/source/components/tables/tbfind.c @@ -108,8 +108,11 @@ AcpiTbFindTable ( (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) @@ -6305,10 +4355,10 @@ Index: acpica-unix-20190816/source/components/tables/tbfind.c { /* Not the requested table */ -Index: acpica-unix-20190816/source/components/tables/tbprint.c +Index: acpica-unix-20191018/source/components/tables/tbprint.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbprint.c -+++ acpica-unix-20190816/source/components/tables/tbprint.c +--- acpica-unix-20191018.orig/source/components/tables/tbprint.c ++++ acpica-unix-20191018/source/components/tables/tbprint.c @@ -143,15 +143,18 @@ AcpiTbPrintTableHeader ( ACPI_TABLE_HEADER *Header) { @@ -6350,10 +4400,10 @@ Index: acpica-unix-20190816/source/components/tables/tbprint.c } } -Index: acpica-unix-20190816/source/components/tables/tbutils.c +Index: acpica-unix-20191018/source/components/tables/tbutils.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbutils.c -+++ acpica-unix-20190816/source/components/tables/tbutils.c +--- acpica-unix-20191018.orig/source/components/tables/tbutils.c ++++ acpica-unix-20191018/source/components/tables/tbutils.c @@ -238,7 +238,7 @@ AcpiTbGetRootTableEntry ( * 64-bit platform, XSDT: Move (unaligned) 64-bit to local, * return 64-bit @@ -6413,10 +4463,10 @@ Index: acpica-unix-20190816/source/components/tables/tbutils.c { AcpiGbl_FadtIndex = TableIndex; AcpiTbParseFadt (); -Index: acpica-unix-20190816/source/components/tables/tbxface.c +Index: acpica-unix-20191018/source/components/tables/tbxface.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbxface.c -+++ acpica-unix-20190816/source/components/tables/tbxface.c +--- acpica-unix-20191018.orig/source/components/tables/tbxface.c ++++ acpica-unix-20191018/source/components/tables/tbxface.c @@ -293,8 +293,11 @@ AcpiGetTableHeader ( for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) @@ -6430,10 +4480,10 @@ Index: acpica-unix-20190816/source/components/tables/tbxface.c { continue; } -Index: acpica-unix-20190816/source/components/tables/tbxfload.c +Index: acpica-unix-20191018/source/components/tables/tbxfload.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbxfload.c -+++ acpica-unix-20190816/source/components/tables/tbxfload.c +--- acpica-unix-20191018.orig/source/components/tables/tbxfload.c ++++ acpica-unix-20191018/source/components/tables/tbxfload.c @@ -153,6 +153,7 @@ AcpiTbLoadNamespace ( ACPI_TABLE_DESC *Table; UINT32 TablesLoaded = 0; @@ -6453,10 +4503,10 @@ Index: acpica-unix-20190816/source/components/tables/tbxfload.c ACPI_FAILURE (AcpiTbValidateTable (Table))) { Status = AE_NO_ACPI_TABLES; -Index: acpica-unix-20190816/source/tools/acpiexec/aetables.c +Index: acpica-unix-20191018/source/tools/acpiexec/aetables.c =================================================================== ---- acpica-unix-20190816.orig/source/tools/acpiexec/aetables.c -+++ acpica-unix-20190816/source/tools/acpiexec/aetables.c +--- acpica-unix-20191018.orig/source/tools/acpiexec/aetables.c ++++ acpica-unix-20191018/source/tools/acpiexec/aetables.c @@ -146,21 +146,25 @@ AeInitializeTableHeader ( char *Signature, UINT32 Length) @@ -6608,10 +4658,10 @@ Index: acpica-unix-20190816/source/tools/acpiexec/aetables.c } return (AE_OK); -Index: acpica-unix-20190816/source/common/dmswitch.c +Index: acpica-unix-20191018/source/common/dmswitch.c =================================================================== ---- acpica-unix-20190816.orig/source/common/dmswitch.c -+++ acpica-unix-20190816/source/common/dmswitch.c +--- acpica-unix-20191018.orig/source/common/dmswitch.c ++++ acpica-unix-20191018/source/common/dmswitch.c @@ -88,13 +88,15 @@ AcpiDmProcessSwitch ( ACPI_PARSE_OBJECT_LIST *Current; ACPI_PARSE_OBJECT_LIST *Previous; diff --git a/cve-2017-13693.patch b/cve-2017-13693.patch index f4d90e9..b0af7a6 100644 --- a/cve-2017-13693.patch +++ b/cve-2017-13693.patch @@ -63,10 +63,10 @@ Github-Location: https://github.com/acpica/acpica/pull/295/commits/987a3b5cf7175 source/components/dispatcher/dsutils.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -Index: acpica-unix2-20181213/source/components/dispatcher/dsutils.c +Index: acpica-unix-20191018/source/components/dispatcher/dsutils.c =================================================================== ---- acpica-unix2-20181213.orig/source/components/dispatcher/dsutils.c -+++ acpica-unix2-20181213/source/components/dispatcher/dsutils.c +--- acpica-unix-20191018.orig/source/components/dispatcher/dsutils.c ++++ acpica-unix-20191018/source/components/dispatcher/dsutils.c @@ -759,6 +759,8 @@ AcpiDsCreateOperands ( ACPI_PARSE_OBJECT *Arguments[ACPI_OBJ_NUM_OPERANDS]; UINT32 ArgCount = 0; diff --git a/cve-2017-13694.patch b/cve-2017-13694.patch index c753108..8d582e0 100644 --- a/cve-2017-13694.patch +++ b/cve-2017-13694.patch @@ -130,11 +130,11 @@ Github-Location: https://github.com/acpica/acpica/pull/278/commits/4a0243ecb4c94 source/components/parser/psobject.c | 44 ++++++++++++++----------------------- 1 file changed, 16 insertions(+), 28 deletions(-) -Index: acpica-unix2-20180531/source/components/parser/psobject.c +Index: acpica-unix-20191018/source/components/parser/psobject.c =================================================================== ---- acpica-unix2-20180531.orig/source/components/parser/psobject.c -+++ acpica-unix2-20180531/source/components/parser/psobject.c -@@ -709,7 +709,8 @@ AcpiPsCompleteFinalOp ( +--- acpica-unix-20191018.orig/source/components/parser/psobject.c ++++ acpica-unix-20191018/source/components/parser/psobject.c +@@ -707,7 +707,8 @@ AcpiPsCompleteFinalOp ( ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status) { @@ -144,7 +144,7 @@ Index: acpica-unix2-20180531/source/components/parser/psobject.c ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState); -@@ -726,7 +727,7 @@ AcpiPsCompleteFinalOp ( +@@ -724,7 +725,7 @@ AcpiPsCompleteFinalOp ( { if (Op) { @@ -153,7 +153,7 @@ Index: acpica-unix2-20180531/source/components/parser/psobject.c { WalkState->Op = Op; WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); -@@ -745,41 +746,28 @@ AcpiPsCompleteFinalOp ( +@@ -743,41 +744,28 @@ AcpiPsCompleteFinalOp ( if (Status == AE_CTRL_TERMINATE) { @@ -207,7 +207,7 @@ Index: acpica-unix2-20180531/source/components/parser/psobject.c } } -@@ -788,5 +776,5 @@ AcpiPsCompleteFinalOp ( +@@ -786,5 +774,5 @@ AcpiPsCompleteFinalOp ( } while (Op); diff --git a/cve-2017-13695.patch b/cve-2017-13695.patch index 878f47b..5f77aaf 100644 --- a/cve-2017-13695.patch +++ b/cve-2017-13695.patch @@ -67,11 +67,11 @@ Github-Location: https://github.com/acpica/acpica/pull/296/commits/37f2c716f2c6a source/components/namespace/nseval.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -Index: acpica-unix2-20181213/source/components/namespace/nseval.c +Index: acpica-unix-20191018/source/components/namespace/nseval.c =================================================================== ---- acpica-unix2-20181213.orig/source/components/namespace/nseval.c -+++ acpica-unix2-20181213/source/components/namespace/nseval.c -@@ -336,6 +336,16 @@ AcpiNsEvaluate ( +--- acpica-unix-20191018.orig/source/components/namespace/nseval.c ++++ acpica-unix-20191018/source/components/namespace/nseval.c +@@ -329,6 +329,16 @@ AcpiNsEvaluate ( Info->ReturnObject = NULL; } } diff --git a/f23-harden.patch b/f23-harden.patch index 70e1f5a..c719d07 100644 --- a/f23-harden.patch +++ b/f23-harden.patch @@ -8,10 +8,10 @@ From: Al Stone generate/unix/iasl/Makefile | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) -Index: acpica-unix-20190816/generate/unix/Makefile.config +Index: acpica-unix-20191018/generate/unix/Makefile.config =================================================================== ---- acpica-unix-20190816.orig/generate/unix/Makefile.config -+++ acpica-unix-20190816/generate/unix/Makefile.config +--- acpica-unix-20191018.orig/generate/unix/Makefile.config ++++ acpica-unix-20191018/generate/unix/Makefile.config @@ -190,6 +190,8 @@ ifneq ($(NOFORTIFY),TRUE) OPT_CFLAGS += -D_FORTIFY_SOURCE=2 endif @@ -21,10 +21,10 @@ Index: acpica-unix-20190816/generate/unix/Makefile.config CFLAGS += \ -D$(HOST)\ -D_GNU_SOURCE\ -Index: acpica-unix-20190816/generate/unix/iasl/Makefile +Index: acpica-unix-20191018/generate/unix/iasl/Makefile =================================================================== ---- acpica-unix-20190816.orig/generate/unix/iasl/Makefile -+++ acpica-unix-20190816/generate/unix/iasl/Makefile +--- acpica-unix-20191018.orig/generate/unix/iasl/Makefile ++++ acpica-unix-20191018/generate/unix/iasl/Makefile @@ -358,34 +358,35 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa # Cannot use the common compile warning flags since the C files are created # by the utilities above and they are not necessarily ANSI C, etc. diff --git a/grammar.asl.result b/grammar.asl.result index 73351de..e5ac529 100644 --- a/grammar.asl.result +++ b/grammar.asl.result @@ -67,6 +67,9 @@ Remark 2146 - ^ Method Argument is never used (Arg3) grammar.asl 701: CreateField (\_SB_.SBUF, 148, 96, FLDV) Remark 2089 - Object is not referenced ^ (Name [FLDV] is within a method [_INI]) +grammar.asl 705: Device(PCI0) +Warning 3073 - Multiple types ^ (Device object requires either a _HID or _ADR, but not both) + grammar.asl 733: Method(_SRS) Warning 3102 - ^ Reserved method has too few arguments (_SRS requires 1) @@ -187,6 +190,9 @@ Warning 3144 - ^ Method Local is set but never grammar.asl 2889: Device (RTLV) Warning 3141 - Missing dependency ^ (Device object requires a _HID or _ADR in same scope) +grammar.asl 2989: Device (PCI1) +Warning 3073 - Multiple types ^ (Device object requires either a _HID or _ADR, but not both) + grammar.asl 2993: Name (_CRS,0) Error 6105 - ^ Invalid object type for reserved name (_CRS: found Integer, Buffer required) @@ -301,6 +307,9 @@ Warning 3144 - Method Local is set but never used ^ (Local6) grammar.asl 6393: Device (IDX5) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 6474: Device (PCI2) +Warning 3073 - Multiple types ^ (Device object requires either a _HID or _ADR, but not both) + grammar.asl 6478: Name (_CRS, Buffer(26) {"\_SB_.PCI2._CRS..........."}) Warning 3046 - Invalid or unknown escape sequence ^ @@ -374,4 +383,4 @@ Ignoring all errors, forcing AML file generation ASL Input: grammar.asl - 323653 bytes 4818 keywords 10284 source lines AML Output: grammar.aml - 43758 bytes 4148 opcodes 670 named objects -Compilation successful. 6 Errors, 89 Warnings, 27 Remarks, 1106 Optimizations +Compilation successful. 6 Errors, 92 Warnings, 27 Remarks, 1106 Optimizations diff --git a/int-format.patch b/int-format.patch index a578087..bf0b05c 100644 --- a/int-format.patch +++ b/int-format.patch @@ -21,10 +21,10 @@ From: Al Stone source/components/utilities/utownerid.c | 2 +- 18 files changed, 28 insertions(+), 28 deletions(-) -Index: acpica-unix-20190816/source/compiler/aslerror.c +Index: acpica-unix-20191018/source/compiler/aslerror.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslerror.c -+++ acpica-unix-20190816/source/compiler/aslerror.c +--- acpica-unix-20191018.orig/source/compiler/aslerror.c ++++ acpica-unix-20191018/source/compiler/aslerror.c @@ -898,7 +898,7 @@ AslLogNewError ( AslGbl_ExceptionCount[ModifiedLevel]++; if (!AslGbl_IgnoreErrors && AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT) @@ -34,10 +34,10 @@ Index: acpica-unix-20190816/source/compiler/aslerror.c AslGbl_SourceLine = 0; AslGbl_NextError = AslGbl_ErrorLog; -Index: acpica-unix-20190816/source/compiler/aslopt.c +Index: acpica-unix-20191018/source/compiler/aslopt.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslopt.c -+++ acpica-unix-20190816/source/compiler/aslopt.c +--- acpica-unix-20191018.orig/source/compiler/aslopt.c ++++ acpica-unix-20191018/source/compiler/aslopt.c @@ -583,7 +583,7 @@ OptOptimizeNamePath ( } @@ -47,10 +47,10 @@ Index: acpica-unix-20190816/source/compiler/aslopt.c Op->Asl.LogicalLineNumber, AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode), AcpiPsGetOpcodeName (Op->Common.AmlOpcode))); -Index: acpica-unix-20190816/source/compiler/aslprepkg.c +Index: acpica-unix-20191018/source/compiler/aslprepkg.c =================================================================== ---- acpica-unix-20190816.orig/source/compiler/aslprepkg.c -+++ acpica-unix-20190816/source/compiler/aslprepkg.c +--- acpica-unix-20191018.orig/source/compiler/aslprepkg.c ++++ acpica-unix-20191018/source/compiler/aslprepkg.c @@ -309,7 +309,7 @@ ApCheckPackage ( if (Count & 1) @@ -60,10 +60,10 @@ Index: acpica-unix-20190816/source/compiler/aslprepkg.c Predefined->Info.Name, Count); AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH, -Index: acpica-unix-20190816/source/components/debugger/dbexec.c +Index: acpica-unix-20191018/source/components/debugger/dbexec.c =================================================================== ---- acpica-unix-20190816.orig/source/components/debugger/dbexec.c -+++ acpica-unix-20190816/source/components/debugger/dbexec.c +--- acpica-unix-20191018.orig/source/components/debugger/dbexec.c ++++ acpica-unix-20191018/source/components/debugger/dbexec.c @@ -230,7 +230,7 @@ AcpiDbExecuteMethod ( ACPI_ERROR ((AE_INFO, "Possible buffer overflow within AML Debugger " @@ -73,10 +73,10 @@ Index: acpica-unix-20190816/source/components/debugger/dbexec.c } } -Index: acpica-unix-20190816/source/components/dispatcher/dsmthdat.c +Index: acpica-unix-20191018/source/components/dispatcher/dsmthdat.c =================================================================== ---- acpica-unix-20190816.orig/source/components/dispatcher/dsmthdat.c -+++ acpica-unix-20190816/source/components/dispatcher/dsmthdat.c +--- acpica-unix-20191018.orig/source/components/dispatcher/dsmthdat.c ++++ acpica-unix-20191018/source/components/dispatcher/dsmthdat.c @@ -291,7 +291,7 @@ AcpiDsMethodDataGetNode ( if (Index > ACPI_METHOD_MAX_LOCAL) { @@ -95,10 +95,10 @@ Index: acpica-unix-20190816/source/components/dispatcher/dsmthdat.c Index, ACPI_METHOD_MAX_ARG)); return_ACPI_STATUS (AE_AML_INVALID_INDEX); } -Index: acpica-unix-20190816/source/components/dispatcher/dsutils.c +Index: acpica-unix-20191018/source/components/dispatcher/dsutils.c =================================================================== ---- acpica-unix-20190816.orig/source/components/dispatcher/dsutils.c -+++ acpica-unix-20190816/source/components/dispatcher/dsutils.c +--- acpica-unix-20191018.orig/source/components/dispatcher/dsutils.c ++++ acpica-unix-20191018/source/components/dispatcher/dsutils.c @@ -786,7 +786,7 @@ AcpiDsCreateOperands ( } @@ -108,10 +108,10 @@ Index: acpica-unix-20190816/source/components/dispatcher/dsutils.c WalkState->NumOperands, ArgCount, Index)); /* Create the interpreter arguments, in reverse order */ -Index: acpica-unix-20190816/source/components/dispatcher/dswscope.c +Index: acpica-unix-20191018/source/components/dispatcher/dswscope.c =================================================================== ---- acpica-unix-20190816.orig/source/components/dispatcher/dswscope.c -+++ acpica-unix-20190816/source/components/dispatcher/dswscope.c +--- acpica-unix-20191018.orig/source/components/dispatcher/dswscope.c ++++ acpica-unix-20191018/source/components/dispatcher/dswscope.c @@ -149,7 +149,7 @@ AcpiDsScopeStackPush ( WalkState->ScopeDepth++; @@ -130,10 +130,10 @@ Index: acpica-unix-20190816/source/components/dispatcher/dswscope.c (UINT32) WalkState->ScopeDepth, AcpiUtGetNodeName (ScopeInfo->Scope.Node), AcpiUtGetTypeName (ScopeInfo->Common.Value))); -Index: acpica-unix-20190816/source/components/events/evgpe.c +Index: acpica-unix-20191018/source/components/events/evgpe.c =================================================================== ---- acpica-unix-20190816.orig/source/components/events/evgpe.c -+++ acpica-unix-20190816/source/components/events/evgpe.c +--- acpica-unix-20191018.orig/source/components/events/evgpe.c ++++ acpica-unix-20191018/source/components/events/evgpe.c @@ -488,7 +488,7 @@ AcpiEvGpeDetect ( "Ignore disabled registers for GPE %02X-%02X: " "RunEnable=%02X, WakeEnable=%02X\n", @@ -143,10 +143,10 @@ Index: acpica-unix-20190816/source/components/events/evgpe.c GpeRegisterInfo->EnableForRun, GpeRegisterInfo->EnableForWake)); continue; -Index: acpica-unix-20190816/source/components/executer/exdump.c +Index: acpica-unix-20191018/source/components/executer/exdump.c =================================================================== ---- acpica-unix-20190816.orig/source/components/executer/exdump.c -+++ acpica-unix-20190816/source/components/executer/exdump.c +--- acpica-unix-20191018.orig/source/components/executer/exdump.c ++++ acpica-unix-20191018/source/components/executer/exdump.c @@ -678,7 +678,7 @@ AcpiExDumpOperand ( if (Depth > 0) { @@ -156,10 +156,10 @@ Index: acpica-unix-20190816/source/components/executer/exdump.c } else { -Index: acpica-unix-20190816/source/components/executer/exfldio.c +Index: acpica-unix-20191018/source/components/executer/exfldio.c =================================================================== ---- acpica-unix-20190816.orig/source/components/executer/exfldio.c -+++ acpica-unix-20190816/source/components/executer/exfldio.c +--- acpica-unix-20191018.orig/source/components/executer/exfldio.c ++++ acpica-unix-20191018/source/components/executer/exfldio.c @@ -681,8 +681,8 @@ AcpiExWriteWithUpdateRule ( ACPI_ERROR ((AE_INFO, @@ -171,10 +171,10 @@ Index: acpica-unix-20190816/source/components/executer/exfldio.c return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } } -Index: acpica-unix-20190816/source/components/executer/exnames.c +Index: acpica-unix-20191018/source/components/executer/exnames.c =================================================================== ---- acpica-unix-20190816.orig/source/components/executer/exnames.c -+++ acpica-unix-20190816/source/components/executer/exnames.c +--- acpica-unix-20191018.orig/source/components/executer/exnames.c ++++ acpica-unix-20191018/source/components/executer/exnames.c @@ -237,7 +237,7 @@ AcpiExNameSegment ( */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, @@ -193,10 +193,10 @@ Index: acpica-unix-20190816/source/components/executer/exnames.c } *InAmlAddress = ACPI_CAST_PTR (UINT8, AmlAddress); -Index: acpica-unix-20190816/source/components/hardware/hwregs.c +Index: acpica-unix-20191018/source/components/hardware/hwregs.c =================================================================== ---- acpica-unix-20190816.orig/source/components/hardware/hwregs.c -+++ acpica-unix-20190816/source/components/hardware/hwregs.c +--- acpica-unix-20191018.orig/source/components/hardware/hwregs.c ++++ acpica-unix-20191018/source/components/hardware/hwregs.c @@ -460,7 +460,7 @@ AcpiHwClearAcpiStatus ( @@ -206,10 +206,10 @@ Index: acpica-unix-20190816/source/components/hardware/hwregs.c ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address))); LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock); -Index: acpica-unix-20190816/source/components/tables/tbfadt.c +Index: acpica-unix-20191018/source/components/tables/tbfadt.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbfadt.c -+++ acpica-unix-20190816/source/components/tables/tbfadt.c +--- acpica-unix-20191018.orig/source/components/tables/tbfadt.c ++++ acpica-unix-20191018/source/components/tables/tbfadt.c @@ -233,7 +233,7 @@ AcpiTbInitGenericAddress ( if (!(Flags & ACPI_FADT_GPE_REGISTER)) { @@ -237,10 +237,10 @@ Index: acpica-unix-20190816/source/components/tables/tbfadt.c Name, Address32, ACPI_FORMAT_UINT64 (Address64->Address), AcpiGbl_Use32BitFadtAddresses ? 32 : 64)); -Index: acpica-unix-20190816/source/components/tables/tbxfroot.c +Index: acpica-unix-20191018/source/components/tables/tbxfroot.c =================================================================== ---- acpica-unix-20190816.orig/source/components/tables/tbxfroot.c -+++ acpica-unix-20190816/source/components/tables/tbxfroot.c +--- acpica-unix-20191018.orig/source/components/tables/tbxfroot.c ++++ acpica-unix-20191018/source/components/tables/tbxfroot.c @@ -177,7 +177,7 @@ AcpiFindRootPointer ( { ACPI_ERROR ((AE_INFO, @@ -268,10 +268,10 @@ Index: acpica-unix-20190816/source/components/tables/tbxfroot.c return_ACPI_STATUS (AE_NO_MEMORY); } -Index: acpica-unix-20190816/source/components/utilities/utownerid.c +Index: acpica-unix-20191018/source/components/utilities/utownerid.c =================================================================== ---- acpica-unix-20190816.orig/source/components/utilities/utownerid.c -+++ acpica-unix-20190816/source/components/utilities/utownerid.c +--- acpica-unix-20191018.orig/source/components/utilities/utownerid.c ++++ acpica-unix-20191018/source/components/utilities/utownerid.c @@ -237,7 +237,7 @@ AcpiUtReleaseOwnerId ( else { diff --git a/mips-be-fix.patch b/mips-be-fix.patch index 20b1302..0e7fa91 100644 --- a/mips-be-fix.patch +++ b/mips-be-fix.patch @@ -1,7 +1,7 @@ -Index: acpica-unix-20190329/source/compiler/aslparseop.c +Index: acpica-unix-20191018/source/compiler/aslparseop.c =================================================================== ---- acpica-unix-20190329.orig/source/compiler/aslparseop.c -+++ acpica-unix-20190329/source/compiler/aslparseop.c +--- acpica-unix-20191018.orig/source/compiler/aslparseop.c ++++ acpica-unix-20191018/source/compiler/aslparseop.c @@ -283,7 +283,16 @@ TrCreateValuedLeafOp ( @@ -20,10 +20,10 @@ Index: acpica-unix-20190329/source/compiler/aslparseop.c DbgPrint (ASL_PARSE_OUTPUT, "\nCreateValuedLeafOp Ln/Col %u/%u NewOp %p " -Index: acpica-unix-20190329/source/include/platform/aclinux.h +Index: acpica-unix-20191018/source/include/platform/aclinux.h =================================================================== ---- acpica-unix-20190329.orig/source/include/platform/aclinux.h -+++ acpica-unix-20190329/source/include/platform/aclinux.h +--- acpica-unix-20191018.orig/source/include/platform/aclinux.h ++++ acpica-unix-20191018/source/include/platform/aclinux.h @@ -232,10 +232,8 @@ #endif diff --git a/ppc64le.patch b/ppc64le.patch index 4cb1e50..228f9d9 100644 --- a/ppc64le.patch +++ b/ppc64le.patch @@ -1,7 +1,7 @@ -Index: acpica-unix-20190329/source/include/platform/aclinux.h +Index: acpica-unix-20191018/source/include/platform/aclinux.h =================================================================== ---- acpica-unix-20190329.orig/source/include/platform/aclinux.h -+++ acpica-unix-20190329/source/include/platform/aclinux.h +--- acpica-unix-20191018.orig/source/include/platform/aclinux.h ++++ acpica-unix-20191018/source/include/platform/aclinux.h @@ -233,9 +233,11 @@ #define __cdecl #endif diff --git a/ptr-cast.patch b/ptr-cast.patch index 369d308..d052057 100644 --- a/ptr-cast.patch +++ b/ptr-cast.patch @@ -1,7 +1,8 @@ -diff -Naur acpica-unix2-20180209.orig/source/components/tables/tbutils.c acpica-unix2-20180209/source/components/tables/tbutils.c ---- acpica-unix2-20180209.orig/source/components/tables/tbutils.c 2018-03-15 16:47:21.831526264 -0600 -+++ acpica-unix2-20180209/source/components/tables/tbutils.c 2018-03-15 16:58:20.030097284 -0600 -@@ -238,9 +238,11 @@ +Index: acpica-unix-20191018/source/components/tables/tbutils.c +=================================================================== +--- acpica-unix-20191018.orig/source/components/tables/tbutils.c ++++ acpica-unix-20191018/source/components/tables/tbutils.c +@@ -238,9 +238,11 @@ AcpiTbGetRootTableEntry ( * 64-bit platform, XSDT: Move (unaligned) 64-bit to local, * return 64-bit */ @@ -14,7 +15,7 @@ diff -Naur acpica-unix2-20180209.orig/source/components/tables/tbutils.c acpica- if (Address64 > ACPI_UINT32_MAX) { /* Will truncate 64-bit address to 32 bits, issue warning */ -@@ -250,9 +252,15 @@ +@@ -250,9 +252,15 @@ AcpiTbGetRootTableEntry ( " truncating", ACPI_FORMAT_UINT64 (Address64))); } @@ -31,10 +32,11 @@ diff -Naur acpica-unix2-20180209.orig/source/components/tables/tbutils.c acpica- } } -diff -Naur acpica-unix2-20180209.orig/source/compiler/aslparseop.c acpica-unix2-20180209/source/compiler/aslparseop.c ---- acpica-unix2-20180209.orig/source/compiler/aslparseop.c 2018-03-15 17:20:09.844338074 -0600 -+++ acpica-unix2-20180209/source/compiler/aslparseop.c 2018-03-15 17:28:19.570800797 -0600 -@@ -287,7 +287,11 @@ +Index: acpica-unix-20191018/source/compiler/aslparseop.c +=================================================================== +--- acpica-unix-20191018.orig/source/compiler/aslparseop.c ++++ acpica-unix-20191018/source/compiler/aslparseop.c +@@ -287,7 +287,11 @@ TrCreateValuedLeafOp ( ParseOpcode == PARSEOP_NAMESEG || ParseOpcode == PARSEOP_STRING_LITERAL) { diff --git a/simple-64bit.patch b/simple-64bit.patch index b1eaaba..80c771f 100644 --- a/simple-64bit.patch +++ b/simple-64bit.patch @@ -3,10 +3,10 @@ Description: Stop listing all 64bit architectures 64bit architectures. Author: Adrian Bunk -Index: acpica-unix-20190329/source/include/platform/aclinux.h +Index: acpica-unix-20191018/source/include/platform/aclinux.h =================================================================== ---- acpica-unix-20190329.orig/source/include/platform/aclinux.h -+++ acpica-unix-20190329/source/include/platform/aclinux.h +--- acpica-unix-20191018.orig/source/include/platform/aclinux.h ++++ acpica-unix-20191018/source/include/platform/aclinux.h @@ -215,9 +215,7 @@ #define ACPI_FLUSH_CPU_CACHE() #define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread)) diff --git a/sources b/sources index ff9ab51..756e2da 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20190816.tar.gz) = f2b5363a18391d35465cc14d3be1c2f5b72c599a02e617febc7abc64f0a825fd7ef06d9bc5f13264cf526b7f4ba6a605dd188152c6007efcf661641b537d22b2 -SHA512 (acpitests-unix-20190816.tar.gz) = ea3944888a5229be246c47b9d53256ccc42a988e3dd98995df6ab77ebb0715e777577df609340ee806c5274536ecdcf5798d2aad3786f5a1462a6be8dea9ed1b +SHA512 (acpica-unix2-20191018.tar.gz) = 4b6cfcfe7866f5cde8085d9deb539d7653043b806aa40466873bdc1e4e875c0be4b4906e53c087f9f34ec755518cb0a206b5107eae557b977a2a2ca184069244 +SHA512 (acpitests-unix-20191018.tar.gz) = a51ef4c9dfad41bc34a8ec9c2251c8f9266ec20e7bff2f15c0244f06291ff665fb36825e2d60745179067f59f8be10e1a3b1f1496d25def6feb0d03a287be90d diff --git a/str-trunc-warn.patch b/str-trunc-warn.patch index c5907f8..a62a34a 100644 --- a/str-trunc-warn.patch +++ b/str-trunc-warn.patch @@ -1,7 +1,7 @@ -Index: acpica-unix2-20181003/source/compiler/aslanalyze.c +Index: acpica-unix-20191018/source/compiler/aslanalyze.c =================================================================== ---- acpica-unix2-20181003.orig/source/compiler/aslanalyze.c -+++ acpica-unix2-20181003/source/compiler/aslanalyze.c +--- acpica-unix-20191018.orig/source/compiler/aslanalyze.c ++++ acpica-unix-20191018/source/compiler/aslanalyze.c @@ -355,11 +355,16 @@ AnCheckMethodReturnValue ( */ if (ThisNodeBtype != 0) @@ -21,10 +21,10 @@ Index: acpica-unix2-20181003/source/compiler/aslanalyze.c } } } -Index: acpica-unix2-20181003/source/compiler/aslpredef.c +Index: acpica-unix-20191018/source/compiler/aslpredef.c =================================================================== ---- acpica-unix2-20181003.orig/source/compiler/aslpredef.c -+++ acpica-unix2-20181003/source/compiler/aslpredef.c +--- acpica-unix-20191018.orig/source/compiler/aslpredef.c ++++ acpica-unix-20191018/source/compiler/aslpredef.c @@ -159,14 +159,19 @@ ApCheckForPredefinedMethod ( if (MethodInfo->NumReturnNoValue && ThisName->Info.ExpectedBtypes) @@ -84,11 +84,11 @@ Index: acpica-unix2-20181003/source/compiler/aslpredef.c return (AE_TYPE); } -Index: acpica-unix2-20181003/source/compiler/aslwalks.c +Index: acpica-unix-20191018/source/compiler/aslwalks.c =================================================================== ---- acpica-unix2-20181003.orig/source/compiler/aslwalks.c -+++ acpica-unix2-20181003/source/compiler/aslwalks.c -@@ -507,15 +507,19 @@ AnOperandTypecheckWalkEnd ( +--- acpica-unix-20191018.orig/source/compiler/aslwalks.c ++++ acpica-unix-20191018/source/compiler/aslwalks.c +@@ -515,15 +515,19 @@ AnOperandTypecheckWalkEnd ( else if (!CommonBtypes) { /* No match -- this is a type mismatch error */ diff --git a/template.patch b/template.patch index c3e1387..662216a 100644 --- a/template.patch +++ b/template.patch @@ -7,10 +7,10 @@ From: Al Stone tests/templates/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: acpica-unix-20190816/tests/templates/Makefile +Index: acpica-unix-20191018/tests/templates/Makefile =================================================================== ---- acpica-unix-20190816.orig/tests/templates/Makefile -+++ acpica-unix-20190816/tests/templates/Makefile +--- acpica-unix-20191018.orig/tests/templates/Makefile ++++ acpica-unix-20191018/tests/templates/Makefile @@ -26,7 +26,7 @@ $(aml_obj): %.aml: %.asl diff --git a/unaligned.patch b/unaligned.patch index 6365508..f1f35a0 100644 --- a/unaligned.patch +++ b/unaligned.patch @@ -14,10 +14,10 @@ Signed-off-by: Paolo Bonzini source/include/actypes.h | 26 +++++++++++++------------- 3 files changed, 32 insertions(+), 21 deletions(-) -Index: acpica-unix-20180508/source/components/executer/exoparg2.c +Index: acpica-unix-20191018/source/components/executer/exoparg2.c =================================================================== ---- acpica-unix-20180508.orig/source/components/executer/exoparg2.c -+++ acpica-unix-20180508/source/components/executer/exoparg2.c +--- acpica-unix-20191018.orig/source/components/executer/exoparg2.c ++++ acpica-unix-20191018/source/components/executer/exoparg2.c @@ -172,6 +172,8 @@ AcpiExOpcode_2A_2T_1R ( ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc1 = NULL; @@ -58,10 +58,10 @@ Index: acpica-unix-20180508/source/components/executer/exoparg2.c break; case AML_CONCATENATE_OP: /* Concatenate (Data1, Data2, Result) */ -Index: acpica-unix-20180508/source/include/actypes.h +Index: acpica-unix-20191018/source/include/actypes.h =================================================================== ---- acpica-unix-20180508.orig/source/include/actypes.h -+++ acpica-unix-20180508/source/include/actypes.h +--- acpica-unix-20191018.orig/source/include/actypes.h ++++ acpica-unix-20191018/source/include/actypes.h @@ -143,6 +143,19 @@ typedef COMPILER_DEPENDENT_INT64 */ #define ACPI_THREAD_ID UINT64 From d41282f47b29011ad411a4556df537fdd5ffe0e7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 11:10:23 +0000 Subject: [PATCH 05/82] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- acpica-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index 0fb365f..b0e9038 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools Version: 20190816 -Release: 1%{?dist} +Release: 2%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables License: GPLv2 @@ -229,6 +229,9 @@ fi %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 20190816-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Tue Oct 29 2019 Al Stone - 20190816-1 - Update to 20190816 source tree, including patch refeshes. - Add a patch to fix a non-zero exit from iasl -T ALL that actually succeeds From 9a78de129679c12fc44c7cc4e5dd5f0fb333f337 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 23 Feb 2020 16:10:20 -0700 Subject: [PATCH 06/82] Record that we tried to use the 20191018 upstream release, but chose not to Signed-off-by: Al Stone --- acpica-tools.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index edc4bbf..02b5af9 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools Version: 20191018 -Release: 1%{?dist} +Release: 2%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables License: GPLv2 @@ -237,6 +237,10 @@ fi %changelog +* Sun Feb 23 2020 Al Stone - 20191018-2 +- Upstream does not build from source -- this release not pushed into + the archives and noted here just for record keeping + * Tue Jan 28 2020 Fedora Release Engineering - 20190816-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 7ca9ff9b51b1736e67b2162c6e8d880cbe94f2ea Mon Sep 17 00:00:00 2001 From: Al Stone Date: Mon, 24 Feb 2020 15:20:53 -0700 Subject: [PATCH 07/82] Update to 20191213 upstream source, and GCC10 Signed-off-by: Al Stone --- .gitignore | 2 ++ acpica-tools.spec | 16 ++++++++++++---- badexit.patch | 18 ------------------ dup-symbol.patch | 22 ++++++++++++++++++++++ no-common.patch | 36 ++++++++++++++++++++++++++++++++++++ sources | 4 ++-- 6 files changed, 74 insertions(+), 24 deletions(-) delete mode 100644 badexit.patch create mode 100644 dup-symbol.patch create mode 100644 no-common.patch diff --git a/.gitignore b/.gitignore index 4886745..999302c 100644 --- a/.gitignore +++ b/.gitignore @@ -121,3 +121,5 @@ series /acpitests-unix-20190816.tar.gz /acpica-unix2-20191018.tar.gz /acpitests-unix-20191018.tar.gz +/acpica-unix2-20191213.tar.gz +/acpitests-unix-20191213.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 02b5af9..06cbe3d 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools -Version: 20191018 -Release: 2%{?dist} +Version: 20191213 +Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables License: GPLv2 @@ -46,7 +46,8 @@ Patch18: str-trunc-warn.patch Patch19: ptr-cast.patch Patch20: aslcodegen.patch Patch21: facp.patch -Patch22: badexit.patch +Patch22: dup-symbol.patch +Patch23: no-common.patch BuildRequires: bison patchutils flex gcc @@ -120,7 +121,8 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch19 -p1 -b .ptr-cast %patch20 -p1 -b .aslcodegen %patch21 -p1 -b .facp -%patch22 -p1 -b .badexit +%patch22 -p1 -b .dup-symbol +%patch23 -p1 -b .no-common cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -237,6 +239,12 @@ fi %changelog +* Sun Feb 23 2020 Al Stone - 20191213-1 +- Update to 20191213 source tree, including patch refeshes. +- badexit patch no longer needed, so removed +- GCC10 enforces -fno-common now, catching multiple places where linkage + is not explicitly stated; added a patch to resolve the linker errors + * Sun Feb 23 2020 Al Stone - 20191018-2 - Upstream does not build from source -- this release not pushed into the archives and noted here just for record keeping diff --git a/badexit.patch b/badexit.patch deleted file mode 100644 index 6bcc699..0000000 --- a/badexit.patch +++ /dev/null @@ -1,18 +0,0 @@ -When iasl is invoked with 'iasl -T ALL', and everything works correctly, -it still exits with a non-zero value. Exit with zero if all is well. - -Signed-off-by: Al Stone - -Index: acpica-unix-20191018/source/compiler/asloptions.c -=================================================================== ---- acpica-unix-20191018.orig/source/compiler/asloptions.c -+++ acpica-unix-20191018/source/compiler/asloptions.c -@@ -111,7 +111,7 @@ AslCommandLine ( - { - exit (-1); - } -- exit (1); -+ exit (0); - } - - /* Next parameter must be the input filename */ diff --git a/dup-symbol.patch b/dup-symbol.patch new file mode 100644 index 0000000..fd0d56b --- /dev/null +++ b/dup-symbol.patch @@ -0,0 +1,22 @@ +diff -Naur acpica-unix2-20191213.orig/source/tools/acpiexec/aemain.c acpica-unix2-20191213/source/tools/acpiexec/aemain.c +--- acpica-unix2-20191213.orig/source/tools/acpiexec/aemain.c 2020-02-23 16:32:25.935853162 -0700 ++++ acpica-unix2-20191213/source/tools/acpiexec/aemain.c 2020-02-23 16:44:38.949901103 -0700 +@@ -84,7 +84,6 @@ + UINT8 AcpiGbl_RegionFillValue = 0; + BOOLEAN AcpiGbl_IgnoreErrors = FALSE; + BOOLEAN AcpiGbl_AbortLoopOnTimeout = FALSE; +-BOOLEAN AcpiGbl_DbOpt_NoRegionSupport = FALSE; + UINT8 AcpiGbl_UseHwReducedFadt = FALSE; + BOOLEAN AcpiGbl_DoInterfaceTests = FALSE; + BOOLEAN AcpiGbl_LoadTestTables = FALSE; +@@ -549,6 +548,10 @@ + goto NormalExit; + } + ++ /* Initialize globals modified by command line options */ ++ ++ AcpiGbl_DbOpt_NoRegionSupport = FALSE; ++ + /* Get the command line options */ + + ExitCode = AeDoOptions (argc, argv); diff --git a/no-common.patch b/no-common.patch new file mode 100644 index 0000000..a9cbf1a --- /dev/null +++ b/no-common.patch @@ -0,0 +1,36 @@ +diff -Naur acpica-unix2-20191213.orig/source/compiler/dtcompiler.h acpica-unix2-20191213/source/compiler/dtcompiler.h +--- acpica-unix2-20191213.orig/source/compiler/dtcompiler.h 2020-02-23 18:05:24.257395129 -0700 ++++ acpica-unix2-20191213/source/compiler/dtcompiler.h 2020-02-23 18:06:42.956236378 -0700 +@@ -351,7 +351,7 @@ + + /* dtparser - lex/yacc files */ + +-UINT64 DtCompilerParserResult; /* Expression return value */ ++extern UINT64 DtCompilerParserResult; /* Expression return value */ + int + DtCompilerParserparse ( + void); +diff -Naur acpica-unix2-20191213.orig/source/compiler/aslcompiler.l acpica-unix2-20191213/source/compiler/aslcompiler.l +--- acpica-unix2-20191213.orig/source/compiler/aslcompiler.l 2019-12-13 08:58:18.000000000 -0700 ++++ acpica-unix2-20191213/source/compiler/aslcompiler.l 2020-02-24 15:08:53.067560139 -0700 +@@ -48,7 +48,7 @@ + + #include + #include +-YYSTYPE AslCompilerlval; ++extern YYSTYPE AslCompilerlval; + + /* + * Generation: Use the following command line: +diff -Naur acpica-unix2-20191213.orig/source/compiler/prparser.l acpica-unix2-20191213/source/compiler/prparser.l +--- acpica-unix2-20191213.orig/source/compiler/prparser.l 2019-12-13 08:58:19.000000000 -0700 ++++ acpica-unix2-20191213/source/compiler/prparser.l 2020-02-24 15:09:25.909839732 -0700 +@@ -116,7 +116,7 @@ + /* + * Local support functions + */ +-YY_BUFFER_STATE LexBuffer; ++extern YY_BUFFER_STATE LexBuffer; + + + /****************************************************************************** diff --git a/sources b/sources index 756e2da..2af27b0 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20191018.tar.gz) = 4b6cfcfe7866f5cde8085d9deb539d7653043b806aa40466873bdc1e4e875c0be4b4906e53c087f9f34ec755518cb0a206b5107eae557b977a2a2ca184069244 -SHA512 (acpitests-unix-20191018.tar.gz) = a51ef4c9dfad41bc34a8ec9c2251c8f9266ec20e7bff2f15c0244f06291ff665fb36825e2d60745179067f59f8be10e1a3b1f1496d25def6feb0d03a287be90d +SHA512 (acpica-unix2-20191213.tar.gz) = 144b8b8d56d3a1da0d11cbbfae7912860f995730c0d2ad34346ffcab3fa7fe9f907d14027b4ad7cc5b15d6ef6f6f9c44c34ee416e440ee578888c6dfcbf01cbf +SHA512 (acpitests-unix-20191213.tar.gz) = 109f54dd5077a10a633afaa1436afdbcd55684d7c413ab361c5a355905dfe70cd351a861fd5f59ff0c0ea2f5a0fd934e701f16e31e7a5fbdf6bc11045a1be48a From 35d1808c4657202dd77a8878a5ff9db7ef942a0d Mon Sep 17 00:00:00 2001 From: Al Stone Date: Mon, 24 Feb 2020 15:26:30 -0700 Subject: [PATCH 08/82] Update to 20200110 upstream source Signed-off-by: Al Stone --- .gitignore | 2 ++ acpica-tools.spec | 5 ++++- sources | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 999302c..d204c27 100644 --- a/.gitignore +++ b/.gitignore @@ -123,3 +123,5 @@ series /acpitests-unix-20191018.tar.gz /acpica-unix2-20191213.tar.gz /acpitests-unix-20191213.tar.gz +/acpica-unix2-20200110.tar.gz +/acpitests-unix-20200110.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 06cbe3d..dd06101 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20191213 +Version: 20200110 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -239,6 +239,9 @@ fi %changelog +* Mon Feb 24 2020 Al Stone - 20200110-1 +- Update to 20200110 source tree, including patch refreshes + * Sun Feb 23 2020 Al Stone - 20191213-1 - Update to 20191213 source tree, including patch refeshes. - badexit patch no longer needed, so removed diff --git a/sources b/sources index 2af27b0..35345a6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20191213.tar.gz) = 144b8b8d56d3a1da0d11cbbfae7912860f995730c0d2ad34346ffcab3fa7fe9f907d14027b4ad7cc5b15d6ef6f6f9c44c34ee416e440ee578888c6dfcbf01cbf -SHA512 (acpitests-unix-20191213.tar.gz) = 109f54dd5077a10a633afaa1436afdbcd55684d7c413ab361c5a355905dfe70cd351a861fd5f59ff0c0ea2f5a0fd934e701f16e31e7a5fbdf6bc11045a1be48a +SHA512 (acpica-unix2-20200110.tar.gz) = 5c7ab7d514a06dabbec75131bd6fc2fbcbc4e92b8a1fe63e45ccc90631556584b2dbbf96b3f945e8ab1eff40e5b0c9de96395aeed1cfd2bd03ec92d8442fed32 +SHA512 (acpitests-unix-20200110.tar.gz) = f3fd79de9df58e6d6f59a2c31d7b109a39b29b744a15e885af9cd44a765ee1cc85f7eb8314f7b00552b53898db555357d839e844c6c966488ae9a52d1ebff606 From 8817859d608e9c5f2e60ee72f5be8ee754c9a1a0 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Mon, 24 Feb 2020 15:41:56 -0700 Subject: [PATCH 09/82] Update to 20200214 upstream and refresh patches Signed-off-by: Al Stone --- .gitignore | 2 + acpica-tools.spec | 5 +- badcode.asl.result | 10 +- big-endian.patch | 274 ++++++++++++++++++------------------- converterSample.asl.result | 12 +- f23-harden.patch | 14 +- grammar.asl.result | 225 +++++++++++++++++++++++++++++- sources | 4 +- str-trunc-warn.patch | 22 +-- 9 files changed, 397 insertions(+), 171 deletions(-) diff --git a/.gitignore b/.gitignore index d204c27..c9f2b27 100644 --- a/.gitignore +++ b/.gitignore @@ -125,3 +125,5 @@ series /acpitests-unix-20191213.tar.gz /acpica-unix2-20200110.tar.gz /acpitests-unix-20200110.tar.gz +/acpica-unix2-20200214.tar.gz +/acpitests-unix-20200214.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index dd06101..bcac358 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20200110 +Version: 20200214 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -239,6 +239,9 @@ fi %changelog +* Mon Feb 24 2020 Al Stone - 20200214-1 +- Update to 20200214 source tree, including patch refreshes + * Mon Feb 24 2020 Al Stone - 20200110-1 - Update to 20200110 source tree, including patch refreshes diff --git a/badcode.asl.result b/badcode.asl.result index e4f174c..7f3e923 100644 --- a/badcode.asl.result +++ b/badcode.asl.result @@ -68,7 +68,7 @@ badcode.asl 97: Method (MTH2) Remark 2119 - ^ Control Method marked Serialized (Due to use of Switch operator) badcode.asl 97: Method (MTH2) -Warning 3115 - ^ Not all control paths return a value (MTH2) +Warning 3115 - ^ Not all control paths return a value (\MTH2) badcode.asl 101: Switch (ToInteger (INT1)) Error 6078 - ^ No Case statements under Switch @@ -77,13 +77,13 @@ badcode.asl 120: Store (MTH2 (), Local0) Warning 3144 - ^ Method Local is set but never used (Local0) badcode.asl 120: Store (MTH2 (), Local0) -Warning 3122 - ^ Called method may not always return a value +Warning 3122 - ^ Called method may not always return a value (\MTH2) badcode.asl 126: Method (MTH5) {Store (MTH4(), Local0)} Warning 3144 - Method Local is set but never used ^ (Local0) badcode.asl 126: Method (MTH5) {Store (MTH4(), Local0)} -Error 6080 - Called method returns no value ^ +Error 6080 - Called method returns no value ^ (\MTH4) badcode.asl 132: Name (_HID, "*PNP0C0A") // Illegal leading asterisk Error 6061 - Invalid leading asterisk ^ (*PNP0C0A) @@ -256,11 +256,11 @@ Warning 3144 - ^ Method Local is set but never used Intel ACPI Component Architecture ASL+ Optimizing Compiler/Disassembler version VVVVVVVV -Copyright (c) 2000 - 2019 Intel Corporation +Copyright (c) 2000 - 2020 Intel Corporation Ignoring all errors, forcing AML file generation -ASL Input: badcode.asl - 11587 bytes 81 keywords 408 source lines +ASL Input: badcode.asl - 11588 bytes 81 keywords 408 source lines AML Output: badcode.aml - 1195 bytes 20 opcodes 61 named objects Compilation successful. 45 Errors, 29 Warnings, 11 Remarks, 16 Optimizations, 1 Constants Folded diff --git a/big-endian.patch b/big-endian.patch index bb12ed6..8d89a5b 100644 --- a/big-endian.patch +++ b/big-endian.patch @@ -8,10 +8,10 @@ To date, this has been critical for the s390x architecture only. Signed-off-by: Al Stone -Index: acpica-unix-20191018/source/compiler/aslcodegen.c +Index: acpica-unix-20200214/source/compiler/aslcodegen.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslcodegen.c -+++ acpica-unix-20191018/source/compiler/aslcodegen.c +--- acpica-unix-20200214.orig/source/compiler/aslcodegen.c ++++ acpica-unix-20200214/source/compiler/aslcodegen.c @@ -237,16 +237,12 @@ CgWriteAmlOpcode ( ACPI_PARSE_OBJECT *Op) { @@ -253,10 +253,10 @@ Index: acpica-unix-20191018/source/compiler/aslcodegen.c case AML_RAW_DATA_BUFFER: -Index: acpica-unix-20191018/source/compiler/aslopcodes.c +Index: acpica-unix-20200214/source/compiler/aslopcodes.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslopcodes.c -+++ acpica-unix-20191018/source/compiler/aslopcodes.c +--- acpica-unix-20200214.orig/source/compiler/aslopcodes.c ++++ acpica-unix-20200214/source/compiler/aslopcodes.c @@ -485,6 +485,7 @@ OpcDoUnicode ( UINT32 i; UINT8 *AsciiString; @@ -275,10 +275,10 @@ Index: acpica-unix-20191018/source/compiler/aslopcodes.c } /* -Index: acpica-unix-20191018/source/compiler/aslrestype1.c +Index: acpica-unix-20200214/source/compiler/aslrestype1.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype1.c -+++ acpica-unix-20191018/source/compiler/aslrestype1.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype1.c ++++ acpica-unix-20200214/source/compiler/aslrestype1.c @@ -142,6 +142,11 @@ RsDoMemory24Descriptor ( ACPI_PARSE_OBJECT *LengthOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -475,10 +475,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.AddressLength)); break; -Index: acpica-unix-20191018/source/compiler/aslrestype1i.c +Index: acpica-unix-20200214/source/compiler/aslrestype1i.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype1i.c -+++ acpica-unix-20191018/source/compiler/aslrestype1i.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype1i.c ++++ acpica-unix-20200214/source/compiler/aslrestype1i.c @@ -198,6 +198,8 @@ RsDoFixedDmaDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -615,10 +615,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype1i.c + ACPI_MOVE_16_TO_16(&Descriptor->Irq.IrqMask, &IrqMask); return (Rnode); } -Index: acpica-unix-20191018/source/compiler/aslrestype2.c +Index: acpica-unix-20200214/source/compiler/aslrestype2.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype2.c -+++ acpica-unix-20191018/source/compiler/aslrestype2.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype2.c ++++ acpica-unix-20200214/source/compiler/aslrestype2.c @@ -76,6 +76,7 @@ RsDoGeneralRegisterDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -759,10 +759,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype2.c /* Point to end-of-descriptor for vendor data */ -Index: acpica-unix-20191018/source/compiler/aslrestype2d.c +Index: acpica-unix-20200214/source/compiler/aslrestype2d.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype2d.c -+++ acpica-unix-20191018/source/compiler/aslrestype2d.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype2d.c ++++ acpica-unix-20200214/source/compiler/aslrestype2d.c @@ -79,7 +79,13 @@ RsDoDwordIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1118,10 +1118,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype2d.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20191018/source/compiler/aslrestype2e.c +Index: acpica-unix-20200214/source/compiler/aslrestype2e.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype2e.c -+++ acpica-unix-20191018/source/compiler/aslrestype2e.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype2e.c ++++ acpica-unix-20200214/source/compiler/aslrestype2e.c @@ -78,6 +78,13 @@ RsDoExtendedIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1227,10 +1227,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype2e.c Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); -Index: acpica-unix-20191018/source/compiler/aslrestype2q.c +Index: acpica-unix-20200214/source/compiler/aslrestype2q.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype2q.c -+++ acpica-unix-20191018/source/compiler/aslrestype2q.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype2q.c ++++ acpica-unix-20200214/source/compiler/aslrestype2q.c @@ -80,7 +80,13 @@ RsDoQwordIoDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; @@ -1569,10 +1569,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype2q.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20191018/source/compiler/aslrestype2s.c +Index: acpica-unix-20200214/source/compiler/aslrestype2s.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype2s.c -+++ acpica-unix-20191018/source/compiler/aslrestype2s.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype2s.c ++++ acpica-unix-20200214/source/compiler/aslrestype2s.c @@ -340,9 +340,14 @@ RsDoGpioIntDescriptor ( UINT16 VendorLength; UINT16 InterruptLength; @@ -2038,10 +2038,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype2s.c MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } -Index: acpica-unix-20191018/source/compiler/aslrestype2w.c +Index: acpica-unix-20200214/source/compiler/aslrestype2w.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslrestype2w.c -+++ acpica-unix-20191018/source/compiler/aslrestype2w.c +--- acpica-unix-20200214.orig/source/compiler/aslrestype2w.c ++++ acpica-unix-20200214/source/compiler/aslrestype2w.c @@ -81,6 +81,12 @@ RsDoWordIoDescriptor ( UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -2385,10 +2385,10 @@ Index: acpica-unix-20191018/source/compiler/aslrestype2w.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20191018/source/include/acmacros.h +Index: acpica-unix-20200214/source/include/acmacros.h =================================================================== ---- acpica-unix-20191018.orig/source/include/acmacros.h -+++ acpica-unix-20191018/source/include/acmacros.h +--- acpica-unix-20200214.orig/source/include/acmacros.h ++++ acpica-unix-20200214/source/include/acmacros.h @@ -98,9 +98,12 @@ ((UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\ ((UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];} @@ -2467,10 +2467,10 @@ Index: acpica-unix-20191018/source/include/acmacros.h #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ -Index: acpica-unix-20191018/source/include/platform/aclinux.h +Index: acpica-unix-20200214/source/include/platform/aclinux.h =================================================================== ---- acpica-unix-20191018.orig/source/include/platform/aclinux.h -+++ acpica-unix-20191018/source/include/platform/aclinux.h +--- acpica-unix-20200214.orig/source/include/platform/aclinux.h ++++ acpica-unix-20200214/source/include/platform/aclinux.h @@ -198,6 +198,7 @@ #ifdef ACPI_USE_STANDARD_HEADERS @@ -2490,11 +2490,11 @@ Index: acpica-unix-20191018/source/include/platform/aclinux.h #endif /* __KERNEL__ */ #endif /* __ACLINUX_H__ */ -Index: acpica-unix-20191018/source/compiler/aslanalyze.c +Index: acpica-unix-20200214/source/compiler/aslanalyze.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslanalyze.c -+++ acpica-unix-20191018/source/compiler/aslanalyze.c -@@ -461,7 +461,7 @@ ApCheckForGpeNameConflict ( +--- acpica-unix-20200214.orig/source/compiler/aslanalyze.c ++++ acpica-unix-20200214/source/compiler/aslanalyze.c +@@ -469,7 +469,7 @@ ApCheckForGpeNameConflict ( /* Need a null-terminated string version of NameSeg */ @@ -2503,7 +2503,7 @@ Index: acpica-unix-20191018/source/compiler/aslanalyze.c Name[ACPI_NAMESEG_SIZE] = 0; /* -@@ -488,7 +488,7 @@ ApCheckForGpeNameConflict ( +@@ -496,7 +496,7 @@ ApCheckForGpeNameConflict ( * We are now sure we have an _Lxx or _Exx. * Create the target name that would cause collision (Flip E/L) */ @@ -2512,10 +2512,10 @@ Index: acpica-unix-20191018/source/compiler/aslanalyze.c /* Inject opposite letter ("L" versus "E") */ -Index: acpica-unix-20191018/source/compiler/asllookup.c +Index: acpica-unix-20200214/source/compiler/asllookup.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/asllookup.c -+++ acpica-unix-20191018/source/compiler/asllookup.c +--- acpica-unix-20200214.orig/source/compiler/asllookup.c ++++ acpica-unix-20200214/source/compiler/asllookup.c @@ -119,6 +119,7 @@ LkIsObjectUsed ( { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); @@ -2546,10 +2546,10 @@ Index: acpica-unix-20191018/source/compiler/asllookup.c AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED, LkGetNameOp (Node->Op), AslGbl_MsgBuffer); return (AE_OK); -Index: acpica-unix-20191018/source/compiler/aslmain.c +Index: acpica-unix-20200214/source/compiler/aslmain.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslmain.c -+++ acpica-unix-20191018/source/compiler/aslmain.c +--- acpica-unix-20200214.orig/source/compiler/aslmain.c ++++ acpica-unix-20200214/source/compiler/aslmain.c @@ -101,18 +101,6 @@ main ( signal (SIGINT, AslSignalHandler); @@ -2569,10 +2569,10 @@ Index: acpica-unix-20191018/source/compiler/aslmain.c AcpiOsInitialize (); ACPI_DEBUG_INITIALIZE (); /* For debug version only */ -Index: acpica-unix-20191018/source/common/acfileio.c +Index: acpica-unix-20200214/source/common/acfileio.c =================================================================== ---- acpica-unix-20191018.orig/source/common/acfileio.c -+++ acpica-unix-20191018/source/common/acfileio.c +--- acpica-unix-20200214.orig/source/common/acfileio.c ++++ acpica-unix-20200214/source/common/acfileio.c @@ -280,6 +280,7 @@ AcGetOneTableFromFile ( ACPI_TABLE_HEADER *Table; INT32 Count; @@ -2639,10 +2639,10 @@ Index: acpica-unix-20191018/source/common/acfileio.c (UINT32) (FileSize - TableOffset)); return (AE_BAD_HEADER); } -Index: acpica-unix-20191018/source/common/dmtable.c +Index: acpica-unix-20200214/source/common/dmtable.c =================================================================== ---- acpica-unix-20191018.orig/source/common/dmtable.c -+++ acpica-unix-20191018/source/common/dmtable.c +--- acpica-unix-20200214.orig/source/common/dmtable.c ++++ acpica-unix-20200214/source/common/dmtable.c @@ -551,7 +551,7 @@ AcpiDmDumpDataTable ( */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_FACS)) @@ -2741,10 +2741,10 @@ Index: acpica-unix-20191018/source/common/dmtable.c AcpiDmNfitSubnames[Temp16]); break; -Index: acpica-unix-20191018/source/common/dmtables.c +Index: acpica-unix-20200214/source/common/dmtables.c =================================================================== ---- acpica-unix-20191018.orig/source/common/dmtables.c -+++ acpica-unix-20191018/source/common/dmtables.c +--- acpica-unix-20200214.orig/source/common/dmtables.c ++++ acpica-unix-20200214/source/common/dmtables.c @@ -142,7 +142,9 @@ AdCreateTableHeader ( ACPI_TABLE_HEADER *Table) { @@ -2808,12 +2808,12 @@ Index: acpica-unix-20191018/source/common/dmtables.c + ACPI_MOVE_32_TO_32(&AmlLength, &Table->Length); + AmlLength -= sizeof (ACPI_TABLE_HEADER); AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); - ASL_CV_INIT_FILETREE(Table, AmlStart, AmlLength); -Index: acpica-unix-20191018/source/compiler/dtfield.c + AcpiUtSetIntegerWidth (Table->Revision); +Index: acpica-unix-20200214/source/compiler/dtfield.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/dtfield.c -+++ acpica-unix-20191018/source/compiler/dtfield.c +--- acpica-unix-20200214.orig/source/compiler/dtfield.c ++++ acpica-unix-20200214/source/compiler/dtfield.c @@ -361,7 +361,27 @@ DtCompileInteger ( DtError (ASL_ERROR, ASL_MSG_INTEGER_SIZE, Field, AslGbl_MsgBuffer); } @@ -2843,10 +2843,10 @@ Index: acpica-unix-20191018/source/compiler/dtfield.c return; } -Index: acpica-unix-20191018/source/compiler/dtsubtable.c +Index: acpica-unix-20200214/source/compiler/dtsubtable.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/dtsubtable.c -+++ acpica-unix-20191018/source/compiler/dtsubtable.c +--- acpica-unix-20200214.orig/source/compiler/dtsubtable.c ++++ acpica-unix-20200214/source/compiler/dtsubtable.c @@ -378,6 +378,21 @@ DtSetSubtableLength ( return; } @@ -2871,10 +2871,10 @@ Index: acpica-unix-20191018/source/compiler/dtsubtable.c + Subtable->SizeOfLengthField); + } } -Index: acpica-unix-20191018/source/compiler/dttable1.c +Index: acpica-unix-20200214/source/compiler/dttable1.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/dttable1.c -+++ acpica-unix-20191018/source/compiler/dttable1.c +--- acpica-unix-20200214.orig/source/compiler/dttable1.c ++++ acpica-unix-20200214/source/compiler/dttable1.c @@ -281,6 +281,8 @@ DtCompileCsrt ( DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 DescriptorCount; @@ -3246,10 +3246,10 @@ Index: acpica-unix-20191018/source/compiler/dttable1.c return (AE_OK); } -Index: acpica-unix-20191018/source/compiler/dttable2.c +Index: acpica-unix-20200214/source/compiler/dttable2.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/dttable2.c -+++ acpica-unix-20191018/source/compiler/dttable2.c +--- acpica-unix-20200214.orig/source/compiler/dttable2.c ++++ acpica-unix-20200214/source/compiler/dttable2.c @@ -345,7 +345,7 @@ DtCompileMpst ( DtPushSubtable (Subtable); @@ -3360,7 +3360,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c LocalityBuffer = UtLocalCalloc (Localities); LocalityListLength = 0; -@@ -1740,6 +1746,7 @@ DtCompileTcpa ( +@@ -1741,6 +1747,7 @@ DtCompileTcpa ( ACPI_TABLE_TCPA_HDR *TcpaHeader; DT_SUBTABLE *ParentTable; ACPI_STATUS Status; @@ -3368,7 +3368,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c /* Compile the main table */ -@@ -1760,7 +1767,8 @@ DtCompileTcpa ( +@@ -1761,7 +1768,8 @@ DtCompileTcpa ( */ TcpaHeader = ACPI_CAST_PTR (ACPI_TABLE_TCPA_HDR, ParentTable->Buffer); @@ -3378,7 +3378,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c { case ACPI_TCPA_CLIENT_TABLE: -@@ -1808,6 +1816,7 @@ DtCompileTpm2Rev3 ( +@@ -1809,6 +1817,7 @@ DtCompileTpm2Rev3 ( ACPI_TABLE_TPM23 *Tpm23Header; DT_SUBTABLE *ParentTable; ACPI_STATUS Status = AE_OK; @@ -3386,7 +3386,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c Status = DtCompileTable (PFieldList, AcpiDmTableInfoTpm23, -@@ -1819,7 +1828,8 @@ DtCompileTpm2Rev3 ( +@@ -1820,7 +1829,8 @@ DtCompileTpm2Rev3 ( /* Subtable type depends on the StartMethod */ @@ -3396,7 +3396,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c { case ACPI_TPM23_ACPI_START_METHOD: -@@ -1866,6 +1876,7 @@ DtCompileTpm2 ( +@@ -1867,6 +1877,7 @@ DtCompileTpm2 ( DT_SUBTABLE *ParentTable; ACPI_STATUS Status = AE_OK; ACPI_TABLE_HEADER *Header; @@ -3404,7 +3404,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c ParentTable = DtPeekSubtable (); -@@ -1909,7 +1920,8 @@ DtCompileTpm2 ( +@@ -1910,7 +1921,8 @@ DtCompileTpm2 ( /* Subtable type depends on the StartMethod */ @@ -3414,7 +3414,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c { case ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC: -@@ -2125,6 +2137,9 @@ DtCompileWpbt ( +@@ -2126,6 +2138,9 @@ DtCompileWpbt ( ACPI_TABLE_WPBT *Table; ACPI_STATUS Status; UINT16 Length; @@ -3424,7 +3424,7 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c /* Compile the main table */ -@@ -2152,7 +2167,16 @@ DtCompileWpbt ( +@@ -2153,7 +2168,16 @@ DtCompileWpbt ( Length = (UINT16) Subtable->TotalLength; Table = ACPI_CAST_PTR (ACPI_TABLE_WPBT, ParentTable->Buffer); @@ -3442,10 +3442,10 @@ Index: acpica-unix-20191018/source/compiler/dttable2.c ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); -Index: acpica-unix-20191018/source/components/disassembler/dmbuffer.c +Index: acpica-unix-20200214/source/components/disassembler/dmbuffer.c =================================================================== ---- acpica-unix-20191018.orig/source/components/disassembler/dmbuffer.c -+++ acpica-unix-20191018/source/components/disassembler/dmbuffer.c +--- acpica-unix-20200214.orig/source/components/disassembler/dmbuffer.c ++++ acpica-unix-20200214/source/components/disassembler/dmbuffer.c @@ -204,7 +204,7 @@ AcpiDmByteList ( @@ -3521,10 +3521,10 @@ Index: acpica-unix-20191018/source/components/disassembler/dmbuffer.c NextOp = AcpiPsGetDepthNext (NULL, Op); if (!NextOp) -Index: acpica-unix-20191018/source/components/disassembler/dmopcode.c +Index: acpica-unix-20200214/source/components/disassembler/dmopcode.c =================================================================== ---- acpica-unix-20191018.orig/source/components/disassembler/dmopcode.c -+++ acpica-unix-20191018/source/components/disassembler/dmopcode.c +--- acpica-unix-20200214.orig/source/components/disassembler/dmopcode.c ++++ acpica-unix-20200214/source/components/disassembler/dmopcode.c @@ -244,6 +244,7 @@ AcpiDmPredefinedDescription ( char *NameString; int LastCharIsDigit; @@ -3595,10 +3595,10 @@ Index: acpica-unix-20191018/source/components/disassembler/dmopcode.c Info->Level += 1; Info->MappingOp = Op; -Index: acpica-unix-20191018/source/components/disassembler/dmresrcl.c +Index: acpica-unix-20200214/source/components/disassembler/dmresrcl.c =================================================================== ---- acpica-unix-20191018.orig/source/components/disassembler/dmresrcl.c -+++ acpica-unix-20191018/source/components/disassembler/dmresrcl.c +--- acpica-unix-20200214.orig/source/components/disassembler/dmresrcl.c ++++ acpica-unix-20200214/source/components/disassembler/dmresrcl.c @@ -141,7 +141,8 @@ AcpiDmMemoryFields ( UINT32 Level) { @@ -3747,10 +3747,10 @@ Index: acpica-unix-20191018/source/components/disassembler/dmresrcl.c } AcpiDmIndent (Level); -Index: acpica-unix-20191018/source/components/disassembler/dmresrcl2.c +Index: acpica-unix-20200214/source/components/disassembler/dmresrcl2.c =================================================================== ---- acpica-unix-20191018.orig/source/components/disassembler/dmresrcl2.c -+++ acpica-unix-20191018/source/components/disassembler/dmresrcl2.c +--- acpica-unix-20200214.orig/source/components/disassembler/dmresrcl2.c ++++ acpica-unix-20200214/source/components/disassembler/dmresrcl2.c @@ -191,22 +191,24 @@ AcpiDmGpioCommon ( char *DeviceName = NULL; UINT32 PinCount; @@ -3974,10 +3974,10 @@ Index: acpica-unix-20191018/source/components/disassembler/dmresrcl2.c DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); -Index: acpica-unix-20191018/source/components/disassembler/dmresrcs.c +Index: acpica-unix-20200214/source/components/disassembler/dmresrcs.c =================================================================== ---- acpica-unix-20191018.orig/source/components/disassembler/dmresrcs.c -+++ acpica-unix-20191018/source/components/disassembler/dmresrcs.c +--- acpica-unix-20200214.orig/source/components/disassembler/dmresrcs.c ++++ acpica-unix-20200214/source/components/disassembler/dmresrcs.c @@ -72,6 +72,7 @@ AcpiDmIrqDescriptor ( UINT32 Length, UINT32 Level) @@ -4034,10 +4034,10 @@ Index: acpica-unix-20191018/source/components/disassembler/dmresrcs.c AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->FixedIo.AddressLength, "Length"); -Index: acpica-unix-20191018/source/components/dispatcher/dsfield.c +Index: acpica-unix-20200214/source/components/dispatcher/dsfield.c =================================================================== ---- acpica-unix-20191018.orig/source/components/dispatcher/dsfield.c -+++ acpica-unix-20191018/source/components/dispatcher/dsfield.c +--- acpica-unix-20200214.orig/source/components/dispatcher/dsfield.c ++++ acpica-unix-20200214/source/components/dispatcher/dsfield.c @@ -324,6 +324,7 @@ AcpiDsGetFieldNames ( ACPI_STATUS Status; UINT64 Position; @@ -4082,10 +4082,10 @@ Index: acpica-unix-20191018/source/components/dispatcher/dsfield.c if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, -Index: acpica-unix-20191018/source/components/events/evgpeblk.c +Index: acpica-unix-20200214/source/components/events/evgpeblk.c =================================================================== ---- acpica-unix-20191018.orig/source/components/events/evgpeblk.c -+++ acpica-unix-20191018/source/components/events/evgpeblk.c +--- acpica-unix-20200214.orig/source/components/events/evgpeblk.c ++++ acpica-unix-20200214/source/components/events/evgpeblk.c @@ -380,6 +380,7 @@ AcpiEvCreateGpeBlock ( ACPI_STATUS Status; ACPI_GPE_BLOCK_INFO *GpeBlock; @@ -4118,10 +4118,10 @@ Index: acpica-unix-20191018/source/components/events/evgpeblk.c InterruptNumber == AcpiGbl_FADT.SciInterrupt ? " (SCI)" : "")); /* Update global count of currently available GPEs */ -Index: acpica-unix-20191018/source/components/hardware/hwregs.c +Index: acpica-unix-20200214/source/components/hardware/hwregs.c =================================================================== ---- acpica-unix-20191018.orig/source/components/hardware/hwregs.c -+++ acpica-unix-20191018/source/components/hardware/hwregs.c +--- acpica-unix-20200214.orig/source/components/hardware/hwregs.c ++++ acpica-unix-20200214/source/components/hardware/hwregs.c @@ -197,7 +197,7 @@ AcpiHwValidateRegister ( * Address must not be null. A null address also indicates an optional * ACPI register that is not supported, so no error message. @@ -4131,10 +4131,10 @@ Index: acpica-unix-20191018/source/components/hardware/hwregs.c if (!(*Address)) { return (AE_BAD_ADDRESS); -Index: acpica-unix-20191018/source/components/hardware/hwvalid.c +Index: acpica-unix-20200214/source/components/hardware/hwvalid.c =================================================================== ---- acpica-unix-20191018.orig/source/components/hardware/hwvalid.c -+++ acpica-unix-20191018/source/components/hardware/hwvalid.c +--- acpica-unix-20200214.orig/source/components/hardware/hwvalid.c ++++ acpica-unix-20200214/source/components/hardware/hwvalid.c @@ -135,6 +135,8 @@ AcpiHwValidateIoRequest ( UINT32 ByteWidth; ACPI_IO_ADDRESS LastAddress; @@ -4156,10 +4156,10 @@ Index: acpica-unix-20191018/source/components/hardware/hwvalid.c { ACPI_ERROR ((AE_INFO, "Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X", -Index: acpica-unix-20191018/source/components/namespace/nsaccess.c +Index: acpica-unix-20200214/source/components/namespace/nsaccess.c =================================================================== ---- acpica-unix-20191018.orig/source/components/namespace/nsaccess.c -+++ acpica-unix-20191018/source/components/namespace/nsaccess.c +--- acpica-unix-20200214.orig/source/components/namespace/nsaccess.c ++++ acpica-unix-20200214/source/components/namespace/nsaccess.c @@ -349,6 +349,7 @@ AcpiNsLookup ( UINT32 SearchParentFlag = ACPI_NS_SEARCH_PARENT; UINT32 LocalFlags; @@ -4180,10 +4180,10 @@ Index: acpica-unix-20191018/source/components/namespace/nsaccess.c AcpiUtGetTypeName (ThisNode->Type), AcpiUtGetTypeName (TypeToCheckFor))); } -Index: acpica-unix-20191018/source/components/namespace/nsparse.c +Index: acpica-unix-20200214/source/components/namespace/nsparse.c =================================================================== ---- acpica-unix-20191018.orig/source/components/namespace/nsparse.c -+++ acpica-unix-20191018/source/components/namespace/nsparse.c +--- acpica-unix-20200214.orig/source/components/namespace/nsparse.c ++++ acpica-unix-20200214/source/components/namespace/nsparse.c @@ -216,13 +216,14 @@ AcpiNsOneCompleteParse ( /* Table must consist of at least a complete header */ @@ -4201,10 +4201,10 @@ Index: acpica-unix-20191018/source/components/namespace/nsparse.c Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_FAILURE (Status)) -Index: acpica-unix-20191018/source/components/tables/tbdata.c +Index: acpica-unix-20200214/source/components/tables/tbdata.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbdata.c -+++ acpica-unix-20191018/source/components/tables/tbdata.c +--- acpica-unix-20200214.orig/source/components/tables/tbdata.c ++++ acpica-unix-20200214/source/components/tables/tbdata.c @@ -552,6 +552,7 @@ AcpiTbVerifyTempTable ( UINT32 *TableIndex) { @@ -4223,10 +4223,10 @@ Index: acpica-unix-20191018/source/components/tables/tbdata.c if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, AE_NO_MEMORY, -Index: acpica-unix-20191018/source/components/tables/tbfadt.c +Index: acpica-unix-20200214/source/components/tables/tbfadt.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbfadt.c -+++ acpica-unix-20191018/source/components/tables/tbfadt.c +--- acpica-unix-20200214.orig/source/components/tables/tbfadt.c ++++ acpica-unix-20200214/source/components/tables/tbfadt.c @@ -424,18 +424,20 @@ AcpiTbCreateLocalFadt ( ACPI_TABLE_HEADER *Table, UINT32 Length) @@ -4338,10 +4338,10 @@ Index: acpica-unix-20191018/source/components/tables/tbfadt.c "PmRegisters", 0); } } -Index: acpica-unix-20191018/source/components/tables/tbfind.c +Index: acpica-unix-20200214/source/components/tables/tbfind.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbfind.c -+++ acpica-unix-20191018/source/components/tables/tbfind.c +--- acpica-unix-20200214.orig/source/components/tables/tbfind.c ++++ acpica-unix-20200214/source/components/tables/tbfind.c @@ -108,8 +108,11 @@ AcpiTbFindTable ( (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) @@ -4355,10 +4355,10 @@ Index: acpica-unix-20191018/source/components/tables/tbfind.c { /* Not the requested table */ -Index: acpica-unix-20191018/source/components/tables/tbprint.c +Index: acpica-unix-20200214/source/components/tables/tbprint.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbprint.c -+++ acpica-unix-20191018/source/components/tables/tbprint.c +--- acpica-unix-20200214.orig/source/components/tables/tbprint.c ++++ acpica-unix-20200214/source/components/tables/tbprint.c @@ -143,15 +143,18 @@ AcpiTbPrintTableHeader ( ACPI_TABLE_HEADER *Header) { @@ -4400,10 +4400,10 @@ Index: acpica-unix-20191018/source/components/tables/tbprint.c } } -Index: acpica-unix-20191018/source/components/tables/tbutils.c +Index: acpica-unix-20200214/source/components/tables/tbutils.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbutils.c -+++ acpica-unix-20191018/source/components/tables/tbutils.c +--- acpica-unix-20200214.orig/source/components/tables/tbutils.c ++++ acpica-unix-20200214/source/components/tables/tbutils.c @@ -238,7 +238,7 @@ AcpiTbGetRootTableEntry ( * 64-bit platform, XSDT: Move (unaligned) 64-bit to local, * return 64-bit @@ -4463,10 +4463,10 @@ Index: acpica-unix-20191018/source/components/tables/tbutils.c { AcpiGbl_FadtIndex = TableIndex; AcpiTbParseFadt (); -Index: acpica-unix-20191018/source/components/tables/tbxface.c +Index: acpica-unix-20200214/source/components/tables/tbxface.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbxface.c -+++ acpica-unix-20191018/source/components/tables/tbxface.c +--- acpica-unix-20200214.orig/source/components/tables/tbxface.c ++++ acpica-unix-20200214/source/components/tables/tbxface.c @@ -293,8 +293,11 @@ AcpiGetTableHeader ( for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) @@ -4480,10 +4480,10 @@ Index: acpica-unix-20191018/source/components/tables/tbxface.c { continue; } -Index: acpica-unix-20191018/source/components/tables/tbxfload.c +Index: acpica-unix-20200214/source/components/tables/tbxfload.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbxfload.c -+++ acpica-unix-20191018/source/components/tables/tbxfload.c +--- acpica-unix-20200214.orig/source/components/tables/tbxfload.c ++++ acpica-unix-20200214/source/components/tables/tbxfload.c @@ -153,6 +153,7 @@ AcpiTbLoadNamespace ( ACPI_TABLE_DESC *Table; UINT32 TablesLoaded = 0; @@ -4503,10 +4503,10 @@ Index: acpica-unix-20191018/source/components/tables/tbxfload.c ACPI_FAILURE (AcpiTbValidateTable (Table))) { Status = AE_NO_ACPI_TABLES; -Index: acpica-unix-20191018/source/tools/acpiexec/aetables.c +Index: acpica-unix-20200214/source/tools/acpiexec/aetables.c =================================================================== ---- acpica-unix-20191018.orig/source/tools/acpiexec/aetables.c -+++ acpica-unix-20191018/source/tools/acpiexec/aetables.c +--- acpica-unix-20200214.orig/source/tools/acpiexec/aetables.c ++++ acpica-unix-20200214/source/tools/acpiexec/aetables.c @@ -146,21 +146,25 @@ AeInitializeTableHeader ( char *Signature, UINT32 Length) @@ -4658,10 +4658,10 @@ Index: acpica-unix-20191018/source/tools/acpiexec/aetables.c } return (AE_OK); -Index: acpica-unix-20191018/source/common/dmswitch.c +Index: acpica-unix-20200214/source/common/dmswitch.c =================================================================== ---- acpica-unix-20191018.orig/source/common/dmswitch.c -+++ acpica-unix-20191018/source/common/dmswitch.c +--- acpica-unix-20200214.orig/source/common/dmswitch.c ++++ acpica-unix-20200214/source/common/dmswitch.c @@ -88,13 +88,15 @@ AcpiDmProcessSwitch ( ACPI_PARSE_OBJECT_LIST *Current; ACPI_PARSE_OBJECT_LIST *Previous; diff --git a/converterSample.asl.result b/converterSample.asl.result index fd63f11..47c532c 100644 --- a/converterSample.asl.result +++ b/converterSample.asl.result @@ -1,11 +1,11 @@ converterSample.asl 37: Method(MAIN) { -Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within) +Remark 2120 - ^ Control Method should be made Serialized due to creation of named objects within (\MAIN) converterSample.asl 48: Name(b,0); Remark 2089 - Object is not referenced ^ (Name [B___] is within a method [MAIN]) converterSample.asl 65: Method(SCOP) -Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within) +Remark 2120 - ^ Control Method should be made Serialized due to creation of named objects within (\SCOP) converterSample.asl 68: Name (a1, 0x04) Remark 2089 - Object is not referenced ^ (Name [A1__] is within a method [SCOP]) @@ -16,9 +16,11 @@ Remark 2158 - ^ Unnecessary/redundant use of Offset Intel ACPI Component Architecture ASL+ Optimizing Compiler/Disassembler version VVVVVVVV -Copyright (c) 2000 - 2019 Intel Corporation +Copyright (c) 2000 - 2020 Intel Corporation + +Ignoring all errors, forcing AML file generation ASL Input: converterSample.asl - 1968 bytes 11 keywords 85 source lines -AML Output: converterSample.aml - 180 bytes 2 opcodes 9 named objects +AML Output: converterSample.aml - 182 bytes 2 opcodes 9 named objects -Compilation successful. 0 Errors, 0 Warnings, 5 Remarks, 12 Optimizations, 1 Constants Folded +Compilation successful. 0 Errors, 0 Warnings, 5 Remarks, 10 Optimizations diff --git a/f23-harden.patch b/f23-harden.patch index c719d07..eacb454 100644 --- a/f23-harden.patch +++ b/f23-harden.patch @@ -8,10 +8,10 @@ From: Al Stone generate/unix/iasl/Makefile | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) -Index: acpica-unix-20191018/generate/unix/Makefile.config +Index: acpica-unix-20200214/generate/unix/Makefile.config =================================================================== ---- acpica-unix-20191018.orig/generate/unix/Makefile.config -+++ acpica-unix-20191018/generate/unix/Makefile.config +--- acpica-unix-20200214.orig/generate/unix/Makefile.config ++++ acpica-unix-20200214/generate/unix/Makefile.config @@ -190,6 +190,8 @@ ifneq ($(NOFORTIFY),TRUE) OPT_CFLAGS += -D_FORTIFY_SOURCE=2 endif @@ -19,12 +19,12 @@ Index: acpica-unix-20191018/generate/unix/Makefile.config +OPT_CFLAGS += -fPIC -pie + CFLAGS += \ - -D$(HOST)\ + -D$(ACPI_HOST)\ -D_GNU_SOURCE\ -Index: acpica-unix-20191018/generate/unix/iasl/Makefile +Index: acpica-unix-20200214/generate/unix/iasl/Makefile =================================================================== ---- acpica-unix-20191018.orig/generate/unix/iasl/Makefile -+++ acpica-unix-20191018/generate/unix/iasl/Makefile +--- acpica-unix-20200214.orig/generate/unix/iasl/Makefile ++++ acpica-unix-20200214/generate/unix/iasl/Makefile @@ -358,34 +358,35 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa # Cannot use the common compile warning flags since the C files are created # by the utilities above and they are not necessarily ANSI C, etc. diff --git a/grammar.asl.result b/grammar.asl.result index e5ac529..c4b9c48 100644 --- a/grammar.asl.result +++ b/grammar.asl.result @@ -19,9 +19,15 @@ Warning 3133 - ^ Unknown reserved name (_NPK) grammar.asl 208: Device (RES) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 247: Name (PRT0, ResourceTemplate () +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\RES._CRS) + grammar.asl 399: CreateByteField (PRT0, R000._ASZ, RSIZ) Remark 2089 - Object is not referenced ^ (Name [RSIZ] is within a method [_CRS]) +grammar.asl 406: Name (BUF0, ResourceTemplate () +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\RES._PRS) + grammar.asl 513: Name (_STR, Unicode ("test")) Remark 2089 - ^ Object is not referenced (Name [_STR] is within a method [TCOP]) @@ -70,6 +76,9 @@ Remark 2089 - Object is not referenced ^ (Name [FL grammar.asl 705: Device(PCI0) Warning 3073 - Multiple types ^ (Device object requires either a _HID or _ADR, but not both) +grammar.asl 712: Name(PRT0, ResourceTemplate() { +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.PCI0._CRS) + grammar.asl 733: Method(_SRS) Warning 3102 - ^ Reserved method has too few arguments (_SRS requires 1) @@ -100,9 +109,21 @@ Remark 2146 - ^ Method Argument is never used (Arg0) grammar.asl 1300: Name(BUFR, Buffer (Local0) {}) Remark 2089 - ^ Object is not referenced (Name [BUFR] is within a method [OBJ1]) +grammar.asl 1300: Name(BUFR, Buffer (Local0) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ1) + +grammar.asl 1301: Name(BUF1, Buffer (4) {1,2,3,4}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ1) + +grammar.asl 1302: Name(BUF2, Buffer (4) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ1) + grammar.asl 1307: Alias (MTX1, MTX2) Remark 2089 - Object is not referenced ^ (Name [MTX2] is within a method [OBJ1]) +grammar.asl 1321: Name (BUF2, Buffer (128) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\FLDS) + grammar.asl 1329: CreateField (BUF2, 148, 96, FLD3) Remark 2089 - Object is not referenced ^ (Name [FLD3] is within a method [FLDS]) @@ -112,9 +133,33 @@ Warning 3038 - ^ Truncating 64-bit constant grammar.asl 1396: if (LNotEqual (Local0, 0x1234567887654321)) Warning 3038 - Truncating 64-bit constant found in 32-bit table ^ +grammar.asl 1411: Field (\_SB_.MEM.SMEM, AnyAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\FLDX) + +grammar.asl 1418: Field (\_SB_.MEM.SMEM, AnyAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\FLDX) + +grammar.asl 1445: Name (BUFO, Buffer (32) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) + +grammar.asl 1448: OperationRegion (OPR2, SystemMemory, Arg0, 256) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) + +grammar.asl 1451: Field (OPR2, ByteAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) + +grammar.asl 1462: BankField (OPR2, BNK2, 0, ByteAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) + +grammar.asl 1469: IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) + grammar.asl 1476: SizeOf (BUFO) Error 6114 - ^ Result is not used, operator has no effect +grammar.asl 1490: Event (EVT2) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) + grammar.asl 1496: Alias (MTX2, MTXA) Remark 2089 - Object is not referenced ^ (Name [MTXA] is within a method [OBJ2]) @@ -146,7 +191,13 @@ grammar.asl 1792: Store (LLessEqual (0xFFFFFFFF, 0x11111111), Local5) Warning 3144 - Method Local is set but never used ^ (Local5) grammar.asl 1821: Method (COND) -Warning 3115 - ^ Not all control paths return a value (COND) +Warning 3115 - ^ Not all control paths return a value (\COND) + +grammar.asl 1916: Name (BBUF, Buffer() {0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\REFS) + +grammar.asl 1918: Name (NEST, Package () +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\REFS) grammar.asl 1930: Store (RefOf (MAIN), Local5) Warning 3144 - Method Local is set but never used ^ (Local5) @@ -157,6 +208,9 @@ Warning 3141 - ^ Missing dependency (Device object requires a grammar.asl 2162: Device (NOSV) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 2168: Name (WRD, 0x1234) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\NOSV.TEST) + grammar.asl 2583: Device (IDXF) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) @@ -175,6 +229,12 @@ Warning 3141 - Missing dependency ^ (Device object requires a _HID or _ADR grammar.asl 2658: Device (RTBF) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 2667: Name (ABUF, Buffer() {"ARBITRARY_BUFFER"}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\RTBF.RBUF) + +grammar.asl 2695: Name (BUFR, Buffer(Local1) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\RTBF.RBUF) + grammar.asl 2756: Device (GPE2) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) @@ -205,15 +265,36 @@ Warning 3141 - ^ Missing dependency (Device object requires a grammar.asl 3109: Device (ANDO) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 3343: Name(RSLT,1) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\ANDO.TEST) + grammar.asl 3383: Device (BRKP) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) grammar.asl 3420: Device (ADSU) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 3435: Name (DWRD, 0x12345678) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\ADSU.TEST) + +grammar.asl 3436: Name (WRD, 0x1234) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\ADSU.TEST) + +grammar.asl 3437: Name (BYT, 0x12) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\ADSU.TEST) + grammar.asl 3513: Device (INDC) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 3528: Name (DWRD, 0x12345678) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\INDC.TEST) + +grammar.asl 3529: Name (WRD, 0x1234) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\INDC.TEST) + +grammar.asl 3530: Name (BYT, 0x12) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\INDC.TEST) + grammar.asl 3611: Device (LOPS) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) @@ -223,6 +304,18 @@ Warning 3141 - ^ Missing dependency (Device object requires a grammar.asl 4120: Device (MLDV) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 4135: Name (RMDR, 0) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\MLDV.TEST) + +grammar.asl 4136: Name (DWRD, 0x12345678) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\MLDV.TEST) + +grammar.asl 4137: Name (WRD, 0x1234) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\MLDV.TEST) + +grammar.asl 4138: Name (BYT, 0x12) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\MLDV.TEST) + grammar.asl 4253: Device (NBIT) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) @@ -232,12 +325,33 @@ Warning 3141 - ^ Missing dependency (Device object requires a grammar.asl 4685: Device (XORD) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 4693: OperationRegion (RAM, SystemMemory, 0x800000, 256) +Warning 3175 - ^ Static OperationRegion should be declared outside control method + +grammar.asl 4693: OperationRegion (RAM, SystemMemory, 0x800000, 256) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\XORD.TEST) + +grammar.asl 4694: Field (RAM, ByteAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\XORD.TEST) + grammar.asl 5022: Device (CRBF) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) grammar.asl 5100: Device (IDX4) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 5117: OperationRegion (RAM, SystemMemory, Arg0, 0x100) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) + +grammar.asl 5118: Field (RAM, DwordAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) + +grammar.asl 5123: Field (RAM, ByteAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) + +grammar.asl 5159: Field (RAM, ByteAcc, NoLock, Preserve) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) + grammar.asl 5639: Device (EVNT) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) @@ -307,30 +421,99 @@ Warning 3144 - Method Local is set but never used ^ (Local6) grammar.asl 6393: Device (IDX5) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 6416: Name (BUF0, Buffer (Local0) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX5.MCTH) + +grammar.asl 6417: Name (BUF1, Buffer (Local0) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX5.MCTH) + grammar.asl 6474: Device (PCI2) Warning 3073 - Multiple types ^ (Device object requires either a _HID or _ADR, but not both) grammar.asl 6478: Name (_CRS, Buffer(26) {"\_SB_.PCI2._CRS..........."}) Warning 3046 - Invalid or unknown escape sequence ^ +grammar.asl 6554: Name (BUFR, Package(13) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX0._BIF) + +grammar.asl 6578: Name (BUFR, Package(4) {1, 0x100, 0x76543210, 0x180}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX0._BST) + +grammar.asl 6593: Name (PBUF, Package(4) {}) // leave uninitialized +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX0.TEST) + +grammar.asl 6625: Name (BUFR, Buffer(16) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX0.TEST) + grammar.asl 6709: Device (BITI) Warning 3141 - Missing dependency ^ (Device object requires a _HID or _ADR in same scope) grammar.asl 6817: And (Local0, 1, Local0) // Local0 &= 1 Error 6066 - ^ Method local variable is not initialized (Local0) +grammar.asl 6846: Name (C17C, Package (13) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.C17B) + grammar.asl 6903: Name (_HID, "*PNP0C0A") // Control Method Battey ID Error 6061 - Invalid leading asterisk ^ (*PNP0C0A) grammar.asl 6912: Device (IDX3) Warning 3141 - Missing dependency ^ (Device object requires a _HID or _ADR in same scope) +grammar.asl 6922: Name (BUFR, Buffer () {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX3.LCLB) + +grammar.asl 6974: Name (PKG, Package () {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX3.LCLP) + grammar.asl 7057: Device(IDX7) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 7074: Name (DEST, Buffer () // 62 characters plus NULL +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TST1) + +grammar.asl 7093: Name (BUF0, Buffer() {0x1, 0x2, 0x3, 0x4, 0x5}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TST2) + +grammar.asl 7110: Name (BUF1, Buffer() {0x1, 0x2, 0x3, 0x4, 0x5}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TST3) + +grammar.asl 7301: Name (SRCB, Buffer (12) {}) // 12 characters +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTF) + +grammar.asl 7304: Name (DEST, Buffer () // 62 characters plus NULL +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTF) + +grammar.asl 7327: Name (SRCB, Buffer (12) {}) // 12 characters +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTG) + +grammar.asl 7330: Name (DEST, Buffer () // 62 characters plus NULL +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTG) + +grammar.asl 7412: Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTH) + +grammar.asl 7448: Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTI) + +grammar.asl 7484: Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTJ) + +grammar.asl 7520: Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTK) + +grammar.asl 7556: Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX7.TSTL) + grammar.asl 7736: Device (MTCH) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 7743: Name (TIM0, Package () +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\MTCH.TEST) + +grammar.asl 7755: Name (TMD0, Buffer (20) {0xFF, 0xFF, 0xFF, 0xFF }) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\MTCH.TEST) + grammar.asl 7757: CreateDWordField (TMD0, 4, DMA0) Remark 2089 - Object is not referenced ^ (Name [DMA0] is within a method [TEST]) @@ -346,15 +529,51 @@ Remark 2089 - Object is not referenced ^ (Name [CHNF] is grammar.asl 7934: Device (WHLB) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 8275: Name (BUFR, Package (13) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.BAT1._BIF) + grammar.asl 8295: Device (IDX2) Warning 3141 - Missing dependency ^ (Device object requires a _HID or _ADR in same scope) +grammar.asl 8300: Name (SRCB, Buffer () {"Short Buffer"}) // 12 characters plus NULL +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX2.B2IB) + +grammar.asl 8302: Name (DEST, Buffer () // 62 characters plus NULL +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX2.B2IB) + +grammar.asl 8493: Name (DEST, Package (2) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\_SB.IDX2.FB2P) + grammar.asl 8678: Device (SIZO) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) +grammar.asl 8708: Name (BUFR, Buffer (12) {}) // uninitialized Buffer +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SARG) + +grammar.asl 8709: Name (BUF1, Buffer() {0x01, 0x02, 0x03, 0x04, 0x05}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SARG) + +grammar.asl 8710: Name (PKG0, Package (4) {}) // uninitialized Package +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SARG) + +grammar.asl 8712: Name (PKG1, Package (4) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SARG) + grammar.asl 8720: Name (PKG2, Package (4) Remark 2063 - ^ Initializer list shorter than declared package length +grammar.asl 8720: Name (PKG2, Package (4) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SARG) + +grammar.asl 8973: Name (BUFR, Buffer (12) {}) +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SBUF) + +grammar.asl 9034: Name (BUFR, Buffer (12) {}) // uninitialized Buffer +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SLOC) + +grammar.asl 9036: Name (PKG0, Package (4) {}) // uninitialized Package +Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\SIZO.SLOC) + grammar.asl 9132: Store (_OS, Local0) Warning 3144 - ^ Method Local is set but never used (Local0) @@ -376,11 +595,11 @@ Warning 3141 - Missing dependency ^ (Device object requires a _HID or _ADR i Intel ACPI Component Architecture ASL+ Optimizing Compiler/Disassembler version VVVVVVVV -Copyright (c) 2000 - 2019 Intel Corporation +Copyright (c) 2000 - 2020 Intel Corporation Ignoring all errors, forcing AML file generation ASL Input: grammar.asl - 323653 bytes 4818 keywords 10284 source lines AML Output: grammar.aml - 43758 bytes 4148 opcodes 670 named objects -Compilation successful. 6 Errors, 92 Warnings, 27 Remarks, 1106 Optimizations +Compilation successful. 6 Errors, 93 Warnings, 99 Remarks, 1106 Optimizations diff --git a/sources b/sources index 35345a6..3ad2f69 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20200110.tar.gz) = 5c7ab7d514a06dabbec75131bd6fc2fbcbc4e92b8a1fe63e45ccc90631556584b2dbbf96b3f945e8ab1eff40e5b0c9de96395aeed1cfd2bd03ec92d8442fed32 -SHA512 (acpitests-unix-20200110.tar.gz) = f3fd79de9df58e6d6f59a2c31d7b109a39b29b744a15e885af9cd44a765ee1cc85f7eb8314f7b00552b53898db555357d839e844c6c966488ae9a52d1ebff606 +SHA512 (acpica-unix2-20200214.tar.gz) = 0b22f8c8255b030b5e8a2cf5b459344d1f644b26a4fcf1e95b3682335204598a3587f8f2a5ac169f99d76a10ae529051e1dabd1672c8d8bf5a4441c71d4cb1fd +SHA512 (acpitests-unix-20200214.tar.gz) = b4d37d4784d3fbb697f244477c085e433efa152bc4c4a06d336b216358405252a77c331f4e792f5fa9b912d6f5f200aa1b6379f1b5064e58be12cf8d4415ee15 diff --git a/str-trunc-warn.patch b/str-trunc-warn.patch index a62a34a..763ae68 100644 --- a/str-trunc-warn.patch +++ b/str-trunc-warn.patch @@ -1,8 +1,8 @@ -Index: acpica-unix-20191018/source/compiler/aslanalyze.c +Index: acpica-unix-20200214/source/compiler/aslanalyze.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslanalyze.c -+++ acpica-unix-20191018/source/compiler/aslanalyze.c -@@ -355,11 +355,16 @@ AnCheckMethodReturnValue ( +--- acpica-unix-20200214.orig/source/compiler/aslanalyze.c ++++ acpica-unix-20200214/source/compiler/aslanalyze.c +@@ -358,11 +358,16 @@ AnCheckMethodReturnValue ( */ if (ThisNodeBtype != 0) { @@ -20,11 +20,11 @@ Index: acpica-unix-20191018/source/compiler/aslanalyze.c + free(strp); } } - } -Index: acpica-unix-20191018/source/compiler/aslpredef.c + +Index: acpica-unix-20200214/source/compiler/aslpredef.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslpredef.c -+++ acpica-unix-20191018/source/compiler/aslpredef.c +--- acpica-unix-20200214.orig/source/compiler/aslpredef.c ++++ acpica-unix-20200214/source/compiler/aslpredef.c @@ -159,14 +159,19 @@ ApCheckForPredefinedMethod ( if (MethodInfo->NumReturnNoValue && ThisName->Info.ExpectedBtypes) @@ -84,10 +84,10 @@ Index: acpica-unix-20191018/source/compiler/aslpredef.c return (AE_TYPE); } -Index: acpica-unix-20191018/source/compiler/aslwalks.c +Index: acpica-unix-20200214/source/compiler/aslwalks.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslwalks.c -+++ acpica-unix-20191018/source/compiler/aslwalks.c +--- acpica-unix-20200214.orig/source/compiler/aslwalks.c ++++ acpica-unix-20200214/source/compiler/aslwalks.c @@ -515,15 +515,19 @@ AnOperandTypecheckWalkEnd ( else if (!CommonBtypes) { From c482290009c0a465cf12c990a772d53f32c20caa Mon Sep 17 00:00:00 2001 From: Al Stone Date: Mon, 24 Feb 2020 16:03:06 -0700 Subject: [PATCH 10/82] Update expected results from misc test Signed-off-by: Al Stone --- converterSample.asl.result | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/converterSample.asl.result b/converterSample.asl.result index 47c532c..34cb693 100644 --- a/converterSample.asl.result +++ b/converterSample.asl.result @@ -18,9 +18,7 @@ Intel ACPI Component Architecture ASL+ Optimizing Compiler/Disassembler version VVVVVVVV Copyright (c) 2000 - 2020 Intel Corporation -Ignoring all errors, forcing AML file generation - ASL Input: converterSample.asl - 1968 bytes 11 keywords 85 source lines -AML Output: converterSample.aml - 182 bytes 2 opcodes 9 named objects +AML Output: converterSample.aml - 180 bytes 2 opcodes 9 named objects -Compilation successful. 0 Errors, 0 Warnings, 5 Remarks, 10 Optimizations +Compilation successful. 0 Errors, 0 Warnings, 5 Remarks, 12 Optimizations, 1 Constants Folded From a203640b282e629e87312bce912dff83d2307dba Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 25 Feb 2020 11:00:37 -0700 Subject: [PATCH 11/82] Add two patches to deal with arch-specific issues on ARMv7 and s390x Signed-off-by: Al Stone --- acpica-tools.spec | 9 ++++++++- dbtest.patch | 39 +++++++++++++++++++++++++++++++++++++++ utstring.patch | 16 ++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 dbtest.patch create mode 100644 utstring.patch diff --git a/acpica-tools.spec b/acpica-tools.spec index bcac358..72d2ffc 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -48,6 +48,8 @@ Patch20: aslcodegen.patch Patch21: facp.patch Patch22: dup-symbol.patch Patch23: no-common.patch +Patch24: utstring.patch +Patch25: dbtest.patch BuildRequires: bison patchutils flex gcc @@ -123,6 +125,8 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch21 -p1 -b .facp %patch22 -p1 -b .dup-symbol %patch23 -p1 -b .no-common +%patch24 -p1 -b .utstring +%patch25 -p1 -b .dbtest cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -239,8 +243,11 @@ fi %changelog -* Mon Feb 24 2020 Al Stone - 20200214-1 +* Tue Feb 25 2020 Al Stone - 20200214-1 - Update to 20200214 source tree, including patch refreshes +- Add patches to fix an ARMv7 specific issue (utstring) and + an s390x specific issue (dbtest), both involving more careful + checks of array sizes * Mon Feb 24 2020 Al Stone - 20200110-1 - Update to 20200110 source tree, including patch refreshes diff --git a/dbtest.patch b/dbtest.patch new file mode 100644 index 0000000..68c653d --- /dev/null +++ b/dbtest.patch @@ -0,0 +1,39 @@ +On s390, GCC does not like the string initialization in this case. When +ValueToWrite is initialized this way, GCC tries to copy the entire string +into an ACPI_OBJECT instead of just the pointer (see the use in the call +to memcpy()). So, move the init so GCC recognizes that ValueToWrite is +only a pointer, and not a whole string that needs to be moved. + +diff -Naur acpica-unix2-20200214.orig/source/components/debugger/dbtest.c acpica-unix2-20200214/source/components/debugger/dbtest.c +--- acpica-unix2-20200214.orig/source/components/debugger/dbtest.c 2020-02-14 10:33:54.000000000 -0700 ++++ acpica-unix2-20200214/source/components/debugger/dbtest.c 2020-02-25 10:50:42.793372070 -0700 +@@ -719,9 +719,10 @@ + ACPI_OBJECT *Temp1 = NULL; + ACPI_OBJECT *Temp2 = NULL; + ACPI_OBJECT *Temp3 = NULL; +- char *ValueToWrite = "Test String from AML Debugger"; ++ char *ValueToWrite = NULL; + ACPI_OBJECT WriteValue; + ACPI_STATUS Status; ++ const char *TestStr = "Test String from AML Debugger"; + + + /* Read the original value */ +@@ -737,6 +738,9 @@ + + /* Write a new value */ + ++ ValueToWrite = AcpiOsAllocateZeroed(strlen(TestStr)+1); ++ strncpy(ValueToWrite, TestStr, strlen(TestStr)); ++ + WriteValue.Type = ACPI_TYPE_STRING; + WriteValue.String.Length = strlen (ValueToWrite); + WriteValue.String.Pointer = ValueToWrite; +@@ -790,6 +794,7 @@ + if (Temp1) {AcpiOsFree (Temp1);} + if (Temp2) {AcpiOsFree (Temp2);} + if (Temp3) {AcpiOsFree (Temp3);} ++ if (ValueToWrite) {AcpiOsFree (ValueToWrite);} + return (Status); + } + diff --git a/utstring.patch b/utstring.patch new file mode 100644 index 0000000..c6af4bd --- /dev/null +++ b/utstring.patch @@ -0,0 +1,16 @@ +On ARMv7, GCC catches this particular problem and reports trying +to copy a string into a space too small; it counts the terminating +NULL as part of the char[]. + +diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acpica-unix2-20200214/source/components/utilities/utstring.c +--- acpica-unix2-20200214.orig/source/components/utilities/utstring.c 2020-02-14 10:33:55.000000000 -0700 ++++ acpica-unix2-20200214/source/components/utilities/utstring.c 2020-02-24 16:52:24.623218044 -0700 +@@ -185,7 +185,7 @@ + { + UINT32 i; + BOOLEAN FoundBadChar = FALSE; +- UINT32 OriginalName; ++ char OriginalName[ACPI_NAMESEG_SIZE+1]; + + + ACPI_FUNCTION_NAME (UtRepairName); From a3576b784de04e41181a90174370fedf1d2eb507 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 25 Feb 2020 11:56:15 -0700 Subject: [PATCH 12/82] Correct an ARMv7 patch Signed-off-by: Al Stone --- utstring.patch | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/utstring.patch b/utstring.patch index c6af4bd..757fc2a 100644 --- a/utstring.patch +++ b/utstring.patch @@ -1,16 +1,28 @@ -On ARMv7, GCC catches this particular problem and reports trying -to copy a string into a space too small; it counts the terminating -NULL as part of the char[]. - diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acpica-unix2-20200214/source/components/utilities/utstring.c --- acpica-unix2-20200214.orig/source/components/utilities/utstring.c 2020-02-14 10:33:55.000000000 -0700 -+++ acpica-unix2-20200214/source/components/utilities/utstring.c 2020-02-24 16:52:24.623218044 -0700 ++++ acpica-unix2-20200214/source/components/utilities/utstring.c 2020-02-25 11:21:31.329016004 -0700 @@ -185,7 +185,7 @@ { UINT32 i; BOOLEAN FoundBadChar = FALSE; - UINT32 OriginalName; -+ char OriginalName[ACPI_NAMESEG_SIZE+1]; ++ char OriginalName[ACPI_NAMESEG+SIZE+1]; ACPI_FUNCTION_NAME (UtRepairName); +@@ -228,13 +228,13 @@ + { + ACPI_WARNING ((AE_INFO, + "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", +- OriginalName, Name)); ++ (unsigned int)OriginalName, Name)); + } + else + { + ACPI_DEBUG_PRINT ((ACPI_DB_INFO, + "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", +- OriginalName, Name)); ++ (unsigned int)OriginalName, Name)); + } + } + } From cd3d7968523d0d53e6aa586ad34a1d3204724784 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 25 Feb 2020 12:05:53 -0700 Subject: [PATCH 13/82] Correct the latest patches for other arches Signed-off-by: Al Stone --- dbtest.patch | 2 +- utstring.patch | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dbtest.patch b/dbtest.patch index 68c653d..eb8086e 100644 --- a/dbtest.patch +++ b/dbtest.patch @@ -24,7 +24,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/debugger/dbtest.c acpica /* Write a new value */ + ValueToWrite = AcpiOsAllocateZeroed(strlen(TestStr)+1); -+ strncpy(ValueToWrite, TestStr, strlen(TestStr)); ++ strncpy(ValueToWrite, TestStr, strlen(TestStr)+1); + WriteValue.Type = ACPI_TYPE_STRING; WriteValue.String.Length = strlen (ValueToWrite); diff --git a/utstring.patch b/utstring.patch index 757fc2a..626042c 100644 --- a/utstring.patch +++ b/utstring.patch @@ -6,7 +6,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acp UINT32 i; BOOLEAN FoundBadChar = FALSE; - UINT32 OriginalName; -+ char OriginalName[ACPI_NAMESEG+SIZE+1]; ++ char OriginalName[ACPI_NAMESEG_SIZE+1]; ACPI_FUNCTION_NAME (UtRepairName); @@ -15,14 +15,14 @@ diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acp ACPI_WARNING ((AE_INFO, "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", - OriginalName, Name)); -+ (unsigned int)OriginalName, Name)); ++ (unsigned int)*OriginalName, Name)); } else { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", - OriginalName, Name)); -+ (unsigned int)OriginalName, Name)); ++ (unsigned int)*OriginalName, Name)); } } } From b2261cf6d374230ab9bd3e25abced6182bffb71f Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 25 Feb 2020 17:13:42 -0700 Subject: [PATCH 14/82] Cleanup the armv7hl build issues with string usage Signed-off-by: Al Stone --- acpica-tools.spec | 4 ++-- armv7-str-fixes.patch | 12 ++++++++++++ utstring.patch | 28 ---------------------------- 3 files changed, 14 insertions(+), 30 deletions(-) create mode 100644 armv7-str-fixes.patch delete mode 100644 utstring.patch diff --git a/acpica-tools.spec b/acpica-tools.spec index 72d2ffc..7a69423 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -48,7 +48,7 @@ Patch20: aslcodegen.patch Patch21: facp.patch Patch22: dup-symbol.patch Patch23: no-common.patch -Patch24: utstring.patch +Patch24: armv7-str-fixes.patch Patch25: dbtest.patch BuildRequires: bison patchutils flex gcc @@ -125,7 +125,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch21 -p1 -b .facp %patch22 -p1 -b .dup-symbol %patch23 -p1 -b .no-common -%patch24 -p1 -b .utstring +%patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest cp -p %{SOURCE2} README.Fedora diff --git a/armv7-str-fixes.patch b/armv7-str-fixes.patch new file mode 100644 index 0000000..4de8226 --- /dev/null +++ b/armv7-str-fixes.patch @@ -0,0 +1,12 @@ +diff -Naur acpica-unix2-20200214.orig/source/include/actypes.h acpica-unix2-20200214/source/include/actypes.h +--- acpica-unix2-20200214.orig/source/include/actypes.h 2020-02-25 15:41:26.479349637 -0700 ++++ acpica-unix2-20200214/source/include/actypes.h 2020-02-25 15:44:49.519082258 -0700 +@@ -561,7 +561,7 @@ + #define ACPI_COPY_NAMESEG(dest,src) (*ACPI_CAST_PTR (UINT32, (dest)) = *ACPI_CAST_PTR (UINT32, (src))) + #else + #define ACPI_COMPARE_NAMESEG(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, (b)), ACPI_NAMESEG_SIZE)) +-#define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE)) ++#define ACPI_COPY_NAMESEG(dest,src) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE)) + #endif + + /* Support for the special RSDP signature (8 characters) */ diff --git a/utstring.patch b/utstring.patch deleted file mode 100644 index 626042c..0000000 --- a/utstring.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acpica-unix2-20200214/source/components/utilities/utstring.c ---- acpica-unix2-20200214.orig/source/components/utilities/utstring.c 2020-02-14 10:33:55.000000000 -0700 -+++ acpica-unix2-20200214/source/components/utilities/utstring.c 2020-02-25 11:21:31.329016004 -0700 -@@ -185,7 +185,7 @@ - { - UINT32 i; - BOOLEAN FoundBadChar = FALSE; -- UINT32 OriginalName; -+ char OriginalName[ACPI_NAMESEG_SIZE+1]; - - - ACPI_FUNCTION_NAME (UtRepairName); -@@ -228,13 +228,13 @@ - { - ACPI_WARNING ((AE_INFO, - "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", -- OriginalName, Name)); -+ (unsigned int)*OriginalName, Name)); - } - else - { - ACPI_DEBUG_PRINT ((ACPI_DB_INFO, - "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", -- OriginalName, Name)); -+ (unsigned int)*OriginalName, Name)); - } - } - } From a3593830581b0c629be9e69d5393e98ee8a80807 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 25 Feb 2020 17:32:18 -0700 Subject: [PATCH 15/82] Add a patch to allow use of PCC Register() again Signed-off-by: Al Stone --- acpica-tools.spec | 12 +++++++++--- pcc.patch | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 pcc.patch diff --git a/acpica-tools.spec b/acpica-tools.spec index 7a69423..1d33f70 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -50,6 +50,7 @@ Patch22: dup-symbol.patch Patch23: no-common.patch Patch24: armv7-str-fixes.patch Patch25: dbtest.patch +Patch26: pcc.patch BuildRequires: bison patchutils flex gcc @@ -127,6 +128,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch23 -p1 -b .no-common %patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest +%patch26 -p1 -b .pcc cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -245,9 +247,13 @@ fi %changelog * Tue Feb 25 2020 Al Stone - 20200214-1 - Update to 20200214 source tree, including patch refreshes -- Add patches to fix an ARMv7 specific issue (utstring) and - an s390x specific issue (dbtest), both involving more careful - checks of array sizes +- Add patch to fix up issues where strings and 4-byte quantities + get interchanged; C strings want to be null terminated now, but + AML does not so using strncpy is painful. +- Add patch for s390x specific issue (dbtest), where initializing a + string on the stack behaves a little differently +- "PCC" is a defined Register() type, but "PlatformCommChannel" was + being used instead; put it back to "PCC" as it should be in pcc.patch * Mon Feb 24 2020 Al Stone - 20200110-1 - Update to 20200110 source tree, including patch refreshes diff --git a/pcc.patch b/pcc.patch new file mode 100644 index 0000000..1ed0bd1 --- /dev/null +++ b/pcc.patch @@ -0,0 +1,24 @@ +diff -Naur acpica-unix2-20200214.orig/source/compiler/aslcompiler.l acpica-unix2-20200214/source/compiler/aslcompiler.l +--- acpica-unix2-20200214.orig/source/compiler/aslcompiler.l 2020-02-25 17:24:22.169290551 -0700 ++++ acpica-unix2-20200214/source/compiler/aslcompiler.l 2020-02-25 17:26:01.807138585 -0700 +@@ -584,7 +584,7 @@ + "IPMI" { count (0); return (PARSEOP_REGIONSPACE_IPMI); } + "GeneralPurposeIo" { count (0); return (PARSEOP_REGIONSPACE_GPIO); } /* ACPI 5.0 */ + "GenericSerialBus" { count (0); return (PARSEOP_REGIONSPACE_GSBUS); } /* ACPI 5.0 */ +-"PlatformCommChannel" { count (0); return (PARSEOP_REGIONSPACE_PCC); } /* ACPI 5.0 */ ++"PCC" { count (0); return (PARSEOP_REGIONSPACE_PCC); } /* ACPI 5.0 */ + "FFixedHW" { count (0); return (PARSEOP_REGIONSPACE_FFIXEDHW); } + + /* ResourceTypeKeyword: Resource Usage - Resource Descriptors */ +diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utdecode.c acpica-unix2-20200214/source/components/utilities/utdecode.c +--- acpica-unix2-20200214.orig/source/components/utilities/utdecode.c 2020-02-14 10:33:55.000000000 -0700 ++++ acpica-unix2-20200214/source/components/utilities/utdecode.c 2020-02-25 17:26:28.524365981 -0700 +@@ -116,7 +116,7 @@ + "IPMI", /* 0x07 */ + "GeneralPurposeIo", /* 0x08 */ + "GenericSerialBus", /* 0x09 */ +- "PlatformCommChannel"/* 0x0A */ ++ "PCC" /* 0x0A */ + }; + + From f3595ddf16d7b8ae8db366bf5bd0402e59b3a347 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Wed, 26 Feb 2020 10:29:04 -0700 Subject: [PATCH 16/82] Add corrections to nsutils.c to allow for big-endian support Signed-off-by: Al Stone --- acpica-tools.spec | 5 ++++- big-endian-v3.patch | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 big-endian-v3.patch diff --git a/acpica-tools.spec b/acpica-tools.spec index 1d33f70..02c365a 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -51,6 +51,7 @@ Patch23: no-common.patch Patch24: armv7-str-fixes.patch Patch25: dbtest.patch Patch26: pcc.patch +Patch27: big-endian-v3.patch BuildRequires: bison patchutils flex gcc @@ -129,6 +130,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest %patch26 -p1 -b .pcc +%patch27 -p1 -b .big-endian-v3 cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -245,7 +247,7 @@ fi %changelog -* Tue Feb 25 2020 Al Stone - 20200214-1 +* Wed Feb 26 2020 Al Stone - 20200214-1 - Update to 20200214 source tree, including patch refreshes - Add patch to fix up issues where strings and 4-byte quantities get interchanged; C strings want to be null terminated now, but @@ -254,6 +256,7 @@ fi string on the stack behaves a little differently - "PCC" is a defined Register() type, but "PlatformCommChannel" was being used instead; put it back to "PCC" as it should be in pcc.patch +- Add another big-endian patch to compensate for changes to nsutils.c * Mon Feb 24 2020 Al Stone - 20200110-1 - Update to 20200110 source tree, including patch refreshes diff --git a/big-endian-v3.patch b/big-endian-v3.patch new file mode 100644 index 0000000..11fab3f --- /dev/null +++ b/big-endian-v3.patch @@ -0,0 +1,19 @@ +diff -Naur acpica-unix2-20200214.orig/source/components/namespace/nsutils.c acpica-unix2-20200214/source/components/namespace/nsutils.c +--- acpica-unix2-20200214.orig/source/components/namespace/nsutils.c 2020-02-14 10:33:55.000000000 -0700 ++++ acpica-unix2-20200214/source/components/namespace/nsutils.c 2020-02-26 10:25:43.477022167 -0700 +@@ -363,6 +363,15 @@ + + /* Move on the next segment */ + ++ { ++ /* Make sure the name segment reflects endian-ness first */ ++ ++ UINT32 Tmp32 = 0; ++ ++ memcpy(&Tmp32, Result, ACPI_NAMESEG_SIZE); ++ ACPI_MOVE_32_TO_32(Result, &Tmp32); ++ } ++ + ExternalName++; + Result += ACPI_NAMESEG_SIZE; + } From a4c3787ec9e91f3176441dfb42804239acb83aa8 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Wed, 26 Feb 2020 12:40:10 -0700 Subject: [PATCH 17/82] Add s390 fixes to handle PPTT properly Signed-off-by: Al Stone --- big-endian-v3.patch | 87 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/big-endian-v3.patch b/big-endian-v3.patch index 11fab3f..f4d404e 100644 --- a/big-endian-v3.patch +++ b/big-endian-v3.patch @@ -17,3 +17,90 @@ diff -Naur acpica-unix2-20200214.orig/source/components/namespace/nsutils.c acpi ExternalName++; Result += ACPI_NAMESEG_SIZE; } +diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-20200214/source/common/dmtbdump2.c +--- acpica-unix2-20200214.orig/source/common/dmtbdump2.c 2020-02-26 11:44:13.732967820 -0700 ++++ acpica-unix2-20200214/source/common/dmtbdump2.c 2020-02-26 12:38:44.286849954 -0700 +@@ -1670,6 +1670,8 @@ + UINT32 Offset = sizeof (ACPI_TABLE_FPDT); + ACPI_DMTABLE_INFO *InfoTable; + UINT32 i; ++ UINT32 TableLen; ++ UINT32 NumPrivRes; + + + /* There is no main table (other than the standard ACPI header) */ +@@ -1677,7 +1679,8 @@ + /* Subtables */ + + Offset = sizeof (ACPI_TABLE_HEADER); +- while (Offset < Table->Length) ++ ACPI_MOVE_32_TO_32(&TableLen, &Table->Length); ++ while (Offset < TableLen) + { + AcpiOsPrintf ("\n"); + +@@ -1689,7 +1692,7 @@ + AcpiOsPrintf ("Invalid subtable length\n"); + return; + } +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (TableLen, Offset, Subtable, + Subtable->Length, AcpiDmTableInfoPpttHdr); + if (ACPI_FAILURE (Status)) + { +@@ -1731,7 +1734,7 @@ + AcpiOsPrintf ("Invalid subtable length\n"); + return; + } +- Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, ++ Status = AcpiDmDumpTable (TableLen, Offset, Subtable, + Subtable->Length, InfoTable); + if (ACPI_FAILURE (Status)) + { +@@ -1747,15 +1750,16 @@ + + /* Dump SMBIOS handles */ + ++ ACPI_MOVE_32_TO_32(&NumPrivRes, &PpttProcessor->NumberOfPrivResources); + if ((UINT8)(Subtable->Length - SubtableOffset) < +- (UINT8)(PpttProcessor->NumberOfPrivResources * 4)) ++ (UINT8)(NumPrivRes * 4)) + { + AcpiOsPrintf ("Invalid private resource number\n"); + return; + } +- for (i = 0; i < PpttProcessor->NumberOfPrivResources; i++) ++ for (i = 0; i < NumPrivRes; i++) + { +- Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ++ Status = AcpiDmDumpTable (TableLen, Offset + SubtableOffset, + ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Subtable, SubtableOffset), + 4, AcpiDmTableInfoPptt0a); + if (ACPI_FAILURE (Status)) +diff -Naur acpica-unix2-20200214.orig/source/compiler/dttable2.c acpica-unix2-20200214/source/compiler/dttable2.c +--- acpica-unix2-20200214.orig/source/compiler/dttable2.c 2020-02-26 11:44:13.726967769 -0700 ++++ acpica-unix2-20200214/source/compiler/dttable2.c 2020-02-26 12:39:03.671014890 -0700 +@@ -1087,9 +1087,11 @@ + Subtable->Buffer, sizeof (ACPI_SUBTABLE_HEADER)); + if (PpttProcessor) + { ++ UINT32 NumPrivRes; ++ + /* Compile initiator proximity domain list */ + +- PpttProcessor->NumberOfPrivResources = 0; ++ NumPrivRes = 0; + while (*PFieldList) + { + Status = DtCompileTable (PFieldList, +@@ -1105,8 +1107,9 @@ + + DtInsertSubtable (ParentTable, Subtable); + PpttHeader->Length += (UINT8)(Subtable->Length); +- PpttProcessor->NumberOfPrivResources++; ++ NumPrivRes++; + } ++ ACPI_MOVE_32_TO_32(&PpttProcessor->NumberOfPrivResources, &NumPrivRes); + } + break; + From 2652e3e2c495edc9ba24b5e96642165f0345e7e8 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Thu, 27 Feb 2020 13:27:54 -0700 Subject: [PATCH 18/82] Additional clean-up for big endian support Signed-off-by: Al Stone --- big-endian-v3.patch | 54 +++++++++++++++++++++++++++++++++++++++++++++ no-common.patch | 4 ++-- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/big-endian-v3.patch b/big-endian-v3.patch index f4d404e..e787789 100644 --- a/big-endian-v3.patch +++ b/big-endian-v3.patch @@ -104,3 +104,57 @@ diff -Naur acpica-unix2-20200214.orig/source/compiler/dttable2.c acpica-unix2-20 } break; +diff -Naur acpica-unix2-20200214.orig/source/compiler/aslxref.c acpica-unix2-20200214/source/compiler/aslxref.c +--- acpica-unix2-20200214.orig/source/compiler/aslxref.c 2020-02-14 10:33:53.000000000 -0700 ++++ acpica-unix2-20200214/source/compiler/aslxref.c 2020-02-26 13:21:43.973602232 -0700 +@@ -547,8 +547,14 @@ + */ + AslGbl_NsLookupCount++; + +- Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, +- ACPI_IMODE_EXECUTE, Flags, WalkState, &Node); ++ { ++ UINT32 Tmp32; ++ ++ ACPI_MOVE_32_TO_32(&Tmp32, Path); ++ ++ Status = AcpiNsLookup (WalkState->ScopeInfo, (char *)&Tmp32, ObjectType, ++ ACPI_IMODE_EXECUTE, Flags, WalkState, &Node); ++ } + if (ACPI_FAILURE (Status)) + { + if (Status == AE_NOT_FOUND) +diff -Naur acpica-unix2-20200214.orig/source/compiler/aslload.c acpica-unix2-20200214/source/compiler/aslload.c +--- acpica-unix2-20200214.orig/source/compiler/aslload.c 2020-02-14 10:33:53.000000000 -0700 ++++ acpica-unix2-20200214/source/compiler/aslload.c 2020-02-27 13:25:19.308413494 -0700 +@@ -175,13 +175,17 @@ + ACPI_NAMESPACE_NODE *Node; + ACPI_STATUS Status; + char *ExternalPath; ++ char TmpPath[ACPI_NAMESEG_SIZE]; + + + SourceRegion = UtGetArg (Op, 0); + if (SourceRegion) + { +- Status = AcpiNsLookup (WalkState->ScopeInfo, +- SourceRegion->Asl.Value.String, AmlType, ACPI_IMODE_EXECUTE, ++ char TmpName[ACPI_NAMESEG_SIZE]; ++ ++ ACPI_MOVE_32_TO_32(TmpName, SourceRegion->Asl.Value.String); ++ Status = AcpiNsLookup (WalkState->ScopeInfo, TmpName, ++ AmlType, ACPI_IMODE_EXECUTE, + ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, NULL, &Node); + if (Status == AE_NOT_FOUND) + { +@@ -232,8 +236,9 @@ + + default: + ++ ACPI_MOVE_32_TO_32(TmpPath, Child->Asl.Value.String); + Status = AcpiNsLookup (WalkState->ScopeInfo, +- Child->Asl.Value.String, ++ TmpPath, + ACPI_TYPE_LOCAL_REGION_FIELD, + ACPI_IMODE_LOAD_PASS1, + ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE | diff --git a/no-common.patch b/no-common.patch index a9cbf1a..975c067 100644 --- a/no-common.patch +++ b/no-common.patch @@ -18,7 +18,7 @@ diff -Naur acpica-unix2-20191213.orig/source/compiler/aslcompiler.l acpica-unix2 #include #include -YYSTYPE AslCompilerlval; -+extern YYSTYPE AslCompilerlval; ++#define YYSTYPE AslCompilerlval; /* * Generation: Use the following command line: @@ -30,7 +30,7 @@ diff -Naur acpica-unix2-20191213.orig/source/compiler/prparser.l acpica-unix2-20 * Local support functions */ -YY_BUFFER_STATE LexBuffer; -+extern YY_BUFFER_STATE LexBuffer; ++static YY_BUFFER_STATE LexBuffer; /****************************************************************************** From 5b73a30c6050f064eb8a3730ea8e31b0eb4b6af6 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Wed, 1 Apr 2020 14:07:44 -0600 Subject: [PATCH 19/82] Update to 20209326 sources, with refreshed patches Signed-off-by: Al Stone --- .gitignore | 2 + acpica-tools.spec | 12 ++--- big-endian-dmtbdump2.patch | 104 ++++++++++++++++++------------------- big-endian-v3.patch | 10 ++-- dup-symbol.patch | 22 -------- no-common.patch | 36 ------------- pcc.patch | 24 --------- sources | 4 +- 8 files changed, 66 insertions(+), 148 deletions(-) delete mode 100644 dup-symbol.patch delete mode 100644 no-common.patch delete mode 100644 pcc.patch diff --git a/.gitignore b/.gitignore index c9f2b27..44d655f 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,5 @@ series /acpitests-unix-20200110.tar.gz /acpica-unix2-20200214.tar.gz /acpitests-unix-20200214.tar.gz +/acpica-unix2-20200326.tar.gz +/acpitests-unix-20200326.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 02c365a..52f259c 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20200214 +Version: 20200326 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -46,11 +46,8 @@ Patch18: str-trunc-warn.patch Patch19: ptr-cast.patch Patch20: aslcodegen.patch Patch21: facp.patch -Patch22: dup-symbol.patch -Patch23: no-common.patch Patch24: armv7-str-fixes.patch Patch25: dbtest.patch -Patch26: pcc.patch Patch27: big-endian-v3.patch BuildRequires: bison patchutils flex gcc @@ -125,11 +122,8 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch19 -p1 -b .ptr-cast %patch20 -p1 -b .aslcodegen %patch21 -p1 -b .facp -%patch22 -p1 -b .dup-symbol -%patch23 -p1 -b .no-common %patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest -%patch26 -p1 -b .pcc %patch27 -p1 -b .big-endian-v3 cp -p %{SOURCE2} README.Fedora @@ -247,6 +241,10 @@ fi %changelog +* Web Apr 1 2020 Al Stone - 20200326-1 +- Update to 20200326 source tree, including patch refreshes +- Removed a couple of patches that got included upstream + * Wed Feb 26 2020 Al Stone - 20200214-1 - Update to 20200214 source tree, including patch refreshes - Add patch to fix up issues where strings and 4-byte quantities diff --git a/big-endian-dmtbdump2.patch b/big-endian-dmtbdump2.patch index 381da29..0ba1a44 100644 --- a/big-endian-dmtbdump2.patch +++ b/big-endian-dmtbdump2.patch @@ -1,7 +1,7 @@ -Index: acpica-unix-20191018/source/common/dmtbdump2.c +Index: acpica-unix-20209326/source/common/dmtbdump2.c =================================================================== ---- acpica-unix-20191018.orig/source/common/dmtbdump2.c -+++ acpica-unix-20191018/source/common/dmtbdump2.c +--- acpica-unix-20209326.orig/source/common/dmtbdump2.c ++++ acpica-unix-20209326/source/common/dmtbdump2.c @@ -75,16 +75,23 @@ AcpiDmDumpIort ( ACPI_IORT_SMMU *IortSmmu = NULL; UINT32 Offset; @@ -223,7 +223,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -386,7 +407,7 @@ AcpiDmDumpIvrs ( +@@ -391,7 +412,7 @@ AcpiDmDumpIvrs ( /* Attempt to continue */ @@ -232,7 +232,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { AcpiOsPrintf ("Invalid zero length subtable\n"); return; -@@ -397,8 +418,8 @@ AcpiDmDumpIvrs ( +@@ -402,8 +423,8 @@ AcpiDmDumpIvrs ( /* Dump the subtable */ AcpiOsPrintf ("\n"); @@ -243,16 +243,16 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -412,7 +433,7 @@ AcpiDmDumpIvrs ( - DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, - sizeof (ACPI_IVRS_HARDWARE)); +@@ -427,7 +448,7 @@ AcpiDmDumpIvrs ( + sizeof (ACPI_IVRS_HARDWARE2)); + } - while (EntryOffset < (Offset + Subtable->Length)) + while (EntryOffset < (Offset + SubLength)) { AcpiOsPrintf ("\n"); /* -@@ -474,7 +495,7 @@ AcpiDmDumpIvrs ( +@@ -489,7 +510,7 @@ AcpiDmDumpIvrs ( /* Dump the Device Entry */ @@ -261,7 +261,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c DeviceEntry, EntryLength, InfoTable); if (ACPI_FAILURE (Status)) { -@@ -490,8 +511,8 @@ AcpiDmDumpIvrs ( +@@ -505,8 +526,8 @@ AcpiDmDumpIvrs ( NextSubtable: /* Point to next subtable */ @@ -272,7 +272,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c } } -@@ -517,7 +538,7 @@ AcpiDmDumpLpit ( +@@ -532,7 +553,7 @@ AcpiDmDumpLpit ( { ACPI_STATUS Status; ACPI_LPIT_HEADER *Subtable; @@ -281,7 +281,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c UINT32 Offset = sizeof (ACPI_TABLE_LPIT); ACPI_DMTABLE_INFO *InfoTable; UINT32 SubtableLength; -@@ -525,8 +546,9 @@ AcpiDmDumpLpit ( +@@ -540,8 +561,9 @@ AcpiDmDumpLpit ( /* Subtables */ @@ -292,7 +292,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -590,13 +612,14 @@ AcpiDmDumpMadt ( +@@ -605,13 +627,14 @@ AcpiDmDumpMadt ( { ACPI_STATUS Status; ACPI_SUBTABLE_HEADER *Subtable; @@ -308,7 +308,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt); if (ACPI_FAILURE (Status)) { -@@ -606,7 +629,7 @@ AcpiDmDumpMadt ( +@@ -621,7 +644,7 @@ AcpiDmDumpMadt ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); @@ -317,7 +317,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -752,11 +775,13 @@ AcpiDmDumpMcfg ( +@@ -767,11 +790,13 @@ AcpiDmDumpMcfg ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MCFG); ACPI_MCFG_ALLOCATION *Subtable; @@ -332,7 +332,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -765,17 +790,17 @@ AcpiDmDumpMcfg ( +@@ -780,17 +805,17 @@ AcpiDmDumpMcfg ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MCFG_ALLOCATION, Table, Offset); @@ -354,7 +354,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MCFG_ALLOCATION), AcpiDmTableInfoMcfg0); if (ACPI_FAILURE (Status)) { -@@ -809,6 +834,7 @@ AcpiDmDumpMpst ( +@@ -824,6 +849,7 @@ AcpiDmDumpMpst ( { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MPST); @@ -362,7 +362,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c ACPI_MPST_POWER_NODE *Subtable0; ACPI_MPST_POWER_STATE *Subtable0A; ACPI_MPST_COMPONENT *Subtable0B; -@@ -817,11 +843,13 @@ AcpiDmDumpMpst ( +@@ -832,11 +858,13 @@ AcpiDmDumpMpst ( UINT16 SubtableCount; UINT32 PowerStateCount; UINT32 ComponentCount; @@ -377,7 +377,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -829,13 +857,14 @@ AcpiDmDumpMpst ( +@@ -844,13 +872,14 @@ AcpiDmDumpMpst ( /* Subtable: Memory Power Node(s) */ @@ -395,7 +395,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_NODE), AcpiDmTableInfoMpst0); if (ACPI_FAILURE (Status)) { -@@ -844,8 +873,8 @@ AcpiDmDumpMpst ( +@@ -859,8 +888,8 @@ AcpiDmDumpMpst ( /* Extract the sub-subtable counts */ @@ -406,7 +406,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Offset += sizeof (ACPI_MPST_POWER_NODE); /* Sub-subtables - Memory Power State Structure(s) */ -@@ -856,7 +885,7 @@ AcpiDmDumpMpst ( +@@ -871,7 +900,7 @@ AcpiDmDumpMpst ( while (PowerStateCount) { AcpiOsPrintf ("\n"); @@ -415,7 +415,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_STATE), AcpiDmTableInfoMpst0A); if (ACPI_FAILURE (Status)) { -@@ -866,7 +895,7 @@ AcpiDmDumpMpst ( +@@ -881,7 +910,7 @@ AcpiDmDumpMpst ( Subtable0A++; PowerStateCount--; Offset += sizeof (ACPI_MPST_POWER_STATE); @@ -424,7 +424,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c /* Sub-subtables - Physical Component ID Structure(s) */ -@@ -879,7 +908,7 @@ AcpiDmDumpMpst ( +@@ -894,7 +923,7 @@ AcpiDmDumpMpst ( while (ComponentCount) { @@ -433,7 +433,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_COMPONENT), AcpiDmTableInfoMpst0B); if (ACPI_FAILURE (Status)) { -@@ -894,17 +923,19 @@ AcpiDmDumpMpst ( +@@ -909,17 +938,19 @@ AcpiDmDumpMpst ( /* Point to next Memory Power Node subtable */ SubtableCount--; @@ -456,7 +456,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_DATA_HDR), AcpiDmTableInfoMpst1); if (ACPI_FAILURE (Status)) { -@@ -919,10 +950,10 @@ AcpiDmDumpMpst ( +@@ -934,10 +965,10 @@ AcpiDmDumpMpst ( Subtable2 = ACPI_ADD_PTR (ACPI_MPST_POWER_DATA, Subtable1, sizeof (ACPI_MPST_DATA_HDR)); @@ -469,7 +469,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_DATA), AcpiDmTableInfoMpst2); if (ACPI_FAILURE (Status)) { -@@ -955,11 +986,13 @@ AcpiDmDumpMsct ( +@@ -970,11 +1001,13 @@ AcpiDmDumpMsct ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MSCT); ACPI_MSCT_PROXIMITY *Subtable; @@ -484,7 +484,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -968,12 +1001,12 @@ AcpiDmDumpMsct ( +@@ -983,12 +1016,12 @@ AcpiDmDumpMsct ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Table, Offset); @@ -499,7 +499,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MSCT_PROXIMITY), AcpiDmTableInfoMsct0); if (ACPI_FAILURE (Status)) { -@@ -1008,11 +1041,13 @@ AcpiDmDumpMtmr ( +@@ -1023,11 +1056,13 @@ AcpiDmDumpMtmr ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MTMR); ACPI_MTMR_ENTRY *Subtable; @@ -514,7 +514,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1021,12 +1056,12 @@ AcpiDmDumpMtmr ( +@@ -1036,12 +1071,12 @@ AcpiDmDumpMtmr ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MTMR_ENTRY, Table, Offset); @@ -529,7 +529,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MTMR_ENTRY), AcpiDmTableInfoMtmr0); if (ACPI_FAILURE (Status)) { -@@ -1068,11 +1103,17 @@ AcpiDmDumpNfit ( +@@ -1083,11 +1118,17 @@ AcpiDmDumpNfit ( ACPI_NFIT_SMBIOS *SmbiosInfo = NULL; ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; UINT32 i; @@ -548,7 +548,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1081,19 +1122,21 @@ AcpiDmDumpNfit ( +@@ -1096,19 +1137,21 @@ AcpiDmDumpNfit ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Table, Offset); @@ -574,7 +574,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { case ACPI_NFIT_TYPE_SYSTEM_ADDRESS: -@@ -1148,7 +1191,7 @@ AcpiDmDumpNfit ( +@@ -1163,7 +1206,7 @@ AcpiDmDumpNfit ( /* Attempt to continue */ @@ -583,7 +583,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { AcpiOsPrintf ("Invalid zero length subtable\n"); return; -@@ -1157,8 +1200,8 @@ AcpiDmDumpNfit ( +@@ -1172,8 +1215,8 @@ AcpiDmDumpNfit ( } AcpiOsPrintf ("\n"); @@ -594,7 +594,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1166,14 +1209,15 @@ AcpiDmDumpNfit ( +@@ -1181,14 +1224,15 @@ AcpiDmDumpNfit ( /* Per-subtable variable-length fields */ @@ -613,7 +613,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c &Interleave->LineOffset[i], sizeof (UINT32), AcpiDmTableInfoNfit2a); if (ACPI_FAILURE (Status)) -@@ -1187,12 +1231,11 @@ AcpiDmDumpNfit ( +@@ -1202,12 +1246,11 @@ AcpiDmDumpNfit ( case ACPI_NFIT_TYPE_SMBIOS: @@ -628,7 +628,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_NFIT_SMBIOS) - sizeof (UINT8), SmbiosInfo, Length, AcpiDmTableInfoNfit3a); -@@ -1207,9 +1250,10 @@ AcpiDmDumpNfit ( +@@ -1222,9 +1265,10 @@ AcpiDmDumpNfit ( case ACPI_NFIT_TYPE_FLUSH_ADDRESS: Hint = ACPI_CAST_PTR (ACPI_NFIT_FLUSH_ADDRESS, Subtable); @@ -641,7 +641,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c &Hint->HintAddress[i], sizeof (UINT64), AcpiDmTableInfoNfit6a); if (ACPI_FAILURE (Status)) -@@ -1228,8 +1272,8 @@ AcpiDmDumpNfit ( +@@ -1243,8 +1287,8 @@ AcpiDmDumpNfit ( NextSubtable: /* Point to next subtable */ @@ -652,7 +652,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c } } -@@ -1254,12 +1298,13 @@ AcpiDmDumpPcct ( +@@ -1269,12 +1313,13 @@ AcpiDmDumpPcct ( ACPI_STATUS Status; ACPI_PCCT_SUBSPACE *Subtable; ACPI_DMTABLE_INFO *InfoTable; @@ -667,7 +667,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPcct); if (ACPI_FAILURE (Status)) { -@@ -1269,7 +1314,7 @@ AcpiDmDumpPcct ( +@@ -1284,7 +1329,7 @@ AcpiDmDumpPcct ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PCCT_SUBSPACE, Table, Offset); @@ -676,7 +676,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -1409,16 +1454,21 @@ AcpiDmDumpPmtt ( +@@ -1424,16 +1469,21 @@ AcpiDmDumpPmtt ( ACPI_PMTT_HEADER *MemSubtable; ACPI_PMTT_HEADER *DimmSubtable; ACPI_PMTT_DOMAIN *DomainArray; @@ -700,7 +700,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPmtt); if (ACPI_FAILURE (Status)) { -@@ -1428,13 +1478,14 @@ AcpiDmDumpPmtt ( +@@ -1443,13 +1493,14 @@ AcpiDmDumpPmtt ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Table, Offset); @@ -717,7 +717,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1453,7 +1504,7 @@ AcpiDmDumpPmtt ( +@@ -1468,7 +1519,7 @@ AcpiDmDumpPmtt ( /* Dump the fixed-length portion of the subtable */ Status = AcpiDmDumpTable (Length, Offset, Subtable, @@ -726,7 +726,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1465,15 +1516,16 @@ AcpiDmDumpPmtt ( +@@ -1480,15 +1531,16 @@ AcpiDmDumpPmtt ( MemSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, sizeof (ACPI_PMTT_SOCKET)); @@ -746,7 +746,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1493,7 +1545,7 @@ AcpiDmDumpPmtt ( +@@ -1508,7 +1560,7 @@ AcpiDmDumpPmtt ( Status = AcpiDmDumpTable (Length, Offset + MemOffset, MemSubtable, @@ -755,7 +755,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1501,13 +1553,14 @@ AcpiDmDumpPmtt ( +@@ -1516,13 +1568,14 @@ AcpiDmDumpPmtt ( /* Walk the variable count of proximity domains */ @@ -773,7 +773,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c DomainCount) { Status = AcpiDmDumpTable (Length, -@@ -1535,15 +1588,16 @@ AcpiDmDumpPmtt ( +@@ -1550,15 +1603,16 @@ AcpiDmDumpPmtt ( DimmSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, MemSubtable, DomainOffset); @@ -793,7 +793,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1563,7 +1617,7 @@ AcpiDmDumpPmtt ( +@@ -1578,7 +1632,7 @@ AcpiDmDumpPmtt ( Status = AcpiDmDumpTable (Length, Offset + MemOffset + DimmOffset, DimmSubtable, @@ -802,7 +802,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1571,23 +1625,22 @@ AcpiDmDumpPmtt ( +@@ -1586,23 +1640,22 @@ AcpiDmDumpPmtt ( /* Point to next DIMM subtable */ @@ -832,7 +832,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c } } -@@ -1748,6 +1801,8 @@ AcpiDmDumpS3pt ( +@@ -1763,6 +1816,8 @@ AcpiDmDumpS3pt ( ACPI_FPDT_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; ACPI_TABLE_S3PT *S3ptTable = ACPI_CAST_PTR (ACPI_TABLE_S3PT, Tables); @@ -841,7 +841,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c /* Main table */ -@@ -1758,20 +1813,22 @@ AcpiDmDumpS3pt ( +@@ -1773,20 +1828,22 @@ AcpiDmDumpS3pt ( return 0; } @@ -867,7 +867,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { case ACPI_S3PT_TYPE_RESUME: -@@ -1786,7 +1843,7 @@ AcpiDmDumpS3pt ( +@@ -1801,7 +1858,7 @@ AcpiDmDumpS3pt ( default: AcpiOsPrintf ("\n**** Unknown S3PT subtable type 0x%X\n", @@ -876,7 +876,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c /* Attempt to continue */ -@@ -1799,7 +1856,7 @@ AcpiDmDumpS3pt ( +@@ -1814,7 +1871,7 @@ AcpiDmDumpS3pt ( } AcpiOsPrintf ("\n"); diff --git a/big-endian-v3.patch b/big-endian-v3.patch index e787789..e3db4f6 100644 --- a/big-endian-v3.patch +++ b/big-endian-v3.patch @@ -20,7 +20,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/namespace/nsutils.c acpi diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-20200214/source/common/dmtbdump2.c --- acpica-unix2-20200214.orig/source/common/dmtbdump2.c 2020-02-26 11:44:13.732967820 -0700 +++ acpica-unix2-20200214/source/common/dmtbdump2.c 2020-02-26 12:38:44.286849954 -0700 -@@ -1670,6 +1670,8 @@ +@@ -1685,6 +1685,8 @@ UINT32 Offset = sizeof (ACPI_TABLE_FPDT); ACPI_DMTABLE_INFO *InfoTable; UINT32 i; @@ -29,7 +29,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 /* There is no main table (other than the standard ACPI header) */ -@@ -1677,7 +1679,8 @@ +@@ -1692,7 +1694,8 @@ /* Subtables */ Offset = sizeof (ACPI_TABLE_HEADER); @@ -39,7 +39,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 { AcpiOsPrintf ("\n"); -@@ -1689,7 +1692,7 @@ +@@ -1704,7 +1707,7 @@ AcpiOsPrintf ("Invalid subtable length\n"); return; } @@ -48,7 +48,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 Subtable->Length, AcpiDmTableInfoPpttHdr); if (ACPI_FAILURE (Status)) { -@@ -1731,7 +1734,7 @@ +@@ -1746,7 +1749,7 @@ AcpiOsPrintf ("Invalid subtable length\n"); return; } @@ -57,7 +57,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { -@@ -1747,15 +1750,16 @@ +@@ -1762,15 +1765,16 @@ /* Dump SMBIOS handles */ diff --git a/dup-symbol.patch b/dup-symbol.patch deleted file mode 100644 index fd0d56b..0000000 --- a/dup-symbol.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -Naur acpica-unix2-20191213.orig/source/tools/acpiexec/aemain.c acpica-unix2-20191213/source/tools/acpiexec/aemain.c ---- acpica-unix2-20191213.orig/source/tools/acpiexec/aemain.c 2020-02-23 16:32:25.935853162 -0700 -+++ acpica-unix2-20191213/source/tools/acpiexec/aemain.c 2020-02-23 16:44:38.949901103 -0700 -@@ -84,7 +84,6 @@ - UINT8 AcpiGbl_RegionFillValue = 0; - BOOLEAN AcpiGbl_IgnoreErrors = FALSE; - BOOLEAN AcpiGbl_AbortLoopOnTimeout = FALSE; --BOOLEAN AcpiGbl_DbOpt_NoRegionSupport = FALSE; - UINT8 AcpiGbl_UseHwReducedFadt = FALSE; - BOOLEAN AcpiGbl_DoInterfaceTests = FALSE; - BOOLEAN AcpiGbl_LoadTestTables = FALSE; -@@ -549,6 +548,10 @@ - goto NormalExit; - } - -+ /* Initialize globals modified by command line options */ -+ -+ AcpiGbl_DbOpt_NoRegionSupport = FALSE; -+ - /* Get the command line options */ - - ExitCode = AeDoOptions (argc, argv); diff --git a/no-common.patch b/no-common.patch deleted file mode 100644 index 975c067..0000000 --- a/no-common.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -Naur acpica-unix2-20191213.orig/source/compiler/dtcompiler.h acpica-unix2-20191213/source/compiler/dtcompiler.h ---- acpica-unix2-20191213.orig/source/compiler/dtcompiler.h 2020-02-23 18:05:24.257395129 -0700 -+++ acpica-unix2-20191213/source/compiler/dtcompiler.h 2020-02-23 18:06:42.956236378 -0700 -@@ -351,7 +351,7 @@ - - /* dtparser - lex/yacc files */ - --UINT64 DtCompilerParserResult; /* Expression return value */ -+extern UINT64 DtCompilerParserResult; /* Expression return value */ - int - DtCompilerParserparse ( - void); -diff -Naur acpica-unix2-20191213.orig/source/compiler/aslcompiler.l acpica-unix2-20191213/source/compiler/aslcompiler.l ---- acpica-unix2-20191213.orig/source/compiler/aslcompiler.l 2019-12-13 08:58:18.000000000 -0700 -+++ acpica-unix2-20191213/source/compiler/aslcompiler.l 2020-02-24 15:08:53.067560139 -0700 -@@ -48,7 +48,7 @@ - - #include - #include --YYSTYPE AslCompilerlval; -+#define YYSTYPE AslCompilerlval; - - /* - * Generation: Use the following command line: -diff -Naur acpica-unix2-20191213.orig/source/compiler/prparser.l acpica-unix2-20191213/source/compiler/prparser.l ---- acpica-unix2-20191213.orig/source/compiler/prparser.l 2019-12-13 08:58:19.000000000 -0700 -+++ acpica-unix2-20191213/source/compiler/prparser.l 2020-02-24 15:09:25.909839732 -0700 -@@ -116,7 +116,7 @@ - /* - * Local support functions - */ --YY_BUFFER_STATE LexBuffer; -+static YY_BUFFER_STATE LexBuffer; - - - /****************************************************************************** diff --git a/pcc.patch b/pcc.patch deleted file mode 100644 index 1ed0bd1..0000000 --- a/pcc.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -Naur acpica-unix2-20200214.orig/source/compiler/aslcompiler.l acpica-unix2-20200214/source/compiler/aslcompiler.l ---- acpica-unix2-20200214.orig/source/compiler/aslcompiler.l 2020-02-25 17:24:22.169290551 -0700 -+++ acpica-unix2-20200214/source/compiler/aslcompiler.l 2020-02-25 17:26:01.807138585 -0700 -@@ -584,7 +584,7 @@ - "IPMI" { count (0); return (PARSEOP_REGIONSPACE_IPMI); } - "GeneralPurposeIo" { count (0); return (PARSEOP_REGIONSPACE_GPIO); } /* ACPI 5.0 */ - "GenericSerialBus" { count (0); return (PARSEOP_REGIONSPACE_GSBUS); } /* ACPI 5.0 */ --"PlatformCommChannel" { count (0); return (PARSEOP_REGIONSPACE_PCC); } /* ACPI 5.0 */ -+"PCC" { count (0); return (PARSEOP_REGIONSPACE_PCC); } /* ACPI 5.0 */ - "FFixedHW" { count (0); return (PARSEOP_REGIONSPACE_FFIXEDHW); } - - /* ResourceTypeKeyword: Resource Usage - Resource Descriptors */ -diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utdecode.c acpica-unix2-20200214/source/components/utilities/utdecode.c ---- acpica-unix2-20200214.orig/source/components/utilities/utdecode.c 2020-02-14 10:33:55.000000000 -0700 -+++ acpica-unix2-20200214/source/components/utilities/utdecode.c 2020-02-25 17:26:28.524365981 -0700 -@@ -116,7 +116,7 @@ - "IPMI", /* 0x07 */ - "GeneralPurposeIo", /* 0x08 */ - "GenericSerialBus", /* 0x09 */ -- "PlatformCommChannel"/* 0x0A */ -+ "PCC" /* 0x0A */ - }; - - diff --git a/sources b/sources index 3ad2f69..ef5e62e 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20200214.tar.gz) = 0b22f8c8255b030b5e8a2cf5b459344d1f644b26a4fcf1e95b3682335204598a3587f8f2a5ac169f99d76a10ae529051e1dabd1672c8d8bf5a4441c71d4cb1fd -SHA512 (acpitests-unix-20200214.tar.gz) = b4d37d4784d3fbb697f244477c085e433efa152bc4c4a06d336b216358405252a77c331f4e792f5fa9b912d6f5f200aa1b6379f1b5064e58be12cf8d4415ee15 +SHA512 (acpica-unix2-20200326.tar.gz) = 5028fae5c976593b15cf429e62de30afef3af11ddac9351d9ec0de789d495b553d459e676bc4d3e862edc0c536487a7ee63a137d95c5d1783e6a17ab9114c202 +SHA512 (acpitests-unix-20200326.tar.gz) = 332b4ed016cee48662a5f4572e6d170461f02ee1386109a3970fbe8d104f2a2b14c19235ea43ae9b26e8faf9ef9597cb3d2148e498741361aca62978d0b62189 From b549117a4bdcaee59775d57f9e3aa07c0bef119a Mon Sep 17 00:00:00 2001 From: Al Stone Date: Wed, 1 Apr 2020 14:07:44 -0600 Subject: [PATCH 20/82] Update to 20209326 sources, with refreshed patches Signed-off-by: Al Stone --- .gitignore | 2 + acpica-tools.spec | 12 ++--- big-endian-dmtbdump2.patch | 104 ++++++++++++++++++------------------- big-endian-v3.patch | 10 ++-- dup-symbol.patch | 22 -------- no-common.patch | 36 ------------- pcc.patch | 24 --------- sources | 4 +- 8 files changed, 66 insertions(+), 148 deletions(-) delete mode 100644 dup-symbol.patch delete mode 100644 no-common.patch delete mode 100644 pcc.patch diff --git a/.gitignore b/.gitignore index c9f2b27..44d655f 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,5 @@ series /acpitests-unix-20200110.tar.gz /acpica-unix2-20200214.tar.gz /acpitests-unix-20200214.tar.gz +/acpica-unix2-20200326.tar.gz +/acpitests-unix-20200326.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 02c365a..7d9848a 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20200214 +Version: 20200326 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -46,11 +46,8 @@ Patch18: str-trunc-warn.patch Patch19: ptr-cast.patch Patch20: aslcodegen.patch Patch21: facp.patch -Patch22: dup-symbol.patch -Patch23: no-common.patch Patch24: armv7-str-fixes.patch Patch25: dbtest.patch -Patch26: pcc.patch Patch27: big-endian-v3.patch BuildRequires: bison patchutils flex gcc @@ -125,11 +122,8 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch19 -p1 -b .ptr-cast %patch20 -p1 -b .aslcodegen %patch21 -p1 -b .facp -%patch22 -p1 -b .dup-symbol -%patch23 -p1 -b .no-common %patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest -%patch26 -p1 -b .pcc %patch27 -p1 -b .big-endian-v3 cp -p %{SOURCE2} README.Fedora @@ -247,6 +241,10 @@ fi %changelog +* Wed Apr 1 2020 Al Stone - 20200326-1 +- Update to 20200326 source tree, including patch refreshes +- Removed a couple of patches that got included upstream + * Wed Feb 26 2020 Al Stone - 20200214-1 - Update to 20200214 source tree, including patch refreshes - Add patch to fix up issues where strings and 4-byte quantities diff --git a/big-endian-dmtbdump2.patch b/big-endian-dmtbdump2.patch index 381da29..0ba1a44 100644 --- a/big-endian-dmtbdump2.patch +++ b/big-endian-dmtbdump2.patch @@ -1,7 +1,7 @@ -Index: acpica-unix-20191018/source/common/dmtbdump2.c +Index: acpica-unix-20209326/source/common/dmtbdump2.c =================================================================== ---- acpica-unix-20191018.orig/source/common/dmtbdump2.c -+++ acpica-unix-20191018/source/common/dmtbdump2.c +--- acpica-unix-20209326.orig/source/common/dmtbdump2.c ++++ acpica-unix-20209326/source/common/dmtbdump2.c @@ -75,16 +75,23 @@ AcpiDmDumpIort ( ACPI_IORT_SMMU *IortSmmu = NULL; UINT32 Offset; @@ -223,7 +223,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -386,7 +407,7 @@ AcpiDmDumpIvrs ( +@@ -391,7 +412,7 @@ AcpiDmDumpIvrs ( /* Attempt to continue */ @@ -232,7 +232,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { AcpiOsPrintf ("Invalid zero length subtable\n"); return; -@@ -397,8 +418,8 @@ AcpiDmDumpIvrs ( +@@ -402,8 +423,8 @@ AcpiDmDumpIvrs ( /* Dump the subtable */ AcpiOsPrintf ("\n"); @@ -243,16 +243,16 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -412,7 +433,7 @@ AcpiDmDumpIvrs ( - DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, - sizeof (ACPI_IVRS_HARDWARE)); +@@ -427,7 +448,7 @@ AcpiDmDumpIvrs ( + sizeof (ACPI_IVRS_HARDWARE2)); + } - while (EntryOffset < (Offset + Subtable->Length)) + while (EntryOffset < (Offset + SubLength)) { AcpiOsPrintf ("\n"); /* -@@ -474,7 +495,7 @@ AcpiDmDumpIvrs ( +@@ -489,7 +510,7 @@ AcpiDmDumpIvrs ( /* Dump the Device Entry */ @@ -261,7 +261,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c DeviceEntry, EntryLength, InfoTable); if (ACPI_FAILURE (Status)) { -@@ -490,8 +511,8 @@ AcpiDmDumpIvrs ( +@@ -505,8 +526,8 @@ AcpiDmDumpIvrs ( NextSubtable: /* Point to next subtable */ @@ -272,7 +272,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c } } -@@ -517,7 +538,7 @@ AcpiDmDumpLpit ( +@@ -532,7 +553,7 @@ AcpiDmDumpLpit ( { ACPI_STATUS Status; ACPI_LPIT_HEADER *Subtable; @@ -281,7 +281,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c UINT32 Offset = sizeof (ACPI_TABLE_LPIT); ACPI_DMTABLE_INFO *InfoTable; UINT32 SubtableLength; -@@ -525,8 +546,9 @@ AcpiDmDumpLpit ( +@@ -540,8 +561,9 @@ AcpiDmDumpLpit ( /* Subtables */ @@ -292,7 +292,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -590,13 +612,14 @@ AcpiDmDumpMadt ( +@@ -605,13 +627,14 @@ AcpiDmDumpMadt ( { ACPI_STATUS Status; ACPI_SUBTABLE_HEADER *Subtable; @@ -308,7 +308,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt); if (ACPI_FAILURE (Status)) { -@@ -606,7 +629,7 @@ AcpiDmDumpMadt ( +@@ -621,7 +644,7 @@ AcpiDmDumpMadt ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); @@ -317,7 +317,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -752,11 +775,13 @@ AcpiDmDumpMcfg ( +@@ -767,11 +790,13 @@ AcpiDmDumpMcfg ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MCFG); ACPI_MCFG_ALLOCATION *Subtable; @@ -332,7 +332,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -765,17 +790,17 @@ AcpiDmDumpMcfg ( +@@ -780,17 +805,17 @@ AcpiDmDumpMcfg ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MCFG_ALLOCATION, Table, Offset); @@ -354,7 +354,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MCFG_ALLOCATION), AcpiDmTableInfoMcfg0); if (ACPI_FAILURE (Status)) { -@@ -809,6 +834,7 @@ AcpiDmDumpMpst ( +@@ -824,6 +849,7 @@ AcpiDmDumpMpst ( { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MPST); @@ -362,7 +362,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c ACPI_MPST_POWER_NODE *Subtable0; ACPI_MPST_POWER_STATE *Subtable0A; ACPI_MPST_COMPONENT *Subtable0B; -@@ -817,11 +843,13 @@ AcpiDmDumpMpst ( +@@ -832,11 +858,13 @@ AcpiDmDumpMpst ( UINT16 SubtableCount; UINT32 PowerStateCount; UINT32 ComponentCount; @@ -377,7 +377,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -829,13 +857,14 @@ AcpiDmDumpMpst ( +@@ -844,13 +872,14 @@ AcpiDmDumpMpst ( /* Subtable: Memory Power Node(s) */ @@ -395,7 +395,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_NODE), AcpiDmTableInfoMpst0); if (ACPI_FAILURE (Status)) { -@@ -844,8 +873,8 @@ AcpiDmDumpMpst ( +@@ -859,8 +888,8 @@ AcpiDmDumpMpst ( /* Extract the sub-subtable counts */ @@ -406,7 +406,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Offset += sizeof (ACPI_MPST_POWER_NODE); /* Sub-subtables - Memory Power State Structure(s) */ -@@ -856,7 +885,7 @@ AcpiDmDumpMpst ( +@@ -871,7 +900,7 @@ AcpiDmDumpMpst ( while (PowerStateCount) { AcpiOsPrintf ("\n"); @@ -415,7 +415,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_STATE), AcpiDmTableInfoMpst0A); if (ACPI_FAILURE (Status)) { -@@ -866,7 +895,7 @@ AcpiDmDumpMpst ( +@@ -881,7 +910,7 @@ AcpiDmDumpMpst ( Subtable0A++; PowerStateCount--; Offset += sizeof (ACPI_MPST_POWER_STATE); @@ -424,7 +424,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c /* Sub-subtables - Physical Component ID Structure(s) */ -@@ -879,7 +908,7 @@ AcpiDmDumpMpst ( +@@ -894,7 +923,7 @@ AcpiDmDumpMpst ( while (ComponentCount) { @@ -433,7 +433,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_COMPONENT), AcpiDmTableInfoMpst0B); if (ACPI_FAILURE (Status)) { -@@ -894,17 +923,19 @@ AcpiDmDumpMpst ( +@@ -909,17 +938,19 @@ AcpiDmDumpMpst ( /* Point to next Memory Power Node subtable */ SubtableCount--; @@ -456,7 +456,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_DATA_HDR), AcpiDmTableInfoMpst1); if (ACPI_FAILURE (Status)) { -@@ -919,10 +950,10 @@ AcpiDmDumpMpst ( +@@ -934,10 +965,10 @@ AcpiDmDumpMpst ( Subtable2 = ACPI_ADD_PTR (ACPI_MPST_POWER_DATA, Subtable1, sizeof (ACPI_MPST_DATA_HDR)); @@ -469,7 +469,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_DATA), AcpiDmTableInfoMpst2); if (ACPI_FAILURE (Status)) { -@@ -955,11 +986,13 @@ AcpiDmDumpMsct ( +@@ -970,11 +1001,13 @@ AcpiDmDumpMsct ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MSCT); ACPI_MSCT_PROXIMITY *Subtable; @@ -484,7 +484,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -968,12 +1001,12 @@ AcpiDmDumpMsct ( +@@ -983,12 +1016,12 @@ AcpiDmDumpMsct ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Table, Offset); @@ -499,7 +499,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MSCT_PROXIMITY), AcpiDmTableInfoMsct0); if (ACPI_FAILURE (Status)) { -@@ -1008,11 +1041,13 @@ AcpiDmDumpMtmr ( +@@ -1023,11 +1056,13 @@ AcpiDmDumpMtmr ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MTMR); ACPI_MTMR_ENTRY *Subtable; @@ -514,7 +514,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1021,12 +1056,12 @@ AcpiDmDumpMtmr ( +@@ -1036,12 +1071,12 @@ AcpiDmDumpMtmr ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MTMR_ENTRY, Table, Offset); @@ -529,7 +529,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_MTMR_ENTRY), AcpiDmTableInfoMtmr0); if (ACPI_FAILURE (Status)) { -@@ -1068,11 +1103,17 @@ AcpiDmDumpNfit ( +@@ -1083,11 +1118,17 @@ AcpiDmDumpNfit ( ACPI_NFIT_SMBIOS *SmbiosInfo = NULL; ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; UINT32 i; @@ -548,7 +548,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1081,19 +1122,21 @@ AcpiDmDumpNfit ( +@@ -1096,19 +1137,21 @@ AcpiDmDumpNfit ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Table, Offset); @@ -574,7 +574,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { case ACPI_NFIT_TYPE_SYSTEM_ADDRESS: -@@ -1148,7 +1191,7 @@ AcpiDmDumpNfit ( +@@ -1163,7 +1206,7 @@ AcpiDmDumpNfit ( /* Attempt to continue */ @@ -583,7 +583,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { AcpiOsPrintf ("Invalid zero length subtable\n"); return; -@@ -1157,8 +1200,8 @@ AcpiDmDumpNfit ( +@@ -1172,8 +1215,8 @@ AcpiDmDumpNfit ( } AcpiOsPrintf ("\n"); @@ -594,7 +594,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1166,14 +1209,15 @@ AcpiDmDumpNfit ( +@@ -1181,14 +1224,15 @@ AcpiDmDumpNfit ( /* Per-subtable variable-length fields */ @@ -613,7 +613,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c &Interleave->LineOffset[i], sizeof (UINT32), AcpiDmTableInfoNfit2a); if (ACPI_FAILURE (Status)) -@@ -1187,12 +1231,11 @@ AcpiDmDumpNfit ( +@@ -1202,12 +1246,11 @@ AcpiDmDumpNfit ( case ACPI_NFIT_TYPE_SMBIOS: @@ -628,7 +628,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c sizeof (ACPI_NFIT_SMBIOS) - sizeof (UINT8), SmbiosInfo, Length, AcpiDmTableInfoNfit3a); -@@ -1207,9 +1250,10 @@ AcpiDmDumpNfit ( +@@ -1222,9 +1265,10 @@ AcpiDmDumpNfit ( case ACPI_NFIT_TYPE_FLUSH_ADDRESS: Hint = ACPI_CAST_PTR (ACPI_NFIT_FLUSH_ADDRESS, Subtable); @@ -641,7 +641,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c &Hint->HintAddress[i], sizeof (UINT64), AcpiDmTableInfoNfit6a); if (ACPI_FAILURE (Status)) -@@ -1228,8 +1272,8 @@ AcpiDmDumpNfit ( +@@ -1243,8 +1287,8 @@ AcpiDmDumpNfit ( NextSubtable: /* Point to next subtable */ @@ -652,7 +652,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c } } -@@ -1254,12 +1298,13 @@ AcpiDmDumpPcct ( +@@ -1269,12 +1313,13 @@ AcpiDmDumpPcct ( ACPI_STATUS Status; ACPI_PCCT_SUBSPACE *Subtable; ACPI_DMTABLE_INFO *InfoTable; @@ -667,7 +667,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPcct); if (ACPI_FAILURE (Status)) { -@@ -1269,7 +1314,7 @@ AcpiDmDumpPcct ( +@@ -1284,7 +1329,7 @@ AcpiDmDumpPcct ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PCCT_SUBSPACE, Table, Offset); @@ -676,7 +676,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -1409,16 +1454,21 @@ AcpiDmDumpPmtt ( +@@ -1424,16 +1469,21 @@ AcpiDmDumpPmtt ( ACPI_PMTT_HEADER *MemSubtable; ACPI_PMTT_HEADER *DimmSubtable; ACPI_PMTT_DOMAIN *DomainArray; @@ -700,7 +700,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPmtt); if (ACPI_FAILURE (Status)) { -@@ -1428,13 +1478,14 @@ AcpiDmDumpPmtt ( +@@ -1443,13 +1493,14 @@ AcpiDmDumpPmtt ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Table, Offset); @@ -717,7 +717,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1453,7 +1504,7 @@ AcpiDmDumpPmtt ( +@@ -1468,7 +1519,7 @@ AcpiDmDumpPmtt ( /* Dump the fixed-length portion of the subtable */ Status = AcpiDmDumpTable (Length, Offset, Subtable, @@ -726,7 +726,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1465,15 +1516,16 @@ AcpiDmDumpPmtt ( +@@ -1480,15 +1531,16 @@ AcpiDmDumpPmtt ( MemSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, sizeof (ACPI_PMTT_SOCKET)); @@ -746,7 +746,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1493,7 +1545,7 @@ AcpiDmDumpPmtt ( +@@ -1508,7 +1560,7 @@ AcpiDmDumpPmtt ( Status = AcpiDmDumpTable (Length, Offset + MemOffset, MemSubtable, @@ -755,7 +755,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1501,13 +1553,14 @@ AcpiDmDumpPmtt ( +@@ -1516,13 +1568,14 @@ AcpiDmDumpPmtt ( /* Walk the variable count of proximity domains */ @@ -773,7 +773,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c DomainCount) { Status = AcpiDmDumpTable (Length, -@@ -1535,15 +1588,16 @@ AcpiDmDumpPmtt ( +@@ -1550,15 +1603,16 @@ AcpiDmDumpPmtt ( DimmSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, MemSubtable, DomainOffset); @@ -793,7 +793,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1563,7 +1617,7 @@ AcpiDmDumpPmtt ( +@@ -1578,7 +1632,7 @@ AcpiDmDumpPmtt ( Status = AcpiDmDumpTable (Length, Offset + MemOffset + DimmOffset, DimmSubtable, @@ -802,7 +802,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1571,23 +1625,22 @@ AcpiDmDumpPmtt ( +@@ -1586,23 +1640,22 @@ AcpiDmDumpPmtt ( /* Point to next DIMM subtable */ @@ -832,7 +832,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c } } -@@ -1748,6 +1801,8 @@ AcpiDmDumpS3pt ( +@@ -1763,6 +1816,8 @@ AcpiDmDumpS3pt ( ACPI_FPDT_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; ACPI_TABLE_S3PT *S3ptTable = ACPI_CAST_PTR (ACPI_TABLE_S3PT, Tables); @@ -841,7 +841,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c /* Main table */ -@@ -1758,20 +1813,22 @@ AcpiDmDumpS3pt ( +@@ -1773,20 +1828,22 @@ AcpiDmDumpS3pt ( return 0; } @@ -867,7 +867,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c { case ACPI_S3PT_TYPE_RESUME: -@@ -1786,7 +1843,7 @@ AcpiDmDumpS3pt ( +@@ -1801,7 +1858,7 @@ AcpiDmDumpS3pt ( default: AcpiOsPrintf ("\n**** Unknown S3PT subtable type 0x%X\n", @@ -876,7 +876,7 @@ Index: acpica-unix-20191018/source/common/dmtbdump2.c /* Attempt to continue */ -@@ -1799,7 +1856,7 @@ AcpiDmDumpS3pt ( +@@ -1814,7 +1871,7 @@ AcpiDmDumpS3pt ( } AcpiOsPrintf ("\n"); diff --git a/big-endian-v3.patch b/big-endian-v3.patch index e787789..e3db4f6 100644 --- a/big-endian-v3.patch +++ b/big-endian-v3.patch @@ -20,7 +20,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/namespace/nsutils.c acpi diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-20200214/source/common/dmtbdump2.c --- acpica-unix2-20200214.orig/source/common/dmtbdump2.c 2020-02-26 11:44:13.732967820 -0700 +++ acpica-unix2-20200214/source/common/dmtbdump2.c 2020-02-26 12:38:44.286849954 -0700 -@@ -1670,6 +1670,8 @@ +@@ -1685,6 +1685,8 @@ UINT32 Offset = sizeof (ACPI_TABLE_FPDT); ACPI_DMTABLE_INFO *InfoTable; UINT32 i; @@ -29,7 +29,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 /* There is no main table (other than the standard ACPI header) */ -@@ -1677,7 +1679,8 @@ +@@ -1692,7 +1694,8 @@ /* Subtables */ Offset = sizeof (ACPI_TABLE_HEADER); @@ -39,7 +39,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 { AcpiOsPrintf ("\n"); -@@ -1689,7 +1692,7 @@ +@@ -1704,7 +1707,7 @@ AcpiOsPrintf ("Invalid subtable length\n"); return; } @@ -48,7 +48,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 Subtable->Length, AcpiDmTableInfoPpttHdr); if (ACPI_FAILURE (Status)) { -@@ -1731,7 +1734,7 @@ +@@ -1746,7 +1749,7 @@ AcpiOsPrintf ("Invalid subtable length\n"); return; } @@ -57,7 +57,7 @@ diff -Naur acpica-unix2-20200214.orig/source/common/dmtbdump2.c acpica-unix2-202 Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { -@@ -1747,15 +1750,16 @@ +@@ -1762,15 +1765,16 @@ /* Dump SMBIOS handles */ diff --git a/dup-symbol.patch b/dup-symbol.patch deleted file mode 100644 index fd0d56b..0000000 --- a/dup-symbol.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -Naur acpica-unix2-20191213.orig/source/tools/acpiexec/aemain.c acpica-unix2-20191213/source/tools/acpiexec/aemain.c ---- acpica-unix2-20191213.orig/source/tools/acpiexec/aemain.c 2020-02-23 16:32:25.935853162 -0700 -+++ acpica-unix2-20191213/source/tools/acpiexec/aemain.c 2020-02-23 16:44:38.949901103 -0700 -@@ -84,7 +84,6 @@ - UINT8 AcpiGbl_RegionFillValue = 0; - BOOLEAN AcpiGbl_IgnoreErrors = FALSE; - BOOLEAN AcpiGbl_AbortLoopOnTimeout = FALSE; --BOOLEAN AcpiGbl_DbOpt_NoRegionSupport = FALSE; - UINT8 AcpiGbl_UseHwReducedFadt = FALSE; - BOOLEAN AcpiGbl_DoInterfaceTests = FALSE; - BOOLEAN AcpiGbl_LoadTestTables = FALSE; -@@ -549,6 +548,10 @@ - goto NormalExit; - } - -+ /* Initialize globals modified by command line options */ -+ -+ AcpiGbl_DbOpt_NoRegionSupport = FALSE; -+ - /* Get the command line options */ - - ExitCode = AeDoOptions (argc, argv); diff --git a/no-common.patch b/no-common.patch deleted file mode 100644 index 975c067..0000000 --- a/no-common.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -Naur acpica-unix2-20191213.orig/source/compiler/dtcompiler.h acpica-unix2-20191213/source/compiler/dtcompiler.h ---- acpica-unix2-20191213.orig/source/compiler/dtcompiler.h 2020-02-23 18:05:24.257395129 -0700 -+++ acpica-unix2-20191213/source/compiler/dtcompiler.h 2020-02-23 18:06:42.956236378 -0700 -@@ -351,7 +351,7 @@ - - /* dtparser - lex/yacc files */ - --UINT64 DtCompilerParserResult; /* Expression return value */ -+extern UINT64 DtCompilerParserResult; /* Expression return value */ - int - DtCompilerParserparse ( - void); -diff -Naur acpica-unix2-20191213.orig/source/compiler/aslcompiler.l acpica-unix2-20191213/source/compiler/aslcompiler.l ---- acpica-unix2-20191213.orig/source/compiler/aslcompiler.l 2019-12-13 08:58:18.000000000 -0700 -+++ acpica-unix2-20191213/source/compiler/aslcompiler.l 2020-02-24 15:08:53.067560139 -0700 -@@ -48,7 +48,7 @@ - - #include - #include --YYSTYPE AslCompilerlval; -+#define YYSTYPE AslCompilerlval; - - /* - * Generation: Use the following command line: -diff -Naur acpica-unix2-20191213.orig/source/compiler/prparser.l acpica-unix2-20191213/source/compiler/prparser.l ---- acpica-unix2-20191213.orig/source/compiler/prparser.l 2019-12-13 08:58:19.000000000 -0700 -+++ acpica-unix2-20191213/source/compiler/prparser.l 2020-02-24 15:09:25.909839732 -0700 -@@ -116,7 +116,7 @@ - /* - * Local support functions - */ --YY_BUFFER_STATE LexBuffer; -+static YY_BUFFER_STATE LexBuffer; - - - /****************************************************************************** diff --git a/pcc.patch b/pcc.patch deleted file mode 100644 index 1ed0bd1..0000000 --- a/pcc.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -Naur acpica-unix2-20200214.orig/source/compiler/aslcompiler.l acpica-unix2-20200214/source/compiler/aslcompiler.l ---- acpica-unix2-20200214.orig/source/compiler/aslcompiler.l 2020-02-25 17:24:22.169290551 -0700 -+++ acpica-unix2-20200214/source/compiler/aslcompiler.l 2020-02-25 17:26:01.807138585 -0700 -@@ -584,7 +584,7 @@ - "IPMI" { count (0); return (PARSEOP_REGIONSPACE_IPMI); } - "GeneralPurposeIo" { count (0); return (PARSEOP_REGIONSPACE_GPIO); } /* ACPI 5.0 */ - "GenericSerialBus" { count (0); return (PARSEOP_REGIONSPACE_GSBUS); } /* ACPI 5.0 */ --"PlatformCommChannel" { count (0); return (PARSEOP_REGIONSPACE_PCC); } /* ACPI 5.0 */ -+"PCC" { count (0); return (PARSEOP_REGIONSPACE_PCC); } /* ACPI 5.0 */ - "FFixedHW" { count (0); return (PARSEOP_REGIONSPACE_FFIXEDHW); } - - /* ResourceTypeKeyword: Resource Usage - Resource Descriptors */ -diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utdecode.c acpica-unix2-20200214/source/components/utilities/utdecode.c ---- acpica-unix2-20200214.orig/source/components/utilities/utdecode.c 2020-02-14 10:33:55.000000000 -0700 -+++ acpica-unix2-20200214/source/components/utilities/utdecode.c 2020-02-25 17:26:28.524365981 -0700 -@@ -116,7 +116,7 @@ - "IPMI", /* 0x07 */ - "GeneralPurposeIo", /* 0x08 */ - "GenericSerialBus", /* 0x09 */ -- "PlatformCommChannel"/* 0x0A */ -+ "PCC" /* 0x0A */ - }; - - diff --git a/sources b/sources index 3ad2f69..ef5e62e 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20200214.tar.gz) = 0b22f8c8255b030b5e8a2cf5b459344d1f644b26a4fcf1e95b3682335204598a3587f8f2a5ac169f99d76a10ae529051e1dabd1672c8d8bf5a4441c71d4cb1fd -SHA512 (acpitests-unix-20200214.tar.gz) = b4d37d4784d3fbb697f244477c085e433efa152bc4c4a06d336b216358405252a77c331f4e792f5fa9b912d6f5f200aa1b6379f1b5064e58be12cf8d4415ee15 +SHA512 (acpica-unix2-20200326.tar.gz) = 5028fae5c976593b15cf429e62de30afef3af11ddac9351d9ec0de789d495b553d459e676bc4d3e862edc0c536487a7ee63a137d95c5d1783e6a17ab9114c202 +SHA512 (acpitests-unix-20200326.tar.gz) = 332b4ed016cee48662a5f4572e6d170461f02ee1386109a3970fbe8d104f2a2b14c19235ea43ae9b26e8faf9ef9597cb3d2148e498741361aca62978d0b62189 From 22392df24e37a3909640d108ef924363429e8144 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Wed, 1 Apr 2020 15:50:50 -0600 Subject: [PATCH 21/82] Clean up some of the expected results NB: this required not using one patch temporarily (big-endian-v3) which may still turn out to be needed but in some corrected form. Signed-off-by: Al Stone --- acpica-tools.spec | 4 ++-- converterSample.asl.result | 8 +++++--- run-misc-tests.sh | 9 +++++---- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index 7d9848a..a8b36ba 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -48,7 +48,7 @@ Patch20: aslcodegen.patch Patch21: facp.patch Patch24: armv7-str-fixes.patch Patch25: dbtest.patch -Patch27: big-endian-v3.patch +#Patch27: big-endian-v3.patch BuildRequires: bison patchutils flex gcc @@ -124,7 +124,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch21 -p1 -b .facp %patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest -%patch27 -p1 -b .big-endian-v3 +#%patch27 -p1 -b .big-endian-v3 cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 diff --git a/converterSample.asl.result b/converterSample.asl.result index 34cb693..47c532c 100644 --- a/converterSample.asl.result +++ b/converterSample.asl.result @@ -18,7 +18,9 @@ Intel ACPI Component Architecture ASL+ Optimizing Compiler/Disassembler version VVVVVVVV Copyright (c) 2000 - 2020 Intel Corporation -ASL Input: converterSample.asl - 1968 bytes 11 keywords 85 source lines -AML Output: converterSample.aml - 180 bytes 2 opcodes 9 named objects +Ignoring all errors, forcing AML file generation -Compilation successful. 0 Errors, 0 Warnings, 5 Remarks, 12 Optimizations, 1 Constants Folded +ASL Input: converterSample.asl - 1968 bytes 11 keywords 85 source lines +AML Output: converterSample.aml - 182 bytes 2 opcodes 9 named objects + +Compilation successful. 0 Errors, 0 Warnings, 5 Remarks, 10 Optimizations diff --git a/run-misc-tests.sh b/run-misc-tests.sh index e16babf..c0da397 100644 --- a/run-misc-tests.sh +++ b/run-misc-tests.sh @@ -16,7 +16,7 @@ BINDIR="$1" VERSION="$2" # create files to compare against -$BINDIR/iasl -h +$BINDIR/iasl -hZZ sed -e "s/VVVVVVVV/$VERSION/" \ ../badcode.asl.result > misc/badcode.asl.expected @@ -39,9 +39,10 @@ $BINDIR/iasl -f -of grammar.asl 2>&1 | tee grammar.asl.actual diff grammar.asl.actual grammar.asl.expected >/dev/null 2>&1 [ $? -eq 0 ] || exit 1 -# see if converterSample.asl succeeded as expected -$BINDIR/iasl converterSample.asl 2>&1 | tee converterSample.asl.actual +# see if converterSample.asl failed as expected +# NB: the -f option is required so we can see all of the errors +$BINDIR/iasl -f -of converterSample.asl 2>&1 | tee converterSample.asl.actual diff converterSample.asl.actual converterSample.asl.expected >/dev/null 2>&1 -[ $? -ne 0 ] && exit 1 +[ $? -eq 0 ] || exit 1 exit 0 From 8992cb4a759d5926ce167ae17b94075f79c94e1a Mon Sep 17 00:00:00 2001 From: Al Stone Date: Fri, 12 Jun 2020 15:50:29 -0600 Subject: [PATCH 22/82] Update to 20200430 upstream version Signed-off-by: Al Stone --- .gitignore | 2 + OPT_LDFLAGS.patch | 8 +- acpica-tools.spec | 5 +- big-endian-dmtbdump2.patch | 96 ++++++------- big-endian.patch | 266 ++++++++++++++++++------------------- f23-harden.patch | 14 +- facp.patch | 13 +- int-format.patch | 92 ++++++------- sources | 4 +- 9 files changed, 251 insertions(+), 249 deletions(-) diff --git a/.gitignore b/.gitignore index 44d655f..2e7eaf7 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,5 @@ series /acpitests-unix-20200214.tar.gz /acpica-unix2-20200326.tar.gz /acpitests-unix-20200326.tar.gz +/acpica-unix2-20200430.tar.gz +/acpitests-unix-20200430.tar.gz diff --git a/OPT_LDFLAGS.patch b/OPT_LDFLAGS.patch index 5d9a21f..610d66d 100644 --- a/OPT_LDFLAGS.patch +++ b/OPT_LDFLAGS.patch @@ -1,7 +1,7 @@ -Index: acpica-unix-20191018/generate/unix/Makefile.config +Index: acpica-unix2-20200528/generate/unix/Makefile.config =================================================================== ---- acpica-unix-20191018.orig/generate/unix/Makefile.config -+++ acpica-unix-20191018/generate/unix/Makefile.config +--- acpica-unix2-20200528.orig/generate/unix/Makefile.config ++++ acpica-unix2-20200528/generate/unix/Makefile.config @@ -23,6 +23,9 @@ # OPT_CFLAGS can be overridden on the make command line by # adding OPT_CFLAGS="..." to the invocation. @@ -12,7 +12,7 @@ Index: acpica-unix-20191018/generate/unix/Makefile.config # Notes: # gcc should be version 4 or greater, otherwise some of the options # used will not be recognized. -@@ -165,6 +168,11 @@ LDFLAGS +=-m32 +@@ -164,6 +167,11 @@ LDFLAGS +=-m32 endif # diff --git a/acpica-tools.spec b/acpica-tools.spec index a8b36ba..4868994 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20200326 +Version: 20200430 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -241,6 +241,9 @@ fi %changelog +* Thu Jun 8 2020 Al Stone - 202004306-1 +- Update to 202004306 source tree, including patch refreshes + * Wed Apr 1 2020 Al Stone - 20200326-1 - Update to 20200326 source tree, including patch refreshes - Removed a couple of patches that got included upstream diff --git a/big-endian-dmtbdump2.patch b/big-endian-dmtbdump2.patch index 0ba1a44..0997b5b 100644 --- a/big-endian-dmtbdump2.patch +++ b/big-endian-dmtbdump2.patch @@ -1,7 +1,7 @@ -Index: acpica-unix-20209326/source/common/dmtbdump2.c +Index: acpica-unix2-20200528/source/common/dmtbdump2.c =================================================================== ---- acpica-unix-20209326.orig/source/common/dmtbdump2.c -+++ acpica-unix-20209326/source/common/dmtbdump2.c +--- acpica-unix2-20200528.orig/source/common/dmtbdump2.c ++++ acpica-unix2-20200528/source/common/dmtbdump2.c @@ -75,16 +75,23 @@ AcpiDmDumpIort ( ACPI_IORT_SMMU *IortSmmu = NULL; UINT32 Offset; @@ -243,7 +243,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -427,7 +448,7 @@ AcpiDmDumpIvrs ( +@@ -429,7 +450,7 @@ AcpiDmDumpIvrs ( sizeof (ACPI_IVRS_HARDWARE2)); } @@ -252,7 +252,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c { AcpiOsPrintf ("\n"); /* -@@ -489,7 +510,7 @@ AcpiDmDumpIvrs ( +@@ -491,7 +512,7 @@ AcpiDmDumpIvrs ( /* Dump the Device Entry */ @@ -261,7 +261,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c DeviceEntry, EntryLength, InfoTable); if (ACPI_FAILURE (Status)) { -@@ -505,8 +526,8 @@ AcpiDmDumpIvrs ( +@@ -507,8 +528,8 @@ AcpiDmDumpIvrs ( NextSubtable: /* Point to next subtable */ @@ -272,7 +272,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c } } -@@ -532,7 +553,7 @@ AcpiDmDumpLpit ( +@@ -534,7 +555,7 @@ AcpiDmDumpLpit ( { ACPI_STATUS Status; ACPI_LPIT_HEADER *Subtable; @@ -281,7 +281,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c UINT32 Offset = sizeof (ACPI_TABLE_LPIT); ACPI_DMTABLE_INFO *InfoTable; UINT32 SubtableLength; -@@ -540,8 +561,9 @@ AcpiDmDumpLpit ( +@@ -542,8 +563,9 @@ AcpiDmDumpLpit ( /* Subtables */ @@ -292,7 +292,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -605,13 +627,14 @@ AcpiDmDumpMadt ( +@@ -607,13 +629,14 @@ AcpiDmDumpMadt ( { ACPI_STATUS Status; ACPI_SUBTABLE_HEADER *Subtable; @@ -308,7 +308,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt); if (ACPI_FAILURE (Status)) { -@@ -621,7 +644,7 @@ AcpiDmDumpMadt ( +@@ -623,7 +646,7 @@ AcpiDmDumpMadt ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); @@ -317,7 +317,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -767,11 +790,13 @@ AcpiDmDumpMcfg ( +@@ -769,11 +792,13 @@ AcpiDmDumpMcfg ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MCFG); ACPI_MCFG_ALLOCATION *Subtable; @@ -332,7 +332,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -780,17 +805,17 @@ AcpiDmDumpMcfg ( +@@ -782,17 +807,17 @@ AcpiDmDumpMcfg ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MCFG_ALLOCATION, Table, Offset); @@ -354,7 +354,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MCFG_ALLOCATION), AcpiDmTableInfoMcfg0); if (ACPI_FAILURE (Status)) { -@@ -824,6 +849,7 @@ AcpiDmDumpMpst ( +@@ -826,6 +851,7 @@ AcpiDmDumpMpst ( { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MPST); @@ -362,7 +362,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c ACPI_MPST_POWER_NODE *Subtable0; ACPI_MPST_POWER_STATE *Subtable0A; ACPI_MPST_COMPONENT *Subtable0B; -@@ -832,11 +858,13 @@ AcpiDmDumpMpst ( +@@ -834,11 +860,13 @@ AcpiDmDumpMpst ( UINT16 SubtableCount; UINT32 PowerStateCount; UINT32 ComponentCount; @@ -377,7 +377,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -844,13 +872,14 @@ AcpiDmDumpMpst ( +@@ -846,13 +874,14 @@ AcpiDmDumpMpst ( /* Subtable: Memory Power Node(s) */ @@ -395,7 +395,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_NODE), AcpiDmTableInfoMpst0); if (ACPI_FAILURE (Status)) { -@@ -859,8 +888,8 @@ AcpiDmDumpMpst ( +@@ -861,8 +890,8 @@ AcpiDmDumpMpst ( /* Extract the sub-subtable counts */ @@ -406,7 +406,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c Offset += sizeof (ACPI_MPST_POWER_NODE); /* Sub-subtables - Memory Power State Structure(s) */ -@@ -871,7 +900,7 @@ AcpiDmDumpMpst ( +@@ -873,7 +902,7 @@ AcpiDmDumpMpst ( while (PowerStateCount) { AcpiOsPrintf ("\n"); @@ -415,7 +415,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_STATE), AcpiDmTableInfoMpst0A); if (ACPI_FAILURE (Status)) { -@@ -881,7 +910,7 @@ AcpiDmDumpMpst ( +@@ -883,7 +912,7 @@ AcpiDmDumpMpst ( Subtable0A++; PowerStateCount--; Offset += sizeof (ACPI_MPST_POWER_STATE); @@ -424,7 +424,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c /* Sub-subtables - Physical Component ID Structure(s) */ -@@ -894,7 +923,7 @@ AcpiDmDumpMpst ( +@@ -896,7 +925,7 @@ AcpiDmDumpMpst ( while (ComponentCount) { @@ -433,7 +433,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MPST_COMPONENT), AcpiDmTableInfoMpst0B); if (ACPI_FAILURE (Status)) { -@@ -909,17 +938,19 @@ AcpiDmDumpMpst ( +@@ -911,17 +940,19 @@ AcpiDmDumpMpst ( /* Point to next Memory Power Node subtable */ SubtableCount--; @@ -456,7 +456,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MPST_DATA_HDR), AcpiDmTableInfoMpst1); if (ACPI_FAILURE (Status)) { -@@ -934,10 +965,10 @@ AcpiDmDumpMpst ( +@@ -936,10 +967,10 @@ AcpiDmDumpMpst ( Subtable2 = ACPI_ADD_PTR (ACPI_MPST_POWER_DATA, Subtable1, sizeof (ACPI_MPST_DATA_HDR)); @@ -469,7 +469,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MPST_POWER_DATA), AcpiDmTableInfoMpst2); if (ACPI_FAILURE (Status)) { -@@ -970,11 +1001,13 @@ AcpiDmDumpMsct ( +@@ -972,11 +1003,13 @@ AcpiDmDumpMsct ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MSCT); ACPI_MSCT_PROXIMITY *Subtable; @@ -484,7 +484,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -983,12 +1016,12 @@ AcpiDmDumpMsct ( +@@ -985,12 +1018,12 @@ AcpiDmDumpMsct ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Table, Offset); @@ -499,7 +499,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MSCT_PROXIMITY), AcpiDmTableInfoMsct0); if (ACPI_FAILURE (Status)) { -@@ -1023,11 +1056,13 @@ AcpiDmDumpMtmr ( +@@ -1025,11 +1058,13 @@ AcpiDmDumpMtmr ( ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MTMR); ACPI_MTMR_ENTRY *Subtable; @@ -514,7 +514,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1036,12 +1071,12 @@ AcpiDmDumpMtmr ( +@@ -1038,12 +1073,12 @@ AcpiDmDumpMtmr ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MTMR_ENTRY, Table, Offset); @@ -529,7 +529,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_MTMR_ENTRY), AcpiDmTableInfoMtmr0); if (ACPI_FAILURE (Status)) { -@@ -1083,11 +1118,17 @@ AcpiDmDumpNfit ( +@@ -1085,11 +1120,17 @@ AcpiDmDumpNfit ( ACPI_NFIT_SMBIOS *SmbiosInfo = NULL; ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; UINT32 i; @@ -548,7 +548,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1096,19 +1137,21 @@ AcpiDmDumpNfit ( +@@ -1098,19 +1139,21 @@ AcpiDmDumpNfit ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Table, Offset); @@ -574,7 +574,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c { case ACPI_NFIT_TYPE_SYSTEM_ADDRESS: -@@ -1163,7 +1206,7 @@ AcpiDmDumpNfit ( +@@ -1165,7 +1208,7 @@ AcpiDmDumpNfit ( /* Attempt to continue */ @@ -583,7 +583,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c { AcpiOsPrintf ("Invalid zero length subtable\n"); return; -@@ -1172,8 +1215,8 @@ AcpiDmDumpNfit ( +@@ -1174,8 +1217,8 @@ AcpiDmDumpNfit ( } AcpiOsPrintf ("\n"); @@ -594,7 +594,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1181,14 +1224,15 @@ AcpiDmDumpNfit ( +@@ -1183,14 +1226,15 @@ AcpiDmDumpNfit ( /* Per-subtable variable-length fields */ @@ -613,7 +613,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c &Interleave->LineOffset[i], sizeof (UINT32), AcpiDmTableInfoNfit2a); if (ACPI_FAILURE (Status)) -@@ -1202,12 +1246,11 @@ AcpiDmDumpNfit ( +@@ -1204,12 +1248,11 @@ AcpiDmDumpNfit ( case ACPI_NFIT_TYPE_SMBIOS: @@ -628,7 +628,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c sizeof (ACPI_NFIT_SMBIOS) - sizeof (UINT8), SmbiosInfo, Length, AcpiDmTableInfoNfit3a); -@@ -1222,9 +1265,10 @@ AcpiDmDumpNfit ( +@@ -1224,9 +1267,10 @@ AcpiDmDumpNfit ( case ACPI_NFIT_TYPE_FLUSH_ADDRESS: Hint = ACPI_CAST_PTR (ACPI_NFIT_FLUSH_ADDRESS, Subtable); @@ -641,7 +641,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c &Hint->HintAddress[i], sizeof (UINT64), AcpiDmTableInfoNfit6a); if (ACPI_FAILURE (Status)) -@@ -1243,8 +1287,8 @@ AcpiDmDumpNfit ( +@@ -1245,8 +1289,8 @@ AcpiDmDumpNfit ( NextSubtable: /* Point to next subtable */ @@ -652,7 +652,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c } } -@@ -1269,12 +1313,13 @@ AcpiDmDumpPcct ( +@@ -1271,12 +1315,13 @@ AcpiDmDumpPcct ( ACPI_STATUS Status; ACPI_PCCT_SUBSPACE *Subtable; ACPI_DMTABLE_INFO *InfoTable; @@ -667,7 +667,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPcct); if (ACPI_FAILURE (Status)) { -@@ -1284,7 +1329,7 @@ AcpiDmDumpPcct ( +@@ -1286,7 +1331,7 @@ AcpiDmDumpPcct ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PCCT_SUBSPACE, Table, Offset); @@ -676,7 +676,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c { /* Common subtable header */ -@@ -1424,16 +1469,21 @@ AcpiDmDumpPmtt ( +@@ -1426,16 +1471,21 @@ AcpiDmDumpPmtt ( ACPI_PMTT_HEADER *MemSubtable; ACPI_PMTT_HEADER *DimmSubtable; ACPI_PMTT_DOMAIN *DomainArray; @@ -700,7 +700,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPmtt); if (ACPI_FAILURE (Status)) { -@@ -1443,13 +1493,14 @@ AcpiDmDumpPmtt ( +@@ -1445,13 +1495,14 @@ AcpiDmDumpPmtt ( /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Table, Offset); @@ -717,7 +717,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1468,7 +1519,7 @@ AcpiDmDumpPmtt ( +@@ -1470,7 +1521,7 @@ AcpiDmDumpPmtt ( /* Dump the fixed-length portion of the subtable */ Status = AcpiDmDumpTable (Length, Offset, Subtable, @@ -726,7 +726,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1480,15 +1531,16 @@ AcpiDmDumpPmtt ( +@@ -1482,15 +1533,16 @@ AcpiDmDumpPmtt ( MemSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, sizeof (ACPI_PMTT_SOCKET)); @@ -746,7 +746,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1508,7 +1560,7 @@ AcpiDmDumpPmtt ( +@@ -1510,7 +1562,7 @@ AcpiDmDumpPmtt ( Status = AcpiDmDumpTable (Length, Offset + MemOffset, MemSubtable, @@ -755,7 +755,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1516,13 +1568,14 @@ AcpiDmDumpPmtt ( +@@ -1518,13 +1570,14 @@ AcpiDmDumpPmtt ( /* Walk the variable count of proximity domains */ @@ -773,7 +773,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c DomainCount) { Status = AcpiDmDumpTable (Length, -@@ -1550,15 +1603,16 @@ AcpiDmDumpPmtt ( +@@ -1552,15 +1605,16 @@ AcpiDmDumpPmtt ( DimmSubtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, MemSubtable, DomainOffset); @@ -793,7 +793,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1578,7 +1632,7 @@ AcpiDmDumpPmtt ( +@@ -1580,7 +1634,7 @@ AcpiDmDumpPmtt ( Status = AcpiDmDumpTable (Length, Offset + MemOffset + DimmOffset, DimmSubtable, @@ -802,7 +802,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c if (ACPI_FAILURE (Status)) { return; -@@ -1586,23 +1640,22 @@ AcpiDmDumpPmtt ( +@@ -1588,23 +1642,22 @@ AcpiDmDumpPmtt ( /* Point to next DIMM subtable */ @@ -832,7 +832,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c } } -@@ -1763,6 +1816,8 @@ AcpiDmDumpS3pt ( +@@ -1765,6 +1818,8 @@ AcpiDmDumpS3pt ( ACPI_FPDT_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; ACPI_TABLE_S3PT *S3ptTable = ACPI_CAST_PTR (ACPI_TABLE_S3PT, Tables); @@ -841,7 +841,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c /* Main table */ -@@ -1773,20 +1828,22 @@ AcpiDmDumpS3pt ( +@@ -1775,20 +1830,22 @@ AcpiDmDumpS3pt ( return 0; } @@ -867,7 +867,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c { case ACPI_S3PT_TYPE_RESUME: -@@ -1801,7 +1858,7 @@ AcpiDmDumpS3pt ( +@@ -1803,7 +1860,7 @@ AcpiDmDumpS3pt ( default: AcpiOsPrintf ("\n**** Unknown S3PT subtable type 0x%X\n", @@ -876,7 +876,7 @@ Index: acpica-unix-20209326/source/common/dmtbdump2.c /* Attempt to continue */ -@@ -1814,7 +1871,7 @@ AcpiDmDumpS3pt ( +@@ -1816,7 +1873,7 @@ AcpiDmDumpS3pt ( } AcpiOsPrintf ("\n"); diff --git a/big-endian.patch b/big-endian.patch index 8d89a5b..284bc46 100644 --- a/big-endian.patch +++ b/big-endian.patch @@ -8,10 +8,10 @@ To date, this has been critical for the s390x architecture only. Signed-off-by: Al Stone -Index: acpica-unix-20200214/source/compiler/aslcodegen.c +Index: acpica-unix2-20200528/source/compiler/aslcodegen.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslcodegen.c -+++ acpica-unix-20200214/source/compiler/aslcodegen.c +--- acpica-unix2-20200528.orig/source/compiler/aslcodegen.c ++++ acpica-unix2-20200528/source/compiler/aslcodegen.c @@ -237,16 +237,12 @@ CgWriteAmlOpcode ( ACPI_PARSE_OBJECT *Op) { @@ -253,10 +253,10 @@ Index: acpica-unix-20200214/source/compiler/aslcodegen.c case AML_RAW_DATA_BUFFER: -Index: acpica-unix-20200214/source/compiler/aslopcodes.c +Index: acpica-unix2-20200528/source/compiler/aslopcodes.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslopcodes.c -+++ acpica-unix-20200214/source/compiler/aslopcodes.c +--- acpica-unix2-20200528.orig/source/compiler/aslopcodes.c ++++ acpica-unix2-20200528/source/compiler/aslopcodes.c @@ -485,6 +485,7 @@ OpcDoUnicode ( UINT32 i; UINT8 *AsciiString; @@ -275,10 +275,10 @@ Index: acpica-unix-20200214/source/compiler/aslopcodes.c } /* -Index: acpica-unix-20200214/source/compiler/aslrestype1.c +Index: acpica-unix2-20200528/source/compiler/aslrestype1.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype1.c -+++ acpica-unix-20200214/source/compiler/aslrestype1.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype1.c ++++ acpica-unix2-20200528/source/compiler/aslrestype1.c @@ -142,6 +142,11 @@ RsDoMemory24Descriptor ( ACPI_PARSE_OBJECT *LengthOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -475,10 +475,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.AddressLength)); break; -Index: acpica-unix-20200214/source/compiler/aslrestype1i.c +Index: acpica-unix2-20200528/source/compiler/aslrestype1i.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype1i.c -+++ acpica-unix-20200214/source/compiler/aslrestype1i.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype1i.c ++++ acpica-unix2-20200528/source/compiler/aslrestype1i.c @@ -198,6 +198,8 @@ RsDoFixedDmaDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -615,10 +615,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype1i.c + ACPI_MOVE_16_TO_16(&Descriptor->Irq.IrqMask, &IrqMask); return (Rnode); } -Index: acpica-unix-20200214/source/compiler/aslrestype2.c +Index: acpica-unix2-20200528/source/compiler/aslrestype2.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype2.c -+++ acpica-unix-20200214/source/compiler/aslrestype2.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype2.c ++++ acpica-unix2-20200528/source/compiler/aslrestype2.c @@ -76,6 +76,7 @@ RsDoGeneralRegisterDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -759,10 +759,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype2.c /* Point to end-of-descriptor for vendor data */ -Index: acpica-unix-20200214/source/compiler/aslrestype2d.c +Index: acpica-unix2-20200528/source/compiler/aslrestype2d.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype2d.c -+++ acpica-unix-20200214/source/compiler/aslrestype2d.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype2d.c ++++ acpica-unix2-20200528/source/compiler/aslrestype2d.c @@ -79,7 +79,13 @@ RsDoDwordIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1118,10 +1118,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype2d.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20200214/source/compiler/aslrestype2e.c +Index: acpica-unix2-20200528/source/compiler/aslrestype2e.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype2e.c -+++ acpica-unix-20200214/source/compiler/aslrestype2e.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype2e.c ++++ acpica-unix2-20200528/source/compiler/aslrestype2e.c @@ -78,6 +78,13 @@ RsDoExtendedIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -1227,10 +1227,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype2e.c Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); -Index: acpica-unix-20200214/source/compiler/aslrestype2q.c +Index: acpica-unix2-20200528/source/compiler/aslrestype2q.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype2q.c -+++ acpica-unix-20200214/source/compiler/aslrestype2q.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype2q.c ++++ acpica-unix2-20200528/source/compiler/aslrestype2q.c @@ -80,7 +80,13 @@ RsDoQwordIoDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; @@ -1569,10 +1569,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype2q.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20200214/source/compiler/aslrestype2s.c +Index: acpica-unix2-20200528/source/compiler/aslrestype2s.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype2s.c -+++ acpica-unix-20200214/source/compiler/aslrestype2s.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype2s.c ++++ acpica-unix2-20200528/source/compiler/aslrestype2s.c @@ -340,9 +340,14 @@ RsDoGpioIntDescriptor ( UINT16 VendorLength; UINT16 InterruptLength; @@ -2038,10 +2038,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype2s.c MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } -Index: acpica-unix-20200214/source/compiler/aslrestype2w.c +Index: acpica-unix2-20200528/source/compiler/aslrestype2w.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslrestype2w.c -+++ acpica-unix-20200214/source/compiler/aslrestype2w.c +--- acpica-unix2-20200528.orig/source/compiler/aslrestype2w.c ++++ acpica-unix2-20200528/source/compiler/aslrestype2w.c @@ -81,6 +81,12 @@ RsDoWordIoDescriptor ( UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -2385,10 +2385,10 @@ Index: acpica-unix-20200214/source/compiler/aslrestype2w.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); -Index: acpica-unix-20200214/source/include/acmacros.h +Index: acpica-unix2-20200528/source/include/acmacros.h =================================================================== ---- acpica-unix-20200214.orig/source/include/acmacros.h -+++ acpica-unix-20200214/source/include/acmacros.h +--- acpica-unix2-20200528.orig/source/include/acmacros.h ++++ acpica-unix2-20200528/source/include/acmacros.h @@ -98,9 +98,12 @@ ((UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\ ((UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];} @@ -2467,10 +2467,10 @@ Index: acpica-unix-20200214/source/include/acmacros.h #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ -Index: acpica-unix-20200214/source/include/platform/aclinux.h +Index: acpica-unix2-20200528/source/include/platform/aclinux.h =================================================================== ---- acpica-unix-20200214.orig/source/include/platform/aclinux.h -+++ acpica-unix-20200214/source/include/platform/aclinux.h +--- acpica-unix2-20200528.orig/source/include/platform/aclinux.h ++++ acpica-unix2-20200528/source/include/platform/aclinux.h @@ -198,6 +198,7 @@ #ifdef ACPI_USE_STANDARD_HEADERS @@ -2490,10 +2490,10 @@ Index: acpica-unix-20200214/source/include/platform/aclinux.h #endif /* __KERNEL__ */ #endif /* __ACLINUX_H__ */ -Index: acpica-unix-20200214/source/compiler/aslanalyze.c +Index: acpica-unix2-20200528/source/compiler/aslanalyze.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslanalyze.c -+++ acpica-unix-20200214/source/compiler/aslanalyze.c +--- acpica-unix2-20200528.orig/source/compiler/aslanalyze.c ++++ acpica-unix2-20200528/source/compiler/aslanalyze.c @@ -469,7 +469,7 @@ ApCheckForGpeNameConflict ( /* Need a null-terminated string version of NameSeg */ @@ -2512,10 +2512,10 @@ Index: acpica-unix-20200214/source/compiler/aslanalyze.c /* Inject opposite letter ("L" versus "E") */ -Index: acpica-unix-20200214/source/compiler/asllookup.c +Index: acpica-unix2-20200528/source/compiler/asllookup.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/asllookup.c -+++ acpica-unix-20200214/source/compiler/asllookup.c +--- acpica-unix2-20200528.orig/source/compiler/asllookup.c ++++ acpica-unix2-20200528/source/compiler/asllookup.c @@ -119,6 +119,7 @@ LkIsObjectUsed ( { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); @@ -2546,10 +2546,10 @@ Index: acpica-unix-20200214/source/compiler/asllookup.c AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED, LkGetNameOp (Node->Op), AslGbl_MsgBuffer); return (AE_OK); -Index: acpica-unix-20200214/source/compiler/aslmain.c +Index: acpica-unix2-20200528/source/compiler/aslmain.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/aslmain.c -+++ acpica-unix-20200214/source/compiler/aslmain.c +--- acpica-unix2-20200528.orig/source/compiler/aslmain.c ++++ acpica-unix2-20200528/source/compiler/aslmain.c @@ -101,18 +101,6 @@ main ( signal (SIGINT, AslSignalHandler); @@ -2569,10 +2569,10 @@ Index: acpica-unix-20200214/source/compiler/aslmain.c AcpiOsInitialize (); ACPI_DEBUG_INITIALIZE (); /* For debug version only */ -Index: acpica-unix-20200214/source/common/acfileio.c +Index: acpica-unix2-20200528/source/common/acfileio.c =================================================================== ---- acpica-unix-20200214.orig/source/common/acfileio.c -+++ acpica-unix-20200214/source/common/acfileio.c +--- acpica-unix2-20200528.orig/source/common/acfileio.c ++++ acpica-unix2-20200528/source/common/acfileio.c @@ -280,6 +280,7 @@ AcGetOneTableFromFile ( ACPI_TABLE_HEADER *Table; INT32 Count; @@ -2639,10 +2639,10 @@ Index: acpica-unix-20200214/source/common/acfileio.c (UINT32) (FileSize - TableOffset)); return (AE_BAD_HEADER); } -Index: acpica-unix-20200214/source/common/dmtable.c +Index: acpica-unix2-20200528/source/common/dmtable.c =================================================================== ---- acpica-unix-20200214.orig/source/common/dmtable.c -+++ acpica-unix-20200214/source/common/dmtable.c +--- acpica-unix2-20200528.orig/source/common/dmtable.c ++++ acpica-unix2-20200528/source/common/dmtable.c @@ -551,7 +551,7 @@ AcpiDmDumpDataTable ( */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_FACS)) @@ -2741,10 +2741,10 @@ Index: acpica-unix-20200214/source/common/dmtable.c AcpiDmNfitSubnames[Temp16]); break; -Index: acpica-unix-20200214/source/common/dmtables.c +Index: acpica-unix2-20200528/source/common/dmtables.c =================================================================== ---- acpica-unix-20200214.orig/source/common/dmtables.c -+++ acpica-unix-20200214/source/common/dmtables.c +--- acpica-unix2-20200528.orig/source/common/dmtables.c ++++ acpica-unix2-20200528/source/common/dmtables.c @@ -142,7 +142,9 @@ AdCreateTableHeader ( ACPI_TABLE_HEADER *Table) { @@ -2810,10 +2810,10 @@ Index: acpica-unix-20200214/source/common/dmtables.c AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); AcpiUtSetIntegerWidth (Table->Revision); -Index: acpica-unix-20200214/source/compiler/dtfield.c +Index: acpica-unix2-20200528/source/compiler/dtfield.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/dtfield.c -+++ acpica-unix-20200214/source/compiler/dtfield.c +--- acpica-unix2-20200528.orig/source/compiler/dtfield.c ++++ acpica-unix2-20200528/source/compiler/dtfield.c @@ -361,7 +361,27 @@ DtCompileInteger ( DtError (ASL_ERROR, ASL_MSG_INTEGER_SIZE, Field, AslGbl_MsgBuffer); } @@ -2843,10 +2843,10 @@ Index: acpica-unix-20200214/source/compiler/dtfield.c return; } -Index: acpica-unix-20200214/source/compiler/dtsubtable.c +Index: acpica-unix2-20200528/source/compiler/dtsubtable.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/dtsubtable.c -+++ acpica-unix-20200214/source/compiler/dtsubtable.c +--- acpica-unix2-20200528.orig/source/compiler/dtsubtable.c ++++ acpica-unix2-20200528/source/compiler/dtsubtable.c @@ -378,6 +378,21 @@ DtSetSubtableLength ( return; } @@ -2871,10 +2871,10 @@ Index: acpica-unix-20200214/source/compiler/dtsubtable.c + Subtable->SizeOfLengthField); + } } -Index: acpica-unix-20200214/source/compiler/dttable1.c +Index: acpica-unix2-20200528/source/compiler/dttable1.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/dttable1.c -+++ acpica-unix-20200214/source/compiler/dttable1.c +--- acpica-unix2-20200528.orig/source/compiler/dttable1.c ++++ acpica-unix2-20200528/source/compiler/dttable1.c @@ -281,6 +281,8 @@ DtCompileCsrt ( DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 DescriptorCount; @@ -3246,10 +3246,10 @@ Index: acpica-unix-20200214/source/compiler/dttable1.c return (AE_OK); } -Index: acpica-unix-20200214/source/compiler/dttable2.c +Index: acpica-unix2-20200528/source/compiler/dttable2.c =================================================================== ---- acpica-unix-20200214.orig/source/compiler/dttable2.c -+++ acpica-unix-20200214/source/compiler/dttable2.c +--- acpica-unix2-20200528.orig/source/compiler/dttable2.c ++++ acpica-unix2-20200528/source/compiler/dttable2.c @@ -345,7 +345,7 @@ DtCompileMpst ( DtPushSubtable (Subtable); @@ -3442,10 +3442,10 @@ Index: acpica-unix-20200214/source/compiler/dttable2.c ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); -Index: acpica-unix-20200214/source/components/disassembler/dmbuffer.c +Index: acpica-unix2-20200528/source/components/disassembler/dmbuffer.c =================================================================== ---- acpica-unix-20200214.orig/source/components/disassembler/dmbuffer.c -+++ acpica-unix-20200214/source/components/disassembler/dmbuffer.c +--- acpica-unix2-20200528.orig/source/components/disassembler/dmbuffer.c ++++ acpica-unix2-20200528/source/components/disassembler/dmbuffer.c @@ -204,7 +204,7 @@ AcpiDmByteList ( @@ -3455,7 +3455,7 @@ Index: acpica-unix-20200214/source/components/disassembler/dmbuffer.c /* * The byte list belongs to a buffer, and can be produced by either -@@ -304,7 +304,8 @@ AcpiDmIsUuidBuffer ( +@@ -308,7 +308,8 @@ AcpiDmIsUuidBuffer ( /* Extract the byte list info */ ByteData = NextOp->Named.Data; @@ -3465,7 +3465,7 @@ Index: acpica-unix-20200214/source/components/disassembler/dmbuffer.c /* Byte count must be exactly 16 */ -@@ -424,7 +425,8 @@ AcpiDmIsUnicodeBuffer ( +@@ -432,7 +433,8 @@ AcpiDmIsUnicodeBuffer ( /* Extract the byte list info */ ByteData = NextOp->Named.Data; @@ -3475,7 +3475,7 @@ Index: acpica-unix-20200214/source/components/disassembler/dmbuffer.c WordCount = ACPI_DIV_2 (ByteCount); /* -@@ -852,19 +854,22 @@ AcpiDmUnicode ( +@@ -869,19 +871,22 @@ AcpiDmUnicode ( UINT32 WordCount; UINT32 i; int OutputValue; @@ -3500,7 +3500,7 @@ Index: acpica-unix-20200214/source/components/disassembler/dmbuffer.c /* Handle values that must be escaped */ -@@ -973,16 +978,18 @@ AcpiDmCheckForHardwareId ( +@@ -990,16 +995,18 @@ AcpiDmCheckForHardwareId ( ACPI_PARSE_OBJECT *Op) { UINT32 Name; @@ -3521,10 +3521,10 @@ Index: acpica-unix-20200214/source/components/disassembler/dmbuffer.c NextOp = AcpiPsGetDepthNext (NULL, Op); if (!NextOp) -Index: acpica-unix-20200214/source/components/disassembler/dmopcode.c +Index: acpica-unix2-20200528/source/components/disassembler/dmopcode.c =================================================================== ---- acpica-unix-20200214.orig/source/components/disassembler/dmopcode.c -+++ acpica-unix-20200214/source/components/disassembler/dmopcode.c +--- acpica-unix2-20200528.orig/source/components/disassembler/dmopcode.c ++++ acpica-unix2-20200528/source/components/disassembler/dmopcode.c @@ -244,6 +244,7 @@ AcpiDmPredefinedDescription ( char *NameString; int LastCharIsDigit; @@ -3595,10 +3595,10 @@ Index: acpica-unix-20200214/source/components/disassembler/dmopcode.c Info->Level += 1; Info->MappingOp = Op; -Index: acpica-unix-20200214/source/components/disassembler/dmresrcl.c +Index: acpica-unix2-20200528/source/components/disassembler/dmresrcl.c =================================================================== ---- acpica-unix-20200214.orig/source/components/disassembler/dmresrcl.c -+++ acpica-unix-20200214/source/components/disassembler/dmresrcl.c +--- acpica-unix2-20200528.orig/source/components/disassembler/dmresrcl.c ++++ acpica-unix2-20200528/source/components/disassembler/dmresrcl.c @@ -141,7 +141,8 @@ AcpiDmMemoryFields ( UINT32 Level) { @@ -3747,10 +3747,10 @@ Index: acpica-unix-20200214/source/components/disassembler/dmresrcl.c } AcpiDmIndent (Level); -Index: acpica-unix-20200214/source/components/disassembler/dmresrcl2.c +Index: acpica-unix2-20200528/source/components/disassembler/dmresrcl2.c =================================================================== ---- acpica-unix-20200214.orig/source/components/disassembler/dmresrcl2.c -+++ acpica-unix-20200214/source/components/disassembler/dmresrcl2.c +--- acpica-unix2-20200528.orig/source/components/disassembler/dmresrcl2.c ++++ acpica-unix2-20200528/source/components/disassembler/dmresrcl2.c @@ -191,22 +191,24 @@ AcpiDmGpioCommon ( char *DeviceName = NULL; UINT32 PinCount; @@ -3974,10 +3974,10 @@ Index: acpica-unix-20200214/source/components/disassembler/dmresrcl2.c DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); -Index: acpica-unix-20200214/source/components/disassembler/dmresrcs.c +Index: acpica-unix2-20200528/source/components/disassembler/dmresrcs.c =================================================================== ---- acpica-unix-20200214.orig/source/components/disassembler/dmresrcs.c -+++ acpica-unix-20200214/source/components/disassembler/dmresrcs.c +--- acpica-unix2-20200528.orig/source/components/disassembler/dmresrcs.c ++++ acpica-unix2-20200528/source/components/disassembler/dmresrcs.c @@ -72,6 +72,7 @@ AcpiDmIrqDescriptor ( UINT32 Length, UINT32 Level) @@ -4034,11 +4034,11 @@ Index: acpica-unix-20200214/source/components/disassembler/dmresrcs.c AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->FixedIo.AddressLength, "Length"); -Index: acpica-unix-20200214/source/components/dispatcher/dsfield.c +Index: acpica-unix2-20200528/source/components/dispatcher/dsfield.c =================================================================== ---- acpica-unix-20200214.orig/source/components/dispatcher/dsfield.c -+++ acpica-unix-20200214/source/components/dispatcher/dsfield.c -@@ -324,6 +324,7 @@ AcpiDsGetFieldNames ( +--- acpica-unix2-20200528.orig/source/components/dispatcher/dsfield.c ++++ acpica-unix2-20200528/source/components/dispatcher/dsfield.c +@@ -329,6 +329,7 @@ AcpiDsGetFieldNames ( ACPI_STATUS Status; UINT64 Position; ACPI_PARSE_OBJECT *Child; @@ -4046,7 +4046,7 @@ Index: acpica-unix-20200214/source/components/dispatcher/dsfield.c #ifdef ACPI_EXEC_APP ACPI_OPERAND_OBJECT *ResultDesc; -@@ -437,10 +438,17 @@ AcpiDsGetFieldNames ( +@@ -442,10 +443,17 @@ AcpiDsGetFieldNames ( /* Lookup the name, it should already exist */ @@ -4064,7 +4064,7 @@ Index: acpica-unix-20200214/source/components/dispatcher/dsfield.c if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, -@@ -689,9 +697,17 @@ AcpiDsInitFieldObjects ( +@@ -703,9 +711,17 @@ AcpiDsInitFieldObjects ( */ if (Arg->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP) { @@ -4082,10 +4082,10 @@ Index: acpica-unix-20200214/source/components/dispatcher/dsfield.c if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, -Index: acpica-unix-20200214/source/components/events/evgpeblk.c +Index: acpica-unix2-20200528/source/components/events/evgpeblk.c =================================================================== ---- acpica-unix-20200214.orig/source/components/events/evgpeblk.c -+++ acpica-unix-20200214/source/components/events/evgpeblk.c +--- acpica-unix2-20200528.orig/source/components/events/evgpeblk.c ++++ acpica-unix2-20200528/source/components/events/evgpeblk.c @@ -380,6 +380,7 @@ AcpiEvCreateGpeBlock ( ACPI_STATUS Status; ACPI_GPE_BLOCK_INFO *GpeBlock; @@ -4118,10 +4118,10 @@ Index: acpica-unix-20200214/source/components/events/evgpeblk.c InterruptNumber == AcpiGbl_FADT.SciInterrupt ? " (SCI)" : "")); /* Update global count of currently available GPEs */ -Index: acpica-unix-20200214/source/components/hardware/hwregs.c +Index: acpica-unix2-20200528/source/components/hardware/hwregs.c =================================================================== ---- acpica-unix-20200214.orig/source/components/hardware/hwregs.c -+++ acpica-unix-20200214/source/components/hardware/hwregs.c +--- acpica-unix2-20200528.orig/source/components/hardware/hwregs.c ++++ acpica-unix2-20200528/source/components/hardware/hwregs.c @@ -197,7 +197,7 @@ AcpiHwValidateRegister ( * Address must not be null. A null address also indicates an optional * ACPI register that is not supported, so no error message. @@ -4131,10 +4131,10 @@ Index: acpica-unix-20200214/source/components/hardware/hwregs.c if (!(*Address)) { return (AE_BAD_ADDRESS); -Index: acpica-unix-20200214/source/components/hardware/hwvalid.c +Index: acpica-unix2-20200528/source/components/hardware/hwvalid.c =================================================================== ---- acpica-unix-20200214.orig/source/components/hardware/hwvalid.c -+++ acpica-unix-20200214/source/components/hardware/hwvalid.c +--- acpica-unix2-20200528.orig/source/components/hardware/hwvalid.c ++++ acpica-unix2-20200528/source/components/hardware/hwvalid.c @@ -135,6 +135,8 @@ AcpiHwValidateIoRequest ( UINT32 ByteWidth; ACPI_IO_ADDRESS LastAddress; @@ -4156,10 +4156,10 @@ Index: acpica-unix-20200214/source/components/hardware/hwvalid.c { ACPI_ERROR ((AE_INFO, "Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X", -Index: acpica-unix-20200214/source/components/namespace/nsaccess.c +Index: acpica-unix2-20200528/source/components/namespace/nsaccess.c =================================================================== ---- acpica-unix-20200214.orig/source/components/namespace/nsaccess.c -+++ acpica-unix-20200214/source/components/namespace/nsaccess.c +--- acpica-unix2-20200528.orig/source/components/namespace/nsaccess.c ++++ acpica-unix2-20200528/source/components/namespace/nsaccess.c @@ -349,6 +349,7 @@ AcpiNsLookup ( UINT32 SearchParentFlag = ACPI_NS_SEARCH_PARENT; UINT32 LocalFlags; @@ -4180,10 +4180,10 @@ Index: acpica-unix-20200214/source/components/namespace/nsaccess.c AcpiUtGetTypeName (ThisNode->Type), AcpiUtGetTypeName (TypeToCheckFor))); } -Index: acpica-unix-20200214/source/components/namespace/nsparse.c +Index: acpica-unix2-20200528/source/components/namespace/nsparse.c =================================================================== ---- acpica-unix-20200214.orig/source/components/namespace/nsparse.c -+++ acpica-unix-20200214/source/components/namespace/nsparse.c +--- acpica-unix2-20200528.orig/source/components/namespace/nsparse.c ++++ acpica-unix2-20200528/source/components/namespace/nsparse.c @@ -216,13 +216,14 @@ AcpiNsOneCompleteParse ( /* Table must consist of at least a complete header */ @@ -4201,10 +4201,10 @@ Index: acpica-unix-20200214/source/components/namespace/nsparse.c Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_FAILURE (Status)) -Index: acpica-unix-20200214/source/components/tables/tbdata.c +Index: acpica-unix2-20200528/source/components/tables/tbdata.c =================================================================== ---- acpica-unix-20200214.orig/source/components/tables/tbdata.c -+++ acpica-unix-20200214/source/components/tables/tbdata.c +--- acpica-unix2-20200528.orig/source/components/tables/tbdata.c ++++ acpica-unix2-20200528/source/components/tables/tbdata.c @@ -552,6 +552,7 @@ AcpiTbVerifyTempTable ( UINT32 *TableIndex) { @@ -4223,10 +4223,10 @@ Index: acpica-unix-20200214/source/components/tables/tbdata.c if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, AE_NO_MEMORY, -Index: acpica-unix-20200214/source/components/tables/tbfadt.c +Index: acpica-unix2-20200528/source/components/tables/tbfadt.c =================================================================== ---- acpica-unix-20200214.orig/source/components/tables/tbfadt.c -+++ acpica-unix-20200214/source/components/tables/tbfadt.c +--- acpica-unix2-20200528.orig/source/components/tables/tbfadt.c ++++ acpica-unix2-20200528/source/components/tables/tbfadt.c @@ -424,18 +424,20 @@ AcpiTbCreateLocalFadt ( ACPI_TABLE_HEADER *Table, UINT32 Length) @@ -4338,10 +4338,10 @@ Index: acpica-unix-20200214/source/components/tables/tbfadt.c "PmRegisters", 0); } } -Index: acpica-unix-20200214/source/components/tables/tbfind.c +Index: acpica-unix2-20200528/source/components/tables/tbfind.c =================================================================== ---- acpica-unix-20200214.orig/source/components/tables/tbfind.c -+++ acpica-unix-20200214/source/components/tables/tbfind.c +--- acpica-unix2-20200528.orig/source/components/tables/tbfind.c ++++ acpica-unix2-20200528/source/components/tables/tbfind.c @@ -108,8 +108,11 @@ AcpiTbFindTable ( (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) @@ -4355,10 +4355,10 @@ Index: acpica-unix-20200214/source/components/tables/tbfind.c { /* Not the requested table */ -Index: acpica-unix-20200214/source/components/tables/tbprint.c +Index: acpica-unix2-20200528/source/components/tables/tbprint.c =================================================================== ---- acpica-unix-20200214.orig/source/components/tables/tbprint.c -+++ acpica-unix-20200214/source/components/tables/tbprint.c +--- acpica-unix2-20200528.orig/source/components/tables/tbprint.c ++++ acpica-unix2-20200528/source/components/tables/tbprint.c @@ -143,15 +143,18 @@ AcpiTbPrintTableHeader ( ACPI_TABLE_HEADER *Header) { @@ -4400,10 +4400,10 @@ Index: acpica-unix-20200214/source/components/tables/tbprint.c } } -Index: acpica-unix-20200214/source/components/tables/tbutils.c +Index: acpica-unix2-20200528/source/components/tables/tbutils.c =================================================================== ---- acpica-unix-20200214.orig/source/components/tables/tbutils.c -+++ acpica-unix-20200214/source/components/tables/tbutils.c +--- acpica-unix2-20200528.orig/source/components/tables/tbutils.c ++++ acpica-unix2-20200528/source/components/tables/tbutils.c @@ -238,7 +238,7 @@ AcpiTbGetRootTableEntry ( * 64-bit platform, XSDT: Move (unaligned) 64-bit to local, * return 64-bit @@ -4463,10 +4463,10 @@ Index: acpica-unix-20200214/source/components/tables/tbutils.c { AcpiGbl_FadtIndex = TableIndex; AcpiTbParseFadt (); -Index: acpica-unix-20200214/source/components/tables/tbxface.c +Index: acpica-unix2-20200528/source/components/tables/tbxface.c =================================================================== ---- acpica-unix-20200214.orig/source/components/tables/tbxface.c -+++ acpica-unix-20200214/source/components/tables/tbxface.c +--- acpica-unix2-20200528.orig/source/components/tables/tbxface.c ++++ acpica-unix2-20200528/source/components/tables/tbxface.c @@ -293,8 +293,11 @@ AcpiGetTableHeader ( for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) @@ -4480,10 +4480,10 @@ Index: acpica-unix-20200214/source/components/tables/tbxface.c { continue; } -Index: acpica-unix-20200214/source/components/tables/tbxfload.c +Index: acpica-unix2-20200528/source/components/tables/tbxfload.c =================================================================== ---- acpica-unix-20200214.orig/source/components/tables/tbxfload.c -+++ acpica-unix-20200214/source/components/tables/tbxfload.c +--- acpica-unix2-20200528.orig/source/components/tables/tbxfload.c ++++ acpica-unix2-20200528/source/components/tables/tbxfload.c @@ -153,6 +153,7 @@ AcpiTbLoadNamespace ( ACPI_TABLE_DESC *Table; UINT32 TablesLoaded = 0; @@ -4503,10 +4503,10 @@ Index: acpica-unix-20200214/source/components/tables/tbxfload.c ACPI_FAILURE (AcpiTbValidateTable (Table))) { Status = AE_NO_ACPI_TABLES; -Index: acpica-unix-20200214/source/tools/acpiexec/aetables.c +Index: acpica-unix2-20200528/source/tools/acpiexec/aetables.c =================================================================== ---- acpica-unix-20200214.orig/source/tools/acpiexec/aetables.c -+++ acpica-unix-20200214/source/tools/acpiexec/aetables.c +--- acpica-unix2-20200528.orig/source/tools/acpiexec/aetables.c ++++ acpica-unix2-20200528/source/tools/acpiexec/aetables.c @@ -146,21 +146,25 @@ AeInitializeTableHeader ( char *Signature, UINT32 Length) @@ -4658,10 +4658,10 @@ Index: acpica-unix-20200214/source/tools/acpiexec/aetables.c } return (AE_OK); -Index: acpica-unix-20200214/source/common/dmswitch.c +Index: acpica-unix2-20200528/source/common/dmswitch.c =================================================================== ---- acpica-unix-20200214.orig/source/common/dmswitch.c -+++ acpica-unix-20200214/source/common/dmswitch.c +--- acpica-unix2-20200528.orig/source/common/dmswitch.c ++++ acpica-unix2-20200528/source/common/dmswitch.c @@ -88,13 +88,15 @@ AcpiDmProcessSwitch ( ACPI_PARSE_OBJECT_LIST *Current; ACPI_PARSE_OBJECT_LIST *Previous; diff --git a/f23-harden.patch b/f23-harden.patch index eacb454..5e80d46 100644 --- a/f23-harden.patch +++ b/f23-harden.patch @@ -8,11 +8,11 @@ From: Al Stone generate/unix/iasl/Makefile | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) -Index: acpica-unix-20200214/generate/unix/Makefile.config +Index: acpica-unix2-20200528/generate/unix/Makefile.config =================================================================== ---- acpica-unix-20200214.orig/generate/unix/Makefile.config -+++ acpica-unix-20200214/generate/unix/Makefile.config -@@ -190,6 +190,8 @@ ifneq ($(NOFORTIFY),TRUE) +--- acpica-unix2-20200528.orig/generate/unix/Makefile.config ++++ acpica-unix2-20200528/generate/unix/Makefile.config +@@ -189,6 +189,8 @@ ifneq ($(NOFORTIFY),TRUE) OPT_CFLAGS += -D_FORTIFY_SOURCE=2 endif @@ -21,10 +21,10 @@ Index: acpica-unix-20200214/generate/unix/Makefile.config CFLAGS += \ -D$(ACPI_HOST)\ -D_GNU_SOURCE\ -Index: acpica-unix-20200214/generate/unix/iasl/Makefile +Index: acpica-unix2-20200528/generate/unix/iasl/Makefile =================================================================== ---- acpica-unix-20200214.orig/generate/unix/iasl/Makefile -+++ acpica-unix-20200214/generate/unix/iasl/Makefile +--- acpica-unix2-20200528.orig/generate/unix/iasl/Makefile ++++ acpica-unix2-20200528/generate/unix/iasl/Makefile @@ -358,34 +358,35 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa # Cannot use the common compile warning flags since the C files are created # by the utilities above and they are not necessarily ANSI C, etc. diff --git a/facp.patch b/facp.patch index 8b6bef7..a8e9fe9 100644 --- a/facp.patch +++ b/facp.patch @@ -13,11 +13,11 @@ Signed-off-by: Al Stone source/common/dmtbinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/source/common/dmtbinfo.c b/source/common/dmtbinfo.c -index 2e1c54f84..07d3ce099 100644 ---- a/source/common/dmtbinfo.c -+++ b/source/common/dmtbinfo.c -@@ -292,7 +292,7 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[] = +Index: acpica-unix2-20200528/source/common/dmtbinfo.c +=================================================================== +--- acpica-unix2-20200528.orig/source/common/dmtbinfo.c ++++ acpica-unix2-20200528/source/common/dmtbinfo.c +@@ -184,7 +184,7 @@ ACPI_DMTABLE_INFO AcpiDmTableI ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[] = { {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Facs), "FACS Address", 0}, @@ -26,6 +26,3 @@ index 2e1c54f84..07d3ce099 100644 {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Model), "Model", 0}, {ACPI_DMT_FADTPM, ACPI_FADT_OFFSET (PreferredProfile), "PM Profile", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (SciInterrupt), "SCI Interrupt", 0}, --- -2.20.1 - diff --git a/int-format.patch b/int-format.patch index bf0b05c..5cbb5c3 100644 --- a/int-format.patch +++ b/int-format.patch @@ -21,11 +21,11 @@ From: Al Stone source/components/utilities/utownerid.c | 2 +- 18 files changed, 28 insertions(+), 28 deletions(-) -Index: acpica-unix-20191018/source/compiler/aslerror.c +Index: acpica-unix2-20200528/source/compiler/aslerror.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslerror.c -+++ acpica-unix-20191018/source/compiler/aslerror.c -@@ -898,7 +898,7 @@ AslLogNewError ( +--- acpica-unix2-20200528.orig/source/compiler/aslerror.c ++++ acpica-unix2-20200528/source/compiler/aslerror.c +@@ -917,7 +917,7 @@ AslLogNewError ( AslGbl_ExceptionCount[ModifiedLevel]++; if (!AslGbl_IgnoreErrors && AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT) { @@ -34,10 +34,10 @@ Index: acpica-unix-20191018/source/compiler/aslerror.c AslGbl_SourceLine = 0; AslGbl_NextError = AslGbl_ErrorLog; -Index: acpica-unix-20191018/source/compiler/aslopt.c +Index: acpica-unix2-20200528/source/compiler/aslopt.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslopt.c -+++ acpica-unix-20191018/source/compiler/aslopt.c +--- acpica-unix2-20200528.orig/source/compiler/aslopt.c ++++ acpica-unix2-20200528/source/compiler/aslopt.c @@ -583,7 +583,7 @@ OptOptimizeNamePath ( } @@ -47,10 +47,10 @@ Index: acpica-unix-20191018/source/compiler/aslopt.c Op->Asl.LogicalLineNumber, AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode), AcpiPsGetOpcodeName (Op->Common.AmlOpcode))); -Index: acpica-unix-20191018/source/compiler/aslprepkg.c +Index: acpica-unix2-20200528/source/compiler/aslprepkg.c =================================================================== ---- acpica-unix-20191018.orig/source/compiler/aslprepkg.c -+++ acpica-unix-20191018/source/compiler/aslprepkg.c +--- acpica-unix2-20200528.orig/source/compiler/aslprepkg.c ++++ acpica-unix2-20200528/source/compiler/aslprepkg.c @@ -309,7 +309,7 @@ ApCheckPackage ( if (Count & 1) @@ -60,10 +60,10 @@ Index: acpica-unix-20191018/source/compiler/aslprepkg.c Predefined->Info.Name, Count); AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH, -Index: acpica-unix-20191018/source/components/debugger/dbexec.c +Index: acpica-unix2-20200528/source/components/debugger/dbexec.c =================================================================== ---- acpica-unix-20191018.orig/source/components/debugger/dbexec.c -+++ acpica-unix-20191018/source/components/debugger/dbexec.c +--- acpica-unix2-20200528.orig/source/components/debugger/dbexec.c ++++ acpica-unix2-20200528/source/components/debugger/dbexec.c @@ -230,7 +230,7 @@ AcpiDbExecuteMethod ( ACPI_ERROR ((AE_INFO, "Possible buffer overflow within AML Debugger " @@ -73,10 +73,10 @@ Index: acpica-unix-20191018/source/components/debugger/dbexec.c } } -Index: acpica-unix-20191018/source/components/dispatcher/dsmthdat.c +Index: acpica-unix2-20200528/source/components/dispatcher/dsmthdat.c =================================================================== ---- acpica-unix-20191018.orig/source/components/dispatcher/dsmthdat.c -+++ acpica-unix-20191018/source/components/dispatcher/dsmthdat.c +--- acpica-unix2-20200528.orig/source/components/dispatcher/dsmthdat.c ++++ acpica-unix2-20200528/source/components/dispatcher/dsmthdat.c @@ -291,7 +291,7 @@ AcpiDsMethodDataGetNode ( if (Index > ACPI_METHOD_MAX_LOCAL) { @@ -95,10 +95,10 @@ Index: acpica-unix-20191018/source/components/dispatcher/dsmthdat.c Index, ACPI_METHOD_MAX_ARG)); return_ACPI_STATUS (AE_AML_INVALID_INDEX); } -Index: acpica-unix-20191018/source/components/dispatcher/dsutils.c +Index: acpica-unix2-20200528/source/components/dispatcher/dsutils.c =================================================================== ---- acpica-unix-20191018.orig/source/components/dispatcher/dsutils.c -+++ acpica-unix-20191018/source/components/dispatcher/dsutils.c +--- acpica-unix2-20200528.orig/source/components/dispatcher/dsutils.c ++++ acpica-unix2-20200528/source/components/dispatcher/dsutils.c @@ -786,7 +786,7 @@ AcpiDsCreateOperands ( } @@ -108,10 +108,10 @@ Index: acpica-unix-20191018/source/components/dispatcher/dsutils.c WalkState->NumOperands, ArgCount, Index)); /* Create the interpreter arguments, in reverse order */ -Index: acpica-unix-20191018/source/components/dispatcher/dswscope.c +Index: acpica-unix2-20200528/source/components/dispatcher/dswscope.c =================================================================== ---- acpica-unix-20191018.orig/source/components/dispatcher/dswscope.c -+++ acpica-unix-20191018/source/components/dispatcher/dswscope.c +--- acpica-unix2-20200528.orig/source/components/dispatcher/dswscope.c ++++ acpica-unix2-20200528/source/components/dispatcher/dswscope.c @@ -149,7 +149,7 @@ AcpiDsScopeStackPush ( WalkState->ScopeDepth++; @@ -130,10 +130,10 @@ Index: acpica-unix-20191018/source/components/dispatcher/dswscope.c (UINT32) WalkState->ScopeDepth, AcpiUtGetNodeName (ScopeInfo->Scope.Node), AcpiUtGetTypeName (ScopeInfo->Common.Value))); -Index: acpica-unix-20191018/source/components/events/evgpe.c +Index: acpica-unix2-20200528/source/components/events/evgpe.c =================================================================== ---- acpica-unix-20191018.orig/source/components/events/evgpe.c -+++ acpica-unix-20191018/source/components/events/evgpe.c +--- acpica-unix2-20200528.orig/source/components/events/evgpe.c ++++ acpica-unix2-20200528/source/components/events/evgpe.c @@ -488,7 +488,7 @@ AcpiEvGpeDetect ( "Ignore disabled registers for GPE %02X-%02X: " "RunEnable=%02X, WakeEnable=%02X\n", @@ -143,10 +143,10 @@ Index: acpica-unix-20191018/source/components/events/evgpe.c GpeRegisterInfo->EnableForRun, GpeRegisterInfo->EnableForWake)); continue; -Index: acpica-unix-20191018/source/components/executer/exdump.c +Index: acpica-unix2-20200528/source/components/executer/exdump.c =================================================================== ---- acpica-unix-20191018.orig/source/components/executer/exdump.c -+++ acpica-unix-20191018/source/components/executer/exdump.c +--- acpica-unix2-20200528.orig/source/components/executer/exdump.c ++++ acpica-unix2-20200528/source/components/executer/exdump.c @@ -678,7 +678,7 @@ AcpiExDumpOperand ( if (Depth > 0) { @@ -156,10 +156,10 @@ Index: acpica-unix-20191018/source/components/executer/exdump.c } else { -Index: acpica-unix-20191018/source/components/executer/exfldio.c +Index: acpica-unix2-20200528/source/components/executer/exfldio.c =================================================================== ---- acpica-unix-20191018.orig/source/components/executer/exfldio.c -+++ acpica-unix-20191018/source/components/executer/exfldio.c +--- acpica-unix2-20200528.orig/source/components/executer/exfldio.c ++++ acpica-unix2-20200528/source/components/executer/exfldio.c @@ -681,8 +681,8 @@ AcpiExWriteWithUpdateRule ( ACPI_ERROR ((AE_INFO, @@ -171,10 +171,10 @@ Index: acpica-unix-20191018/source/components/executer/exfldio.c return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } } -Index: acpica-unix-20191018/source/components/executer/exnames.c +Index: acpica-unix2-20200528/source/components/executer/exnames.c =================================================================== ---- acpica-unix-20191018.orig/source/components/executer/exnames.c -+++ acpica-unix-20191018/source/components/executer/exnames.c +--- acpica-unix2-20200528.orig/source/components/executer/exnames.c ++++ acpica-unix2-20200528/source/components/executer/exnames.c @@ -237,7 +237,7 @@ AcpiExNameSegment ( */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, @@ -193,10 +193,10 @@ Index: acpica-unix-20191018/source/components/executer/exnames.c } *InAmlAddress = ACPI_CAST_PTR (UINT8, AmlAddress); -Index: acpica-unix-20191018/source/components/hardware/hwregs.c +Index: acpica-unix2-20200528/source/components/hardware/hwregs.c =================================================================== ---- acpica-unix-20191018.orig/source/components/hardware/hwregs.c -+++ acpica-unix-20191018/source/components/hardware/hwregs.c +--- acpica-unix2-20200528.orig/source/components/hardware/hwregs.c ++++ acpica-unix2-20200528/source/components/hardware/hwregs.c @@ -460,7 +460,7 @@ AcpiHwClearAcpiStatus ( @@ -206,10 +206,10 @@ Index: acpica-unix-20191018/source/components/hardware/hwregs.c ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address))); LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock); -Index: acpica-unix-20191018/source/components/tables/tbfadt.c +Index: acpica-unix2-20200528/source/components/tables/tbfadt.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbfadt.c -+++ acpica-unix-20191018/source/components/tables/tbfadt.c +--- acpica-unix2-20200528.orig/source/components/tables/tbfadt.c ++++ acpica-unix2-20200528/source/components/tables/tbfadt.c @@ -233,7 +233,7 @@ AcpiTbInitGenericAddress ( if (!(Flags & ACPI_FADT_GPE_REGISTER)) { @@ -237,10 +237,10 @@ Index: acpica-unix-20191018/source/components/tables/tbfadt.c Name, Address32, ACPI_FORMAT_UINT64 (Address64->Address), AcpiGbl_Use32BitFadtAddresses ? 32 : 64)); -Index: acpica-unix-20191018/source/components/tables/tbxfroot.c +Index: acpica-unix2-20200528/source/components/tables/tbxfroot.c =================================================================== ---- acpica-unix-20191018.orig/source/components/tables/tbxfroot.c -+++ acpica-unix-20191018/source/components/tables/tbxfroot.c +--- acpica-unix2-20200528.orig/source/components/tables/tbxfroot.c ++++ acpica-unix2-20200528/source/components/tables/tbxfroot.c @@ -177,7 +177,7 @@ AcpiFindRootPointer ( { ACPI_ERROR ((AE_INFO, @@ -268,10 +268,10 @@ Index: acpica-unix-20191018/source/components/tables/tbxfroot.c return_ACPI_STATUS (AE_NO_MEMORY); } -Index: acpica-unix-20191018/source/components/utilities/utownerid.c +Index: acpica-unix2-20200528/source/components/utilities/utownerid.c =================================================================== ---- acpica-unix-20191018.orig/source/components/utilities/utownerid.c -+++ acpica-unix-20191018/source/components/utilities/utownerid.c +--- acpica-unix2-20200528.orig/source/components/utilities/utownerid.c ++++ acpica-unix2-20200528/source/components/utilities/utownerid.c @@ -237,7 +237,7 @@ AcpiUtReleaseOwnerId ( else { diff --git a/sources b/sources index ef5e62e..400e9a2 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20200326.tar.gz) = 5028fae5c976593b15cf429e62de30afef3af11ddac9351d9ec0de789d495b553d459e676bc4d3e862edc0c536487a7ee63a137d95c5d1783e6a17ab9114c202 -SHA512 (acpitests-unix-20200326.tar.gz) = 332b4ed016cee48662a5f4572e6d170461f02ee1386109a3970fbe8d104f2a2b14c19235ea43ae9b26e8faf9ef9597cb3d2148e498741361aca62978d0b62189 +SHA512 (acpica-unix2-20200430.tar.gz) = e6af40eba35ae2cee976267c1cccbdbe70ef038e217ffd4335585d0ffba323b50703546cb0b32d10ffc90ba7f90f6df9a34170155d7256b9fffdd7859b40cd11 +SHA512 (acpitests-unix-20200430.tar.gz) = f0c660f1dda45b89633da47d23b3c13b3865414bfa8b12af137d7d4de0e7ccb690aeee9c5fbe480801b5dc921c96af80054608d381a47637893d82d3a003467d From 75b40f8005504c2a9f7ab0e91aaa192e03fe8d65 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 11:42:42 +0000 Subject: [PATCH 23/82] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- acpica-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index 4868994..10cfdeb 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools Version: 20200430 -Release: 1%{?dist} +Release: 2%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables License: GPLv2 @@ -241,6 +241,9 @@ fi %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 20200430-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Thu Jun 8 2020 Al Stone - 202004306-1 - Update to 202004306 source tree, including patch refreshes From ed7c04b852aeebb5b1adbacda0b6a9d9ea6fa19c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 31 Jul 2020 23:48:13 +0000 Subject: [PATCH 24/82] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- acpica-tools.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index 10cfdeb..6c5de80 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools Version: 20200430 -Release: 2%{?dist} +Release: 3%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables License: GPLv2 @@ -241,6 +241,10 @@ fi %changelog +* Fri Jul 31 2020 Fedora Release Engineering - 20200430-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 20200430-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 4188296ae35d15e002bf8ecae83f03963a71fa4d Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 13 Sep 2020 15:25:15 -0600 Subject: [PATCH 25/82] Merge in some changelog and spec file updates Signed-off-by: Al Stone --- acpica-tools.spec | 4 ++-- big-endian-v3.patch | 20 -------------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index 6c5de80..5ca9de6 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -48,7 +48,7 @@ Patch20: aslcodegen.patch Patch21: facp.patch Patch24: armv7-str-fixes.patch Patch25: dbtest.patch -#Patch27: big-endian-v3.patch +Patch27: big-endian-v3.patch BuildRequires: bison patchutils flex gcc @@ -124,7 +124,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch21 -p1 -b .facp %patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest -#%patch27 -p1 -b .big-endian-v3 +%patch27 -p1 -b .big-endian-v3 cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 diff --git a/big-endian-v3.patch b/big-endian-v3.patch index e3db4f6..93ef67d 100644 --- a/big-endian-v3.patch +++ b/big-endian-v3.patch @@ -104,26 +104,6 @@ diff -Naur acpica-unix2-20200214.orig/source/compiler/dttable2.c acpica-unix2-20 } break; -diff -Naur acpica-unix2-20200214.orig/source/compiler/aslxref.c acpica-unix2-20200214/source/compiler/aslxref.c ---- acpica-unix2-20200214.orig/source/compiler/aslxref.c 2020-02-14 10:33:53.000000000 -0700 -+++ acpica-unix2-20200214/source/compiler/aslxref.c 2020-02-26 13:21:43.973602232 -0700 -@@ -547,8 +547,14 @@ - */ - AslGbl_NsLookupCount++; - -- Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, -- ACPI_IMODE_EXECUTE, Flags, WalkState, &Node); -+ { -+ UINT32 Tmp32; -+ -+ ACPI_MOVE_32_TO_32(&Tmp32, Path); -+ -+ Status = AcpiNsLookup (WalkState->ScopeInfo, (char *)&Tmp32, ObjectType, -+ ACPI_IMODE_EXECUTE, Flags, WalkState, &Node); -+ } - if (ACPI_FAILURE (Status)) - { - if (Status == AE_NOT_FOUND) diff -Naur acpica-unix2-20200214.orig/source/compiler/aslload.c acpica-unix2-20200214/source/compiler/aslload.c --- acpica-unix2-20200214.orig/source/compiler/aslload.c 2020-02-14 10:33:53.000000000 -0700 +++ acpica-unix2-20200214/source/compiler/aslload.c 2020-02-27 13:25:19.308413494 -0700 From 19a9c691f50a09b063e35cda130e771d104a74ef Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 13 Sep 2020 15:27:09 -0600 Subject: [PATCH 26/82] Update to 2020528 upstream source Signed-off-by: Al Stone --- .gitignore | 2 ++ acpica-tools.spec | 4 ++-- sources | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 2e7eaf7..5ce6dab 100644 --- a/.gitignore +++ b/.gitignore @@ -131,3 +131,5 @@ series /acpitests-unix-20200326.tar.gz /acpica-unix2-20200430.tar.gz /acpitests-unix-20200430.tar.gz +/acpica-unix2-20200528.tar.gz +/acpitests-unix-20200528.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 5ca9de6..a0d0b26 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools -Version: 20200430 -Release: 3%{?dist} +Version: 20200528 +Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables License: GPLv2 diff --git a/sources b/sources index 400e9a2..4c6cff9 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20200430.tar.gz) = e6af40eba35ae2cee976267c1cccbdbe70ef038e217ffd4335585d0ffba323b50703546cb0b32d10ffc90ba7f90f6df9a34170155d7256b9fffdd7859b40cd11 -SHA512 (acpitests-unix-20200430.tar.gz) = f0c660f1dda45b89633da47d23b3c13b3865414bfa8b12af137d7d4de0e7ccb690aeee9c5fbe480801b5dc921c96af80054608d381a47637893d82d3a003467d +SHA512 (acpica-unix2-20200528.tar.gz) = e1a924c2e50e84deaa409da1323dec3307aefb130a8d88e5414e29999a670ba1cd63f6c3a0efdbdb3a2423d9023b5adad4d4136d8cf5bbd66affe20c747f39bb +SHA512 (acpitests-unix-20200528.tar.gz) = 9c4d25a8e2a358ee2251b47cff759a76c653cc89894fc6dc91cb765d0340f67abdee8f44b0e47397c2507ab6e10a2b40bb6169befcdd3384ff010bdbfdd58518 From 335268930f1d7dbc2caf36ddd8ca4c11cfae24d0 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 13 Sep 2020 15:30:34 -0600 Subject: [PATCH 27/82] Update to 20200717 upstream source Signed-off-by: Al Stone --- .gitignore | 2 ++ acpica-tools.spec | 2 +- sources | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5ce6dab..7997d0c 100644 --- a/.gitignore +++ b/.gitignore @@ -133,3 +133,5 @@ series /acpitests-unix-20200430.tar.gz /acpica-unix2-20200528.tar.gz /acpitests-unix-20200528.tar.gz +/acpica-unix2-20200717.tar.gz +/acpitests-unix-20200717.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index a0d0b26..1c5f6dc 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20200528 +Version: 20200717 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables diff --git a/sources b/sources index 4c6cff9..93122b8 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (acpica-unix2-20200528.tar.gz) = e1a924c2e50e84deaa409da1323dec3307aefb130a8d88e5414e29999a670ba1cd63f6c3a0efdbdb3a2423d9023b5adad4d4136d8cf5bbd66affe20c747f39bb -SHA512 (acpitests-unix-20200528.tar.gz) = 9c4d25a8e2a358ee2251b47cff759a76c653cc89894fc6dc91cb765d0340f67abdee8f44b0e47397c2507ab6e10a2b40bb6169befcdd3384ff010bdbfdd58518 +SHA512 (acpica-unix2-20200717.tar.gz) = d477911d9dded34e887f77f396d84b85334b66983d3104ba8ee0ade09186abacfceec9ecec96fa6fce886da5fe0d187c2cdeed62cca467cdae049e2fe011391a +SHA512 (acpitests-unix-20200717.tar.gz) = 02c6674cbb2d98f783f25c71b1f391713de6fb3b56e5b57de9a7ccba0927453be4db8aea513e6e7ad491fcf3a0b2c14fefe8a2b82877a2ae01ea1d7832d36844 From 02a30e0c2ee5cb59b8cefaec5b82f005e78c655d Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 13 Sep 2020 15:33:00 -0600 Subject: [PATCH 28/82] Correct bad date in changelog Signed-off-by: Al Stone --- acpica-tools.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index 1c5f6dc..a5124d0 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -248,7 +248,7 @@ fi * Mon Jul 27 2020 Fedora Release Engineering - 20200430-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild -* Thu Jun 8 2020 Al Stone - 202004306-1 +* Mon Jun 8 2020 Al Stone - 202004306-1 - Update to 202004306 source tree, including patch refreshes * Wed Apr 1 2020 Al Stone - 20200326-1 From 6337b475f00a21e629606bd28b18141d2730b05d Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 13 Sep 2020 15:49:37 -0600 Subject: [PATCH 29/82] Update expected test result Signed-off-by: Al Stone --- grammar.asl.result | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/grammar.asl.result b/grammar.asl.result index c4b9c48..19f6e2e 100644 --- a/grammar.asl.result +++ b/grammar.asl.result @@ -133,21 +133,12 @@ Warning 3038 - ^ Truncating 64-bit constant grammar.asl 1396: if (LNotEqual (Local0, 0x1234567887654321)) Warning 3038 - Truncating 64-bit constant found in 32-bit table ^ -grammar.asl 1411: Field (\_SB_.MEM.SMEM, AnyAcc, NoLock, Preserve) -Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\FLDX) - -grammar.asl 1418: Field (\_SB_.MEM.SMEM, AnyAcc, NoLock, Preserve) -Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\FLDX) - grammar.asl 1445: Name (BUFO, Buffer (32) {}) Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) grammar.asl 1448: OperationRegion (OPR2, SystemMemory, Arg0, 256) Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) -grammar.asl 1451: Field (OPR2, ByteAcc, NoLock, Preserve) -Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) - grammar.asl 1462: BankField (OPR2, BNK2, 0, ByteAcc, NoLock, Preserve) Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\OBJ2) @@ -331,9 +322,6 @@ Warning 3175 - ^ Static OperationRegion shoul grammar.asl 4693: OperationRegion (RAM, SystemMemory, 0x800000, 256) Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\XORD.TEST) -grammar.asl 4694: Field (RAM, ByteAcc, NoLock, Preserve) -Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\XORD.TEST) - grammar.asl 5022: Device (CRBF) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) @@ -343,15 +331,6 @@ Warning 3141 - ^ Missing dependency (Device object requires a grammar.asl 5117: OperationRegion (RAM, SystemMemory, Arg0, 0x100) Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) -grammar.asl 5118: Field (RAM, DwordAcc, NoLock, Preserve) -Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) - -grammar.asl 5123: Field (RAM, ByteAcc, NoLock, Preserve) -Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) - -grammar.asl 5159: Field (RAM, ByteAcc, NoLock, Preserve) -Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (\IDX4.MADM) - grammar.asl 5639: Device (EVNT) Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope) @@ -602,4 +581,4 @@ Ignoring all errors, forcing AML file generation ASL Input: grammar.asl - 323653 bytes 4818 keywords 10284 source lines AML Output: grammar.aml - 43758 bytes 4148 opcodes 670 named objects -Compilation successful. 6 Errors, 93 Warnings, 99 Remarks, 1106 Optimizations +Compilation successful. 6 Errors, 93 Warnings, 92 Remarks, 1106 Optimizations From 97b38e48de60dcda464ba13c4571a9669a887813 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sun, 13 Sep 2020 16:37:40 -0600 Subject: [PATCH 30/82] Remove faulty patch from build Signed-off-by: Al Stone --- acpica-tools.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index a5124d0..6ae42c3 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -48,7 +48,7 @@ Patch20: aslcodegen.patch Patch21: facp.patch Patch24: armv7-str-fixes.patch Patch25: dbtest.patch -Patch27: big-endian-v3.patch +#Patch27: big-endian-v3.patch BuildRequires: bison patchutils flex gcc @@ -124,7 +124,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch21 -p1 -b .facp %patch24 -p1 -b .armv7-str-fixes %patch25 -p1 -b .dbtest -%patch27 -p1 -b .big-endian-v3 +#%patch27 -p1 -b .big-endian-v3 cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 From f9e9c6154d94616f56abe71120587c8f9fd85edb Mon Sep 17 00:00:00 2001 From: Al Stone Date: Thu, 15 Oct 2020 15:21:20 -0600 Subject: [PATCH 31/82] The acpinames command has been deprecated upstream Remove the command and the man page. Functionality replacing acpinames is now found in acpiexec. Signed-off-by: Al Stone --- .gitignore | 2 + acpica-tools.spec | 183 ++++++++++++++++++++++++++++++++-------------- acpinames.1 | 49 ------------- sources | 4 +- 4 files changed, 131 insertions(+), 107 deletions(-) delete mode 100644 acpinames.1 diff --git a/.gitignore b/.gitignore index 7997d0c..9b16719 100644 --- a/.gitignore +++ b/.gitignore @@ -135,3 +135,5 @@ series /acpitests-unix-20200528.tar.gz /acpica-unix2-20200717.tar.gz /acpitests-unix-20200717.tar.gz +/acpica-unix2-20200925.tar.gz +/acpitests-unix-20200925.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 6ae42c3..ad94d67 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,5 +1,5 @@ Name: acpica-tools -Version: 20200717 +Version: 20200925 Release: 1%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables @@ -14,7 +14,6 @@ Source4: acpibin.1 Source5: acpidump.1 Source6: acpiexec.1 Source7: acpihelp.1 -Source8: acpinames.1 Source9: acpisrc.1 Source10: acpixtract.1 Source11: acpiexamples.1 @@ -24,31 +23,67 @@ Source14: converterSample.asl.result Source15: run-misc-tests.sh Source16: COPYING -Patch0: big-endian.patch -Patch1: big-endian-dmtbdump.patch -Patch2: big-endian-dmtbdump1.patch -Patch3: big-endian-dmtbdump2.patch -Patch4: big-endian-dmtbdump3.patch -Patch5: unaligned.patch -Patch6: OPT_LDFLAGS.patch -Patch7: int-format.patch -Patch8: f23-harden.patch -Patch9: template.patch -Patch10: ppc64le.patch -Patch11: arm7hl.patch -Patch12: big-endian-v2.patch -Patch13: simple-64bit.patch -Patch14: mips-be-fix.patch -Patch15: cve-2017-13693.patch -Patch16: cve-2017-13694.patch -Patch17: cve-2017-13695.patch -Patch18: str-trunc-warn.patch -Patch19: ptr-cast.patch -Patch20: aslcodegen.patch -Patch21: facp.patch -Patch24: armv7-str-fixes.patch -Patch25: dbtest.patch -#Patch27: big-endian-v3.patch +# the big-endian patch set +Patch0: 0001-Add-in-basic-infrastructure-for-big-endian-support.patch +Patch1: 0002-Modify-utility-functions-to-be-endian-agnostic.patch +Patch2: 0003-Always-display-table-header-content-in-human-readabl.patch +Patch3: 0004-Re-enable-support-for-big-endian-machines.patch +Patch4: 0005-Support-MADT-aka-APIC-in-a-big-endian-world.patch +Patch5: 0006-Support-ASF-tables-in-a-big-endian-world.patch +Patch6: 0007-Support-CPEP-tables-in-a-big-endian-world.patch +Patch7: 0008-Support-DBG2-table-in-a-big-endian-world.patch +Patch8: 0009-Support-DMAR-in-a-big-endian-world.patch +Patch9: 0010-Support-DRTM-in-a-big-endian-world.patch +Patch10: 0011-Support-EINJ-in-a-big-endian-world.patch +Patch11: 0012-Support-ERST-in-a-big-endian-world.patch +Patch12: 0013-Support-FADT-aka-FACP-in-a-big-endian-world.patch +Patch13: 0014-Support-most-FPDTs-in-a-big-endian-world.patch +Patch14: 0015-Support-GTDT-in-a-big-endian-world.patch +Patch15: 0016-Support-HEST-in-a-big-endian-world.patch +Patch16: 0017-Support-RSDT-RSD-PTR-in-a-big-endian-world.patch +Patch17: 0018-Support-XSDT-in-a-big-endian-world.patch +Patch18: 0019-Support-SRAT-in-a-big-endian-world.patch +Patch19: 0020-Support-SLIT-in-a-big-endian-world.patch +Patch20: 0021-Support-MSCT-in-a-big-endian-world.patch +Patch21: 0022-Support-MPST-in-a-big-endian-world.patch +Patch22: 0023-Support-NFIT-in-a-big-endian-world.patch +Patch23: 0024-Support-SDEV-in-a-big-endian-world.patch +Patch24: 0025-Support-HMAT-in-a-big-endian-world.patch +Patch25: 0026-Support-PDTT-in-a-big-endian-world.patch +Patch25: 0027-Support-PPTT-in-a-big-endian-world.patch +Patch27: 0028-Support-PCCT-in-a-big-endian-world.patch +Patch28: 0029-Support-WDAT-in-a-big-endian-world.patch +Patch29: 0030-Support-TCPA-in-a-big-endian-world.patch +Patch30: 0031-Support-STAO-in-a-big-endian-world.patch +Patch31: 0032-Support-SLIC-and-MSDM-in-a-big-endian-world.patch +Patch32: 0033-Support-MCFG-in-a-big-endian-world.patch +Patch33: 0034-Support-LPIT-in-a-big-endian-world.patch +Patch34: 0035-Support-PMTT-in-a-big-endian-world.patch +Patch35: 0036-Support-IORT-in-a-big-endian-world.patch +Patch36: 0037-Support-IVRS-in-a-big-endian-world.patch +Patch37: 0038-Support-TPM2-in-a-big-endian-world.patch +Patch38: 0039-Add-partial-big-endian-support-for-WPBT-tables.patch +Patch39: 0040-Support-DSDT-SSDT-in-a-big-endian-world.patch + +# other miscellaneous patch +Patch40: unaligned.patch +Patch41: OPT_LDFLAGS.patch +Patch42: int-format.patch +Patch43: f23-harden.patch +Patch44: template.patch +Patch45: ppc64le.patch +Patch46: arm7hl.patch +Patch47: simple-64bit.patch +Patch48: mips-be-fix.patch +Patch49: cve-2017-13693.patch +Patch50: cve-2017-13694.patch +Patch51: cve-2017-13695.patch +Patch52: str-trunc-warn.patch +Patch53: ptr-cast.patch +Patch54: aslcodegen.patch +Patch55: facp.patch +Patch56: armv7-str-fixes.patch +Patch57: dbtest.patch BuildRequires: bison patchutils flex gcc @@ -86,7 +121,6 @@ are installed: -- acpidump: write out the current contents of ACPI tables -- acpiexec: simulate AML execution in order to debug method definitions -- acpihelp: display help messages describing ASL keywords and op-codes - -- acpinames: display complete ACPI name space from input AML -- acpisrc: manipulate the ACPICA source tree and format source files for specific environments -- acpixtract: extract binary ACPI tables from acpidump output (see @@ -98,33 +132,65 @@ This version of the tools is being released under GPLv2 license. %setup -q -n acpica-unix2-%{version} gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - -%patch0 -p1 -b .big-endian -%patch1 -p1 -b .big-endian-dmtbdump -%patch2 -p1 -b .big-endian-dmtbdump1 -%patch3 -p1 -b .big-endian-dmtbdump2 -%patch4 -p1 -b .big-endian-dmtbdump3 -%patch5 -p1 -b .unaligned -%patch6 -p1 -b .OPT_LDFLAGS -%patch7 -p1 -b .int-format -%patch8 -p1 -b .f23-harden -# do not preserve a backup for this patch; it alters the results -# of the template test case and forces it to fail -%patch9 -p1 -%patch10 -p1 -b .ppc64le -%patch11 -p1 -b .arm7hl -%patch12 -p1 -b .big-endian-v2 -%patch13 -p1 -b .simple-64bit -%patch14 -p1 -b .mips-be-fix -%patch15 -p1 -b .cve-2017-13693 -%patch16 -p1 -b .cve-2017-13694 -%patch17 -p1 -b .cve-2017-13695 -%patch18 -p1 -b .str-trunc-warn -%patch19 -p1 -b .ptr-cast -%patch20 -p1 -b .aslcodegen -%patch21 -p1 -b .facp -%patch24 -p1 -b .armv7-str-fixes -%patch25 -p1 -b .dbtest -#%patch27 -p1 -b .big-endian-v3 +# apply all the patches +%patch0 +%patch1 +%patch2 +%patch3 +%patch4 +%patch5 +%patch6 +%patch7 +%patch8 +%patch9 +%patch10 +%patch11 +%patch12 +%patch13 +%patch14 +%patch15 +%patch16 +%patch17 +%patch18 +%patch19 +%patch20 +%patch21 +%patch22 +%patch23 +%patch24 +%patch25 +%patch26 +%patch27 +%patch28 +%patch29 +%patch30 +%patch31 +%patch32 +%patch33 +%patch34 +%patch35 +%patch36 +%patch37 +%patch38 +%patch39 +%patch40 +%patch41 +%patch42 +%patch43 +%patch44 +%patch45 +%patch46 +%patch47 +%patch48 +%patch49 +%patch50 +%patch51 +%patch52 +%patch53 +%patch54 +%patch55 +%patch56 +%patch57 cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -132,7 +198,6 @@ cp -p %{SOURCE4} acpibin.1 cp -p %{SOURCE5} acpidump.1 cp -p %{SOURCE6} acpiexec.1 cp -p %{SOURCE7} acpihelp.1 -cp -p %{SOURCE8} acpinames.1 cp -p %{SOURCE9} acpisrc.1 cp -p %{SOURCE10} acpixtract.1 cp -p %{SOURCE11} acpiexamples.1 @@ -241,6 +306,12 @@ fi %changelog +* Thu Oct 15 2020 Al Stone - 20200925-1 +- Update to 20200925 source tree +- Completely revamp the old big-endian patches (maintainability was the goal) +- The acpinames command has been deprecated upstrean; acpiexec provides + replacement functionality + * Fri Jul 31 2020 Fedora Release Engineering - 20200430-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/acpinames.1 b/acpinames.1 deleted file mode 100644 index 315d235..0000000 --- a/acpinames.1 +++ /dev/null @@ -1,49 +0,0 @@ -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH ACPINAMES 1 "January 23, 2013" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -acpinames \- ACPI name space dump utility -.SH SYNOPSIS -.B acpinames -.RI