Update to 20191018 upstream source with refreshed patches
Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
0acf62d4a9
commit
d7f8eec1b2
2
.gitignore
vendored
2
.gitignore
vendored
@ -119,3 +119,5 @@ series
|
|||||||
/acpitests-unix-20190703.tar.gz
|
/acpitests-unix-20190703.tar.gz
|
||||||
/acpica-unix2-20190816.tar.gz
|
/acpica-unix2-20190816.tar.gz
|
||||||
/acpitests-unix-20190816.tar.gz
|
/acpitests-unix-20190816.tar.gz
|
||||||
|
/acpica-unix2-20191018.tar.gz
|
||||||
|
/acpitests-unix-20191018.tar.gz
|
||||||
|
@ -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-20191018.orig/generate/unix/Makefile.config
|
||||||
+++ acpica-unix-20190816/generate/unix/Makefile.config
|
+++ acpica-unix-20191018/generate/unix/Makefile.config
|
||||||
@@ -23,6 +23,9 @@
|
@@ -23,6 +23,9 @@
|
||||||
# OPT_CFLAGS can be overridden on the make command line by
|
# OPT_CFLAGS can be overridden on the make command line by
|
||||||
# adding OPT_CFLAGS="..." to the invocation.
|
# adding OPT_CFLAGS="..." to the invocation.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Name: acpica-tools
|
Name: acpica-tools
|
||||||
Version: 20190816
|
Version: 20191018
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: ACPICA tools for the development and debug of ACPI tables
|
Summary: ACPICA tools for the development and debug of ACPI tables
|
||||||
|
|
||||||
@ -25,24 +25,28 @@ Source15: run-misc-tests.sh
|
|||||||
Source16: COPYING
|
Source16: COPYING
|
||||||
|
|
||||||
Patch0: big-endian.patch
|
Patch0: big-endian.patch
|
||||||
Patch1: unaligned.patch
|
Patch1: big-endian-dmtbdump.patch
|
||||||
Patch2: OPT_LDFLAGS.patch
|
Patch2: big-endian-dmtbdump1.patch
|
||||||
Patch3: int-format.patch
|
Patch3: big-endian-dmtbdump2.patch
|
||||||
Patch4: f23-harden.patch
|
Patch4: big-endian-dmtbdump3.patch
|
||||||
Patch5: template.patch
|
Patch5: unaligned.patch
|
||||||
Patch6: ppc64le.patch
|
Patch6: OPT_LDFLAGS.patch
|
||||||
Patch7: arm7hl.patch
|
Patch7: int-format.patch
|
||||||
Patch8: big-endian-v2.patch
|
Patch8: f23-harden.patch
|
||||||
Patch9: simple-64bit.patch
|
Patch9: template.patch
|
||||||
Patch10: mips-be-fix.patch
|
Patch10: ppc64le.patch
|
||||||
Patch11: cve-2017-13693.patch
|
Patch11: arm7hl.patch
|
||||||
Patch12: cve-2017-13694.patch
|
Patch12: big-endian-v2.patch
|
||||||
Patch13: cve-2017-13695.patch
|
Patch13: simple-64bit.patch
|
||||||
Patch14: str-trunc-warn.patch
|
Patch14: mips-be-fix.patch
|
||||||
Patch15: ptr-cast.patch
|
Patch15: cve-2017-13693.patch
|
||||||
Patch16: aslcodegen.patch
|
Patch16: cve-2017-13694.patch
|
||||||
Patch17: facp.patch
|
Patch17: cve-2017-13695.patch
|
||||||
Patch18: badexit.patch
|
Patch18: str-trunc-warn.patch
|
||||||
|
Patch19: ptr-cast.patch
|
||||||
|
Patch20: aslcodegen.patch
|
||||||
|
Patch21: facp.patch
|
||||||
|
Patch22: badexit.patch
|
||||||
|
|
||||||
BuildRequires: bison patchutils flex gcc
|
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}
|
%setup -q -n acpica-unix2-%{version}
|
||||||
gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
|
gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
|
||||||
|
|
||||||
%patch0 -p1 -b .big-endian
|
%patch0 -p1 -b .big-endian
|
||||||
%patch1 -p1 -b .unaligned
|
%patch1 -p1 -b .big-endian-dmtbdump
|
||||||
%patch2 -p1 -b .OPT_LDFLAGS
|
%patch2 -p1 -b .big-endian-dmtbdump1
|
||||||
%patch3 -p1 -b .int-format
|
%patch3 -p1 -b .big-endian-dmtbdump2
|
||||||
%patch4 -p1 -b .f23-harden
|
%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
|
# do not preserve a backup for this patch; it alters the results
|
||||||
# of the template test case and forces it to fail
|
# of the template test case and forces it to fail
|
||||||
%patch5 -p1
|
%patch9 -p1
|
||||||
%patch6 -p1 -b .ppc64le
|
%patch10 -p1 -b .ppc64le
|
||||||
%patch7 -p1 -b .arm7hl
|
%patch11 -p1 -b .arm7hl
|
||||||
%patch8 -p1 -b .big-endian-v2
|
%patch12 -p1 -b .big-endian-v2
|
||||||
%patch9 -p1 -b .simple-64bit
|
%patch13 -p1 -b .simple-64bit
|
||||||
%patch10 -p1 -b .mips-be-fix
|
%patch14 -p1 -b .mips-be-fix
|
||||||
%patch11 -p1 -b .cve-2017-13693
|
%patch15 -p1 -b .cve-2017-13693
|
||||||
%patch12 -p1 -b .cve-2017-13694
|
%patch16 -p1 -b .cve-2017-13694
|
||||||
%patch13 -p1 -b .cve-2017-13695
|
%patch17 -p1 -b .cve-2017-13695
|
||||||
%patch14 -p1 -b .str-trunc-warn
|
%patch18 -p1 -b .str-trunc-warn
|
||||||
%patch15 -p1 -b .ptr-cast
|
%patch19 -p1 -b .ptr-cast
|
||||||
%patch16 -p1 -b .aslcodegen
|
%patch20 -p1 -b .aslcodegen
|
||||||
%patch17 -p1 -b .facp
|
%patch21 -p1 -b .facp
|
||||||
%patch18 -p1 -b .badexit
|
%patch22 -p1 -b .badexit
|
||||||
|
|
||||||
cp -p %{SOURCE2} README.Fedora
|
cp -p %{SOURCE2} README.Fedora
|
||||||
cp -p %{SOURCE3} iasl.1
|
cp -p %{SOURCE3} iasl.1
|
||||||
@ -229,6 +237,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 23 2019 Al Stone <ahs3@redhat.com> - 20191018-1
|
||||||
|
- Update to 20191019 source tree, including patch refeshes.
|
||||||
|
|
||||||
* Tue Oct 29 2019 Al Stone <ahs3@redhat.com> - 20190816-1
|
* Tue Oct 29 2019 Al Stone <ahs3@redhat.com> - 20190816-1
|
||||||
- Update to 20190816 source tree, including patch refeshes.
|
- Update to 20190816 source tree, including patch refeshes.
|
||||||
- Add a patch to fix a non-zero exit from iasl -T ALL that actually succeeds
|
- Add a patch to fix a non-zero exit from iasl -T ALL that actually succeeds
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
diff -Naur acpica-unix2-20170119/source/include/acmacros.h acpica-unix2-20170119-arm7hl/source/include/acmacros.h
|
Index: acpica-unix-20191018/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
|
--- acpica-unix-20191018.orig/source/include/acmacros.h
|
||||||
|
+++ acpica-unix-20191018/source/include/acmacros.h
|
||||||
@@ -178,6 +178,8 @@
|
@@ -178,6 +178,8 @@
|
||||||
|
|
||||||
/* 16-bit source, 16/32/64 destination */
|
/* 16-bit source, 16/32/64 destination */
|
||||||
|
@ -4,10 +4,10 @@ support; this patch repairs that adaptation.
|
|||||||
|
|
||||||
Signed-off-by: Al Stone <ahs3@redhat.com>
|
Signed-off-by: Al Stone <ahs3@redhat.com>
|
||||||
|
|
||||||
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-20191018.orig/source/compiler/aslcodegen.c
|
||||||
+++ acpica-unix-20190405/source/compiler/aslcodegen.c
|
+++ acpica-unix-20191018/source/compiler/aslcodegen.c
|
||||||
@@ -497,8 +497,7 @@ CgWriteTableHeader (
|
@@ -497,8 +497,7 @@ CgWriteTableHeader (
|
||||||
|
|
||||||
/* Table length. Checksum zero for now, will rewrite later */
|
/* Table length. Checksum zero for now, will rewrite later */
|
||||||
|
@ -3,10 +3,11 @@ it still exits with a non-zero value. Exit with zero if all is well.
|
|||||||
|
|
||||||
Signed-off-by: Al Stone <ahs3@redhat.com>
|
Signed-off-by: Al Stone <ahs3@redhat.com>
|
||||||
|
|
||||||
diff -Naur acpica-unix2-20190816/source/compiler/asloptions.c acpica-unix2-20190816.fix/source/compiler/asloptions.c
|
Index: acpica-unix-20191018/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
|
--- acpica-unix-20191018.orig/source/compiler/asloptions.c
|
||||||
@@ -111,7 +111,7 @@
|
+++ acpica-unix-20191018/source/compiler/asloptions.c
|
||||||
|
@@ -111,7 +111,7 @@ AslCommandLine (
|
||||||
{
|
{
|
||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
|
162
big-endian-dmtbdump.patch
Normal file
162
big-endian-dmtbdump.patch
Normal file
@ -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);
|
||||||
|
}
|
637
big-endian-dmtbdump1.patch
Normal file
637
big-endian-dmtbdump1.patch
Normal file
@ -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:
|
||||||
|
|
887
big-endian-dmtbdump2.patch
Normal file
887
big-endian-dmtbdump2.patch
Normal file
@ -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))
|
||||||
|
{
|
250
big-endian-dmtbdump3.patch
Normal file
250
big-endian-dmtbdump3.patch
Normal file
@ -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);
|
||||||
|
}
|
@ -3,10 +3,10 @@ in the original big-endian patch; we try to capture those here.
|
|||||||
|
|
||||||
Signed-off-by: Al Stone <ahs3@redhat.com>
|
Signed-off-by: Al Stone <ahs3@redhat.com>
|
||||||
|
|
||||||
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-20191018.orig/source/compiler/asllookup.c
|
||||||
+++ acpica-unix-20180508/source/compiler/asllookup.c
|
+++ acpica-unix-20191018/source/compiler/asllookup.c
|
||||||
@@ -249,7 +249,8 @@ LkIsObjectUsed (
|
@@ -249,7 +249,8 @@ LkIsObjectUsed (
|
||||||
* ACPI names and are typically not referenced since they are meant
|
* ACPI names and are typically not referenced since they are meant
|
||||||
* to be called by the host OS.
|
* to be called by the host OS.
|
||||||
|
2298
big-endian.patch
2298
big-endian.patch
File diff suppressed because it is too large
Load Diff
@ -63,10 +63,10 @@ Github-Location: https://github.com/acpica/acpica/pull/295/commits/987a3b5cf7175
|
|||||||
source/components/dispatcher/dsutils.c | 9 ++++++++-
|
source/components/dispatcher/dsutils.c | 9 ++++++++-
|
||||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
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-unix-20191018.orig/source/components/dispatcher/dsutils.c
|
||||||
+++ acpica-unix2-20181213/source/components/dispatcher/dsutils.c
|
+++ acpica-unix-20191018/source/components/dispatcher/dsutils.c
|
||||||
@@ -759,6 +759,8 @@ AcpiDsCreateOperands (
|
@@ -759,6 +759,8 @@ AcpiDsCreateOperands (
|
||||||
ACPI_PARSE_OBJECT *Arguments[ACPI_OBJ_NUM_OPERANDS];
|
ACPI_PARSE_OBJECT *Arguments[ACPI_OBJ_NUM_OPERANDS];
|
||||||
UINT32 ArgCount = 0;
|
UINT32 ArgCount = 0;
|
||||||
|
@ -130,11 +130,11 @@ Github-Location: https://github.com/acpica/acpica/pull/278/commits/4a0243ecb4c94
|
|||||||
source/components/parser/psobject.c | 44 ++++++++++++++-----------------------
|
source/components/parser/psobject.c | 44 ++++++++++++++-----------------------
|
||||||
1 file changed, 16 insertions(+), 28 deletions(-)
|
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-unix-20191018.orig/source/components/parser/psobject.c
|
||||||
+++ acpica-unix2-20180531/source/components/parser/psobject.c
|
+++ acpica-unix-20191018/source/components/parser/psobject.c
|
||||||
@@ -709,7 +709,8 @@ AcpiPsCompleteFinalOp (
|
@@ -707,7 +707,8 @@ AcpiPsCompleteFinalOp (
|
||||||
ACPI_PARSE_OBJECT *Op,
|
ACPI_PARSE_OBJECT *Op,
|
||||||
ACPI_STATUS Status)
|
ACPI_STATUS Status)
|
||||||
{
|
{
|
||||||
@ -144,7 +144,7 @@ Index: acpica-unix2-20180531/source/components/parser/psobject.c
|
|||||||
|
|
||||||
|
|
||||||
ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState);
|
ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState);
|
||||||
@@ -726,7 +727,7 @@ AcpiPsCompleteFinalOp (
|
@@ -724,7 +725,7 @@ AcpiPsCompleteFinalOp (
|
||||||
{
|
{
|
||||||
if (Op)
|
if (Op)
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@ Index: acpica-unix2-20180531/source/components/parser/psobject.c
|
|||||||
{
|
{
|
||||||
WalkState->Op = Op;
|
WalkState->Op = Op;
|
||||||
WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
|
WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
|
||||||
@@ -745,41 +746,28 @@ AcpiPsCompleteFinalOp (
|
@@ -743,41 +744,28 @@ AcpiPsCompleteFinalOp (
|
||||||
|
|
||||||
if (Status == AE_CTRL_TERMINATE)
|
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);
|
} while (Op);
|
||||||
|
|
||||||
|
@ -67,11 +67,11 @@ Github-Location: https://github.com/acpica/acpica/pull/296/commits/37f2c716f2c6a
|
|||||||
source/components/namespace/nseval.c | 10 ++++++++++
|
source/components/namespace/nseval.c | 10 ++++++++++
|
||||||
1 file changed, 10 insertions(+)
|
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-unix-20191018.orig/source/components/namespace/nseval.c
|
||||||
+++ acpica-unix2-20181213/source/components/namespace/nseval.c
|
+++ acpica-unix-20191018/source/components/namespace/nseval.c
|
||||||
@@ -336,6 +336,16 @@ AcpiNsEvaluate (
|
@@ -329,6 +329,16 @@ AcpiNsEvaluate (
|
||||||
Info->ReturnObject = NULL;
|
Info->ReturnObject = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,10 @@ From: Al Stone <ahs3@redhat.com>
|
|||||||
generate/unix/iasl/Makefile | 13 +++++++------
|
generate/unix/iasl/Makefile | 13 +++++++------
|
||||||
2 files changed, 9 insertions(+), 6 deletions(-)
|
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-20191018.orig/generate/unix/Makefile.config
|
||||||
+++ acpica-unix-20190816/generate/unix/Makefile.config
|
+++ acpica-unix-20191018/generate/unix/Makefile.config
|
||||||
@@ -190,6 +190,8 @@ ifneq ($(NOFORTIFY),TRUE)
|
@@ -190,6 +190,8 @@ ifneq ($(NOFORTIFY),TRUE)
|
||||||
OPT_CFLAGS += -D_FORTIFY_SOURCE=2
|
OPT_CFLAGS += -D_FORTIFY_SOURCE=2
|
||||||
endif
|
endif
|
||||||
@ -21,10 +21,10 @@ Index: acpica-unix-20190816/generate/unix/Makefile.config
|
|||||||
CFLAGS += \
|
CFLAGS += \
|
||||||
-D$(HOST)\
|
-D$(HOST)\
|
||||||
-D_GNU_SOURCE\
|
-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-20191018.orig/generate/unix/iasl/Makefile
|
||||||
+++ acpica-unix-20190816/generate/unix/iasl/Makefile
|
+++ acpica-unix-20191018/generate/unix/iasl/Makefile
|
||||||
@@ -358,34 +358,35 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa
|
@@ -358,34 +358,35 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa
|
||||||
# Cannot use the common compile warning flags since the C files are created
|
# 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.
|
# by the utilities above and they are not necessarily ANSI C, etc.
|
||||||
|
@ -67,6 +67,9 @@ Remark 2146 - ^ Method Argument is never used (Arg3)
|
|||||||
grammar.asl 701: CreateField (\_SB_.SBUF, 148, 96, FLDV)
|
grammar.asl 701: CreateField (\_SB_.SBUF, 148, 96, FLDV)
|
||||||
Remark 2089 - Object is not referenced ^ (Name [FLDV] is within a method [_INI])
|
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)
|
grammar.asl 733: Method(_SRS)
|
||||||
Warning 3102 - ^ Reserved method has too few arguments (_SRS requires 1)
|
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)
|
grammar.asl 2889: Device (RTLV)
|
||||||
Warning 3141 - Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
|
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)
|
grammar.asl 2993: Name (_CRS,0)
|
||||||
Error 6105 - ^ Invalid object type for reserved name (_CRS: found Integer, Buffer required)
|
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)
|
grammar.asl 6393: Device (IDX5)
|
||||||
Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope)
|
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..........."})
|
grammar.asl 6478: Name (_CRS, Buffer(26) {"\_SB_.PCI2._CRS..........."})
|
||||||
Warning 3046 - Invalid or unknown escape sequence ^
|
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
|
ASL Input: grammar.asl - 323653 bytes 4818 keywords 10284 source lines
|
||||||
AML Output: grammar.aml - 43758 bytes 4148 opcodes 670 named objects
|
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
|
||||||
|
@ -21,10 +21,10 @@ From: Al Stone <ahs3@redhat.com>
|
|||||||
source/components/utilities/utownerid.c | 2 +-
|
source/components/utilities/utownerid.c | 2 +-
|
||||||
18 files changed, 28 insertions(+), 28 deletions(-)
|
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-20191018.orig/source/compiler/aslerror.c
|
||||||
+++ acpica-unix-20190816/source/compiler/aslerror.c
|
+++ acpica-unix-20191018/source/compiler/aslerror.c
|
||||||
@@ -898,7 +898,7 @@ AslLogNewError (
|
@@ -898,7 +898,7 @@ AslLogNewError (
|
||||||
AslGbl_ExceptionCount[ModifiedLevel]++;
|
AslGbl_ExceptionCount[ModifiedLevel]++;
|
||||||
if (!AslGbl_IgnoreErrors && AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT)
|
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_SourceLine = 0;
|
||||||
AslGbl_NextError = AslGbl_ErrorLog;
|
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-20191018.orig/source/compiler/aslopt.c
|
||||||
+++ acpica-unix-20190816/source/compiler/aslopt.c
|
+++ acpica-unix-20191018/source/compiler/aslopt.c
|
||||||
@@ -583,7 +583,7 @@ OptOptimizeNamePath (
|
@@ -583,7 +583,7 @@ OptOptimizeNamePath (
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,10 +47,10 @@ Index: acpica-unix-20190816/source/compiler/aslopt.c
|
|||||||
Op->Asl.LogicalLineNumber,
|
Op->Asl.LogicalLineNumber,
|
||||||
AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode),
|
AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode),
|
||||||
AcpiPsGetOpcodeName (Op->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-20191018.orig/source/compiler/aslprepkg.c
|
||||||
+++ acpica-unix-20190816/source/compiler/aslprepkg.c
|
+++ acpica-unix-20191018/source/compiler/aslprepkg.c
|
||||||
@@ -309,7 +309,7 @@ ApCheckPackage (
|
@@ -309,7 +309,7 @@ ApCheckPackage (
|
||||||
|
|
||||||
if (Count & 1)
|
if (Count & 1)
|
||||||
@ -60,10 +60,10 @@ Index: acpica-unix-20190816/source/compiler/aslprepkg.c
|
|||||||
Predefined->Info.Name, Count);
|
Predefined->Info.Name, Count);
|
||||||
|
|
||||||
AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH,
|
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-20191018.orig/source/components/debugger/dbexec.c
|
||||||
+++ acpica-unix-20190816/source/components/debugger/dbexec.c
|
+++ acpica-unix-20191018/source/components/debugger/dbexec.c
|
||||||
@@ -230,7 +230,7 @@ AcpiDbExecuteMethod (
|
@@ -230,7 +230,7 @@ AcpiDbExecuteMethod (
|
||||||
ACPI_ERROR ((AE_INFO,
|
ACPI_ERROR ((AE_INFO,
|
||||||
"Possible buffer overflow within AML Debugger "
|
"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-20191018.orig/source/components/dispatcher/dsmthdat.c
|
||||||
+++ acpica-unix-20190816/source/components/dispatcher/dsmthdat.c
|
+++ acpica-unix-20191018/source/components/dispatcher/dsmthdat.c
|
||||||
@@ -291,7 +291,7 @@ AcpiDsMethodDataGetNode (
|
@@ -291,7 +291,7 @@ AcpiDsMethodDataGetNode (
|
||||||
if (Index > ACPI_METHOD_MAX_LOCAL)
|
if (Index > ACPI_METHOD_MAX_LOCAL)
|
||||||
{
|
{
|
||||||
@ -95,10 +95,10 @@ Index: acpica-unix-20190816/source/components/dispatcher/dsmthdat.c
|
|||||||
Index, ACPI_METHOD_MAX_ARG));
|
Index, ACPI_METHOD_MAX_ARG));
|
||||||
return_ACPI_STATUS (AE_AML_INVALID_INDEX);
|
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-20191018.orig/source/components/dispatcher/dsutils.c
|
||||||
+++ acpica-unix-20190816/source/components/dispatcher/dsutils.c
|
+++ acpica-unix-20191018/source/components/dispatcher/dsutils.c
|
||||||
@@ -786,7 +786,7 @@ AcpiDsCreateOperands (
|
@@ -786,7 +786,7 @@ AcpiDsCreateOperands (
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,10 +108,10 @@ Index: acpica-unix-20190816/source/components/dispatcher/dsutils.c
|
|||||||
WalkState->NumOperands, ArgCount, Index));
|
WalkState->NumOperands, ArgCount, Index));
|
||||||
|
|
||||||
/* Create the interpreter arguments, in reverse order */
|
/* 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-20191018.orig/source/components/dispatcher/dswscope.c
|
||||||
+++ acpica-unix-20190816/source/components/dispatcher/dswscope.c
|
+++ acpica-unix-20191018/source/components/dispatcher/dswscope.c
|
||||||
@@ -149,7 +149,7 @@ AcpiDsScopeStackPush (
|
@@ -149,7 +149,7 @@ AcpiDsScopeStackPush (
|
||||||
WalkState->ScopeDepth++;
|
WalkState->ScopeDepth++;
|
||||||
|
|
||||||
@ -130,10 +130,10 @@ Index: acpica-unix-20190816/source/components/dispatcher/dswscope.c
|
|||||||
(UINT32) WalkState->ScopeDepth,
|
(UINT32) WalkState->ScopeDepth,
|
||||||
AcpiUtGetNodeName (ScopeInfo->Scope.Node),
|
AcpiUtGetNodeName (ScopeInfo->Scope.Node),
|
||||||
AcpiUtGetTypeName (ScopeInfo->Common.Value)));
|
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-20191018.orig/source/components/events/evgpe.c
|
||||||
+++ acpica-unix-20190816/source/components/events/evgpe.c
|
+++ acpica-unix-20191018/source/components/events/evgpe.c
|
||||||
@@ -488,7 +488,7 @@ AcpiEvGpeDetect (
|
@@ -488,7 +488,7 @@ AcpiEvGpeDetect (
|
||||||
"Ignore disabled registers for GPE %02X-%02X: "
|
"Ignore disabled registers for GPE %02X-%02X: "
|
||||||
"RunEnable=%02X, WakeEnable=%02X\n",
|
"RunEnable=%02X, WakeEnable=%02X\n",
|
||||||
@ -143,10 +143,10 @@ Index: acpica-unix-20190816/source/components/events/evgpe.c
|
|||||||
GpeRegisterInfo->EnableForRun,
|
GpeRegisterInfo->EnableForRun,
|
||||||
GpeRegisterInfo->EnableForWake));
|
GpeRegisterInfo->EnableForWake));
|
||||||
continue;
|
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-20191018.orig/source/components/executer/exdump.c
|
||||||
+++ acpica-unix-20190816/source/components/executer/exdump.c
|
+++ acpica-unix-20191018/source/components/executer/exdump.c
|
||||||
@@ -678,7 +678,7 @@ AcpiExDumpOperand (
|
@@ -678,7 +678,7 @@ AcpiExDumpOperand (
|
||||||
if (Depth > 0)
|
if (Depth > 0)
|
||||||
{
|
{
|
||||||
@ -156,10 +156,10 @@ Index: acpica-unix-20190816/source/components/executer/exdump.c
|
|||||||
}
|
}
|
||||||
else
|
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-20191018.orig/source/components/executer/exfldio.c
|
||||||
+++ acpica-unix-20190816/source/components/executer/exfldio.c
|
+++ acpica-unix-20191018/source/components/executer/exfldio.c
|
||||||
@@ -681,8 +681,8 @@ AcpiExWriteWithUpdateRule (
|
@@ -681,8 +681,8 @@ AcpiExWriteWithUpdateRule (
|
||||||
|
|
||||||
ACPI_ERROR ((AE_INFO,
|
ACPI_ERROR ((AE_INFO,
|
||||||
@ -171,10 +171,10 @@ Index: acpica-unix-20190816/source/components/executer/exfldio.c
|
|||||||
return_ACPI_STATUS (AE_AML_OPERAND_VALUE);
|
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-20191018.orig/source/components/executer/exnames.c
|
||||||
+++ acpica-unix-20190816/source/components/executer/exnames.c
|
+++ acpica-unix-20191018/source/components/executer/exnames.c
|
||||||
@@ -237,7 +237,7 @@ AcpiExNameSegment (
|
@@ -237,7 +237,7 @@ AcpiExNameSegment (
|
||||||
*/
|
*/
|
||||||
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
|
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);
|
*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-20191018.orig/source/components/hardware/hwregs.c
|
||||||
+++ acpica-unix-20190816/source/components/hardware/hwregs.c
|
+++ acpica-unix-20191018/source/components/hardware/hwregs.c
|
||||||
@@ -460,7 +460,7 @@ AcpiHwClearAcpiStatus (
|
@@ -460,7 +460,7 @@ AcpiHwClearAcpiStatus (
|
||||||
|
|
||||||
|
|
||||||
@ -206,10 +206,10 @@ Index: acpica-unix-20190816/source/components/hardware/hwregs.c
|
|||||||
ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address)));
|
ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address)));
|
||||||
|
|
||||||
LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock);
|
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-20191018.orig/source/components/tables/tbfadt.c
|
||||||
+++ acpica-unix-20190816/source/components/tables/tbfadt.c
|
+++ acpica-unix-20191018/source/components/tables/tbfadt.c
|
||||||
@@ -233,7 +233,7 @@ AcpiTbInitGenericAddress (
|
@@ -233,7 +233,7 @@ AcpiTbInitGenericAddress (
|
||||||
if (!(Flags & ACPI_FADT_GPE_REGISTER))
|
if (!(Flags & ACPI_FADT_GPE_REGISTER))
|
||||||
{
|
{
|
||||||
@ -237,10 +237,10 @@ Index: acpica-unix-20190816/source/components/tables/tbfadt.c
|
|||||||
Name, Address32,
|
Name, Address32,
|
||||||
ACPI_FORMAT_UINT64 (Address64->Address),
|
ACPI_FORMAT_UINT64 (Address64->Address),
|
||||||
AcpiGbl_Use32BitFadtAddresses ? 32 : 64));
|
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-20191018.orig/source/components/tables/tbxfroot.c
|
||||||
+++ acpica-unix-20190816/source/components/tables/tbxfroot.c
|
+++ acpica-unix-20191018/source/components/tables/tbxfroot.c
|
||||||
@@ -177,7 +177,7 @@ AcpiFindRootPointer (
|
@@ -177,7 +177,7 @@ AcpiFindRootPointer (
|
||||||
{
|
{
|
||||||
ACPI_ERROR ((AE_INFO,
|
ACPI_ERROR ((AE_INFO,
|
||||||
@ -268,10 +268,10 @@ Index: acpica-unix-20190816/source/components/tables/tbxfroot.c
|
|||||||
|
|
||||||
return_ACPI_STATUS (AE_NO_MEMORY);
|
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-20191018.orig/source/components/utilities/utownerid.c
|
||||||
+++ acpica-unix-20190816/source/components/utilities/utownerid.c
|
+++ acpica-unix-20191018/source/components/utilities/utownerid.c
|
||||||
@@ -237,7 +237,7 @@ AcpiUtReleaseOwnerId (
|
@@ -237,7 +237,7 @@ AcpiUtReleaseOwnerId (
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -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-20191018.orig/source/compiler/aslparseop.c
|
||||||
+++ acpica-unix-20190329/source/compiler/aslparseop.c
|
+++ acpica-unix-20191018/source/compiler/aslparseop.c
|
||||||
@@ -283,7 +283,16 @@ TrCreateValuedLeafOp (
|
@@ -283,7 +283,16 @@ TrCreateValuedLeafOp (
|
||||||
|
|
||||||
|
|
||||||
@ -20,10 +20,10 @@ Index: acpica-unix-20190329/source/compiler/aslparseop.c
|
|||||||
|
|
||||||
DbgPrint (ASL_PARSE_OUTPUT,
|
DbgPrint (ASL_PARSE_OUTPUT,
|
||||||
"\nCreateValuedLeafOp Ln/Col %u/%u NewOp %p "
|
"\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-20191018.orig/source/include/platform/aclinux.h
|
||||||
+++ acpica-unix-20190329/source/include/platform/aclinux.h
|
+++ acpica-unix-20191018/source/include/platform/aclinux.h
|
||||||
@@ -232,10 +232,8 @@
|
@@ -232,10 +232,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -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-20191018.orig/source/include/platform/aclinux.h
|
||||||
+++ acpica-unix-20190329/source/include/platform/aclinux.h
|
+++ acpica-unix-20191018/source/include/platform/aclinux.h
|
||||||
@@ -233,9 +233,11 @@
|
@@ -233,9 +233,11 @@
|
||||||
#define __cdecl
|
#define __cdecl
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
diff -Naur acpica-unix2-20180209.orig/source/components/tables/tbutils.c acpica-unix2-20180209/source/components/tables/tbutils.c
|
Index: acpica-unix-20191018/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
|
--- acpica-unix-20191018.orig/source/components/tables/tbutils.c
|
||||||
@@ -238,9 +238,11 @@
|
+++ acpica-unix-20191018/source/components/tables/tbutils.c
|
||||||
|
@@ -238,9 +238,11 @@ AcpiTbGetRootTableEntry (
|
||||||
* 64-bit platform, XSDT: Move (unaligned) 64-bit to local,
|
* 64-bit platform, XSDT: Move (unaligned) 64-bit to local,
|
||||||
* return 64-bit
|
* return 64-bit
|
||||||
*/
|
*/
|
||||||
@ -14,7 +15,7 @@ diff -Naur acpica-unix2-20180209.orig/source/components/tables/tbutils.c acpica-
|
|||||||
if (Address64 > ACPI_UINT32_MAX)
|
if (Address64 > ACPI_UINT32_MAX)
|
||||||
{
|
{
|
||||||
/* Will truncate 64-bit address to 32 bits, issue warning */
|
/* Will truncate 64-bit address to 32 bits, issue warning */
|
||||||
@@ -250,9 +252,15 @@
|
@@ -250,9 +252,15 @@ AcpiTbGetRootTableEntry (
|
||||||
" truncating",
|
" truncating",
|
||||||
ACPI_FORMAT_UINT64 (Address64)));
|
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
|
Index: acpica-unix-20191018/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
|
--- acpica-unix-20191018.orig/source/compiler/aslparseop.c
|
||||||
@@ -287,7 +287,11 @@
|
+++ acpica-unix-20191018/source/compiler/aslparseop.c
|
||||||
|
@@ -287,7 +287,11 @@ TrCreateValuedLeafOp (
|
||||||
ParseOpcode == PARSEOP_NAMESEG ||
|
ParseOpcode == PARSEOP_NAMESEG ||
|
||||||
ParseOpcode == PARSEOP_STRING_LITERAL)
|
ParseOpcode == PARSEOP_STRING_LITERAL)
|
||||||
{
|
{
|
||||||
|
@ -3,10 +3,10 @@ Description: Stop listing all 64bit architectures
|
|||||||
64bit architectures.
|
64bit architectures.
|
||||||
Author: Adrian Bunk <bunk@debian.org>
|
Author: Adrian Bunk <bunk@debian.org>
|
||||||
|
|
||||||
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-20191018.orig/source/include/platform/aclinux.h
|
||||||
+++ acpica-unix-20190329/source/include/platform/aclinux.h
|
+++ acpica-unix-20191018/source/include/platform/aclinux.h
|
||||||
@@ -215,9 +215,7 @@
|
@@ -215,9 +215,7 @@
|
||||||
#define ACPI_FLUSH_CPU_CACHE()
|
#define ACPI_FLUSH_CPU_CACHE()
|
||||||
#define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread))
|
#define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread))
|
||||||
|
4
sources
4
sources
@ -1,2 +1,2 @@
|
|||||||
SHA512 (acpica-unix2-20190816.tar.gz) = f2b5363a18391d35465cc14d3be1c2f5b72c599a02e617febc7abc64f0a825fd7ef06d9bc5f13264cf526b7f4ba6a605dd188152c6007efcf661641b537d22b2
|
SHA512 (acpica-unix2-20191018.tar.gz) = 4b6cfcfe7866f5cde8085d9deb539d7653043b806aa40466873bdc1e4e875c0be4b4906e53c087f9f34ec755518cb0a206b5107eae557b977a2a2ca184069244
|
||||||
SHA512 (acpitests-unix-20190816.tar.gz) = ea3944888a5229be246c47b9d53256ccc42a988e3dd98995df6ab77ebb0715e777577df609340ee806c5274536ecdcf5798d2aad3786f5a1462a6be8dea9ed1b
|
SHA512 (acpitests-unix-20191018.tar.gz) = a51ef4c9dfad41bc34a8ec9c2251c8f9266ec20e7bff2f15c0244f06291ff665fb36825e2d60745179067f59f8be10e1a3b1f1496d25def6feb0d03a287be90d
|
||||||
|
@ -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-unix-20191018.orig/source/compiler/aslanalyze.c
|
||||||
+++ acpica-unix2-20181003/source/compiler/aslanalyze.c
|
+++ acpica-unix-20191018/source/compiler/aslanalyze.c
|
||||||
@@ -355,11 +355,16 @@ AnCheckMethodReturnValue (
|
@@ -355,11 +355,16 @@ AnCheckMethodReturnValue (
|
||||||
*/
|
*/
|
||||||
if (ThisNodeBtype != 0)
|
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-unix-20191018.orig/source/compiler/aslpredef.c
|
||||||
+++ acpica-unix2-20181003/source/compiler/aslpredef.c
|
+++ acpica-unix-20191018/source/compiler/aslpredef.c
|
||||||
@@ -159,14 +159,19 @@ ApCheckForPredefinedMethod (
|
@@ -159,14 +159,19 @@ ApCheckForPredefinedMethod (
|
||||||
if (MethodInfo->NumReturnNoValue &&
|
if (MethodInfo->NumReturnNoValue &&
|
||||||
ThisName->Info.ExpectedBtypes)
|
ThisName->Info.ExpectedBtypes)
|
||||||
@ -84,11 +84,11 @@ Index: acpica-unix2-20181003/source/compiler/aslpredef.c
|
|||||||
return (AE_TYPE);
|
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-unix-20191018.orig/source/compiler/aslwalks.c
|
||||||
+++ acpica-unix2-20181003/source/compiler/aslwalks.c
|
+++ acpica-unix-20191018/source/compiler/aslwalks.c
|
||||||
@@ -507,15 +507,19 @@ AnOperandTypecheckWalkEnd (
|
@@ -515,15 +515,19 @@ AnOperandTypecheckWalkEnd (
|
||||||
else if (!CommonBtypes)
|
else if (!CommonBtypes)
|
||||||
{
|
{
|
||||||
/* No match -- this is a type mismatch error */
|
/* No match -- this is a type mismatch error */
|
||||||
|
@ -7,10 +7,10 @@ From: Al Stone <ahs3@redhat.com>
|
|||||||
tests/templates/Makefile | 2 +-
|
tests/templates/Makefile | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
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-20191018.orig/tests/templates/Makefile
|
||||||
+++ acpica-unix-20190816/tests/templates/Makefile
|
+++ acpica-unix-20191018/tests/templates/Makefile
|
||||||
@@ -26,7 +26,7 @@ $(aml_obj): %.aml: %.asl
|
@@ -26,7 +26,7 @@ $(aml_obj): %.aml: %.asl
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@ Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|||||||
source/include/actypes.h | 26 +++++++++++++-------------
|
source/include/actypes.h | 26 +++++++++++++-------------
|
||||||
3 files changed, 32 insertions(+), 21 deletions(-)
|
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-20191018.orig/source/components/executer/exoparg2.c
|
||||||
+++ acpica-unix-20180508/source/components/executer/exoparg2.c
|
+++ acpica-unix-20191018/source/components/executer/exoparg2.c
|
||||||
@@ -172,6 +172,8 @@ AcpiExOpcode_2A_2T_1R (
|
@@ -172,6 +172,8 @@ AcpiExOpcode_2A_2T_1R (
|
||||||
ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0];
|
ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0];
|
||||||
ACPI_OPERAND_OBJECT *ReturnDesc1 = NULL;
|
ACPI_OPERAND_OBJECT *ReturnDesc1 = NULL;
|
||||||
@ -58,10 +58,10 @@ Index: acpica-unix-20180508/source/components/executer/exoparg2.c
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case AML_CONCATENATE_OP: /* Concatenate (Data1, Data2, Result) */
|
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-20191018.orig/source/include/actypes.h
|
||||||
+++ acpica-unix-20180508/source/include/actypes.h
|
+++ acpica-unix-20191018/source/include/actypes.h
|
||||||
@@ -143,6 +143,19 @@ typedef COMPILER_DEPENDENT_INT64
|
@@ -143,6 +143,19 @@ typedef COMPILER_DEPENDENT_INT64
|
||||||
*/
|
*/
|
||||||
#define ACPI_THREAD_ID UINT64
|
#define ACPI_THREAD_ID UINT64
|
||||||
|
Loading…
Reference in New Issue
Block a user