Update to 20181003 upstream source
Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
e9dea8a3ac
commit
ae6f250891
2
.gitignore
vendored
2
.gitignore
vendored
@ -99,3 +99,5 @@ series
|
||||
/acpitests-unix-20180629.tar.gz
|
||||
/acpica-unix2-20180810.tar.gz
|
||||
/acpitests-unix-20180810.tar.gz
|
||||
/acpica-unix2-20181003.tar.gz
|
||||
/acpitests-unix-20181003.tar.gz
|
||||
|
@ -1,5 +1,5 @@
|
||||
Name: acpica-tools
|
||||
Version: 20180810
|
||||
Version: 20181003
|
||||
Release: 1%{?dist}
|
||||
Summary: ACPICA tools for the development and debug of ACPI tables
|
||||
|
||||
@ -240,6 +240,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Oct 24 2018 Al Stone <ahs3@redhat.com> - 20181003-1
|
||||
- Update to 20181003 source tree, including patch refeshes. Closes BZ#1634207
|
||||
- Merge in dump-tables PR
|
||||
|
||||
* Mon Sep 17 2018 Al Stone <ahs3@redhat.com> - 20180810-1
|
||||
- Update to 20180810 source tree, including patch refeshes. Closes BZ#1614986
|
||||
|
||||
|
@ -4,25 +4,26 @@ support; this patch repairs that adaptation.
|
||||
|
||||
Signed-off-by: Al Stone <ahs3@redhat.com>
|
||||
|
||||
diff -Naur acpica-unix2-20180531.orig/source/compiler/aslcodegen.c acpica-unix2-20180531/source/compiler/aslcodegen.c
|
||||
--- acpica-unix2-20180531.orig/source/compiler/aslcodegen.c 2018-07-06 20:28:35.255546578 -0400
|
||||
+++ acpica-unix2-20180531/source/compiler/aslcodegen.c 2018-07-06 20:32:10.373797644 -0400
|
||||
@@ -494,8 +494,7 @@
|
||||
Index: acpica-unix2-20181003/source/compiler/aslcodegen.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslcodegen.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslcodegen.c
|
||||
@@ -494,8 +494,7 @@ CgWriteTableHeader (
|
||||
|
||||
/* Table length. Checksum zero for now, will rewrite later */
|
||||
|
||||
- DWord = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
|
||||
- ACPI_MOVE_32_TO_32(&TableHeader.Length, &DWord);
|
||||
+ TableHeader.Length = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
|
||||
- ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord);
|
||||
+ AslGbl_TableHeader.Length = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
|
||||
|
||||
/* Calculate the comment lengths for this definition block parseOp */
|
||||
|
||||
@@ -539,6 +538,8 @@
|
||||
@@ -541,6 +540,8 @@ CgWriteTableHeader (
|
||||
CvDbgPrint (" Length: %u\n", CommentLength);
|
||||
}
|
||||
}
|
||||
+ DWord = TableHeader.Length;
|
||||
+ ACPI_MOVE_32_TO_32(&TableHeader.Length, &DWord);
|
||||
|
||||
TableHeader.Checksum = 0;
|
||||
+ DWord = AslGbl_TableHeader.Length;
|
||||
+ ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord);
|
||||
|
||||
AslGbl_TableHeader.Checksum = 0;
|
||||
Op->Asl.FinalAmlOffset = ftell (AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle);
|
||||
|
300
big-endian.patch
300
big-endian.patch
@ -23,10 +23,10 @@ Signed-off-by: Al Stone <ahs3@redhat.com>
|
||||
source/include/platform/aclinux.h | 8 ++
|
||||
12 files changed, 487 insertions(+), 283 deletions(-)
|
||||
|
||||
Index: acpica-unix-20180810/source/compiler/aslcodegen.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslcodegen.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslcodegen.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslcodegen.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslcodegen.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslcodegen.c
|
||||
@@ -240,16 +240,12 @@ CgWriteAmlOpcode (
|
||||
ACPI_PARSE_OBJECT *Op)
|
||||
{
|
||||
@ -206,8 +206,8 @@ Index: acpica-unix-20180810/source/compiler/aslcodegen.c
|
||||
/* OEM Revision */
|
||||
|
||||
Child = Child->Asl.Next;
|
||||
- TableHeader.OemRevision = (UINT32) Child->Asl.Value.Integer;
|
||||
+ ACPI_MOVE_64_TO_32(&TableHeader.OemRevision, &Child->Asl.Value.Integer);
|
||||
- AslGbl_TableHeader.OemRevision = (UINT32) Child->Asl.Value.Integer;
|
||||
+ ACPI_MOVE_64_TO_32(&AslGbl_TableHeader.OemRevision, &Child->Asl.Value.Integer);
|
||||
|
||||
/* Compiler ID */
|
||||
|
||||
@ -215,20 +215,20 @@ Index: acpica-unix-20180810/source/compiler/aslcodegen.c
|
||||
|
||||
/* Compiler version */
|
||||
|
||||
- TableHeader.AslCompilerRevision = ACPI_CA_VERSION;
|
||||
- AslGbl_TableHeader.AslCompilerRevision = ACPI_CA_VERSION;
|
||||
+ DWord = ACPI_CA_VERSION;
|
||||
+ ACPI_MOVE_32_TO_32(&TableHeader.AslCompilerRevision, &DWord);
|
||||
+ ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.AslCompilerRevision, &DWord);
|
||||
|
||||
/* Table length. Checksum zero for now, will rewrite later */
|
||||
|
||||
- TableHeader.Length = sizeof (ACPI_TABLE_HEADER) +
|
||||
- AslGbl_TableHeader.Length = sizeof (ACPI_TABLE_HEADER) +
|
||||
- Op->Asl.AmlSubtreeLength;
|
||||
+ DWord = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength;
|
||||
+ ACPI_MOVE_32_TO_32(&TableHeader.Length, &DWord);
|
||||
+ ACPI_MOVE_32_TO_32(&AslGbl_TableHeader.Length, &DWord);
|
||||
|
||||
/* Calculate the comment lengths for this definition block parseOp */
|
||||
|
||||
@@ -645,7 +652,10 @@ CgWriteNode (
|
||||
@@ -646,7 +653,10 @@ CgWriteNode (
|
||||
ACPI_PARSE_OBJECT *Op)
|
||||
{
|
||||
ASL_RESOURCE_NODE *Rnode;
|
||||
@ -240,7 +240,7 @@ Index: acpica-unix-20180810/source/compiler/aslcodegen.c
|
||||
|
||||
/* Write all comments here. */
|
||||
|
||||
@@ -675,13 +685,24 @@ CgWriteNode (
|
||||
@@ -676,13 +686,24 @@ CgWriteNode (
|
||||
switch (Op->Asl.AmlOpcode)
|
||||
{
|
||||
case AML_RAW_DATA_BYTE:
|
||||
@ -268,10 +268,10 @@ Index: acpica-unix-20180810/source/compiler/aslcodegen.c
|
||||
|
||||
case AML_RAW_DATA_BUFFER:
|
||||
|
||||
Index: acpica-unix-20180810/source/compiler/aslopcodes.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslopcodes.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslopcodes.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslopcodes.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslopcodes.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslopcodes.c
|
||||
@@ -485,6 +485,7 @@ OpcDoUnicode (
|
||||
UINT32 i;
|
||||
UINT8 *AsciiString;
|
||||
@ -290,10 +290,10 @@ Index: acpica-unix-20180810/source/compiler/aslopcodes.c
|
||||
}
|
||||
|
||||
/*
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype1.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype1.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype1.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype1.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype1.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype1.c
|
||||
@@ -142,6 +142,11 @@ RsDoMemory24Descriptor (
|
||||
ACPI_PARSE_OBJECT *LengthOp = NULL;
|
||||
ASL_RESOURCE_NODE *Rnode;
|
||||
@ -490,10 +490,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype1.c
|
||||
RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH,
|
||||
CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.AddressLength));
|
||||
break;
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype1i.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype1i.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype1i.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype1i.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype1i.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype1i.c
|
||||
@@ -198,6 +198,8 @@ RsDoFixedDmaDescriptor (
|
||||
ACPI_PARSE_OBJECT *InitializerOp;
|
||||
ASL_RESOURCE_NODE *Rnode;
|
||||
@ -630,10 +630,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype1i.c
|
||||
+ ACPI_MOVE_16_TO_16(&Descriptor->Irq.IrqMask, &IrqMask);
|
||||
return (Rnode);
|
||||
}
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype2.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype2.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype2.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype2.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype2.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype2.c
|
||||
@@ -76,6 +76,7 @@ RsDoGeneralRegisterDescriptor (
|
||||
ACPI_PARSE_OBJECT *InitializerOp;
|
||||
ASL_RESOURCE_NODE *Rnode;
|
||||
@ -774,10 +774,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype2.c
|
||||
|
||||
/* Point to end-of-descriptor for vendor data */
|
||||
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype2d.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype2d.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype2d.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype2d.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype2d.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype2d.c
|
||||
@@ -79,7 +79,13 @@ RsDoDwordIoDescriptor (
|
||||
ACPI_PARSE_OBJECT *GranOp = NULL;
|
||||
ASL_RESOURCE_NODE *Rnode;
|
||||
@ -1133,10 +1133,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype2d.c
|
||||
Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) +
|
||||
OptionIndex + StringLength;
|
||||
return (Rnode);
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype2e.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype2e.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype2e.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype2e.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype2e.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype2e.c
|
||||
@@ -78,6 +78,13 @@ RsDoExtendedIoDescriptor (
|
||||
ACPI_PARSE_OBJECT *GranOp = NULL;
|
||||
ASL_RESOURCE_NODE *Rnode;
|
||||
@ -1242,10 +1242,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype2e.c
|
||||
Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) +
|
||||
StringLength;
|
||||
return (Rnode);
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype2q.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype2q.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype2q.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype2q.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype2q.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype2q.c
|
||||
@@ -80,7 +80,13 @@ RsDoQwordIoDescriptor (
|
||||
ASL_RESOURCE_NODE *Rnode;
|
||||
UINT8 *OptionalFields;
|
||||
@ -1584,10 +1584,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype2q.c
|
||||
Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) +
|
||||
OptionIndex + StringLength;
|
||||
return (Rnode);
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype2s.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype2s.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype2s.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype2s.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype2s.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype2s.c
|
||||
@@ -340,9 +340,14 @@ RsDoGpioIntDescriptor (
|
||||
UINT16 VendorLength;
|
||||
UINT16 InterruptLength;
|
||||
@ -2053,10 +2053,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype2s.c
|
||||
MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource);
|
||||
return (Rnode);
|
||||
}
|
||||
Index: acpica-unix-20180810/source/compiler/aslrestype2w.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslrestype2w.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslrestype2w.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslrestype2w.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslrestype2w.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslrestype2w.c
|
||||
@@ -81,6 +81,12 @@ RsDoWordIoDescriptor (
|
||||
UINT8 *OptionalFields;
|
||||
UINT16 StringLength = 0;
|
||||
@ -2400,10 +2400,10 @@ Index: acpica-unix-20180810/source/compiler/aslrestype2w.c
|
||||
Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) +
|
||||
OptionIndex + StringLength;
|
||||
return (Rnode);
|
||||
Index: acpica-unix-20180810/source/include/acmacros.h
|
||||
Index: acpica-unix2-20181003/source/include/acmacros.h
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/include/acmacros.h
|
||||
+++ acpica-unix-20180810/source/include/acmacros.h
|
||||
--- acpica-unix2-20181003.orig/source/include/acmacros.h
|
||||
+++ acpica-unix2-20181003/source/include/acmacros.h
|
||||
@@ -98,9 +98,12 @@
|
||||
((UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\
|
||||
((UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];}
|
||||
@ -2482,10 +2482,10 @@ Index: acpica-unix-20180810/source/include/acmacros.h
|
||||
|
||||
#define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
|
||||
|
||||
Index: acpica-unix-20180810/source/include/platform/aclinux.h
|
||||
Index: acpica-unix2-20181003/source/include/platform/aclinux.h
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/include/platform/aclinux.h
|
||||
+++ acpica-unix-20180810/source/include/platform/aclinux.h
|
||||
--- acpica-unix2-20181003.orig/source/include/platform/aclinux.h
|
||||
+++ acpica-unix2-20181003/source/include/platform/aclinux.h
|
||||
@@ -193,6 +193,7 @@
|
||||
|
||||
#ifdef ACPI_USE_STANDARD_HEADERS
|
||||
@ -2505,10 +2505,10 @@ Index: acpica-unix-20180810/source/include/platform/aclinux.h
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#endif /* __ACLINUX_H__ */
|
||||
Index: acpica-unix-20180810/source/compiler/aslanalyze.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslanalyze.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslanalyze.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslanalyze.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslanalyze.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslanalyze.c
|
||||
@@ -461,7 +461,7 @@ ApCheckForGpeNameConflict (
|
||||
|
||||
/* Need a null-terminated string version of NameSeg */
|
||||
@ -2527,10 +2527,10 @@ Index: acpica-unix-20180810/source/compiler/aslanalyze.c
|
||||
|
||||
/* Inject opposite letter ("L" versus "E") */
|
||||
|
||||
Index: acpica-unix-20180810/source/compiler/asllookup.c
|
||||
Index: acpica-unix2-20181003/source/compiler/asllookup.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/asllookup.c
|
||||
+++ acpica-unix-20180810/source/compiler/asllookup.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/asllookup.c
|
||||
+++ acpica-unix2-20181003/source/compiler/asllookup.c
|
||||
@@ -119,6 +119,7 @@ LkIsObjectUsed (
|
||||
{
|
||||
ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle);
|
||||
@ -2548,23 +2548,23 @@ Index: acpica-unix-20180810/source/compiler/asllookup.c
|
||||
+ if ((tmp.Ascii[0] != '_') &&
|
||||
(!(MethodArgs[i].Flags & ASL_ARG_REFERENCED)))
|
||||
{
|
||||
sprintf (MsgBuffer, "Arg%u", i);
|
||||
sprintf (AslGbl_MsgBuffer, "Arg%u", i);
|
||||
@@ -228,8 +230,10 @@ LkIsObjectUsed (
|
||||
* Issue a remark even if it is a reserved name (starts
|
||||
* with an underscore).
|
||||
*/
|
||||
+ ACPI_MOVE_32_TO_32(&tmp.Ascii, Node->Name.Ascii);
|
||||
+ ACPI_MOVE_32_TO_32(&tmp2.Ascii, Next->Name.Ascii);
|
||||
sprintf (MsgBuffer, "Name [%4.4s] is within a method [%4.4s]",
|
||||
sprintf (AslGbl_MsgBuffer, "Name [%4.4s] is within a method [%4.4s]",
|
||||
- Node->Name.Ascii, Next->Name.Ascii);
|
||||
+ tmp.Ascii, tmp2.Ascii);
|
||||
AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
|
||||
LkGetNameOp (Node->Op), MsgBuffer);
|
||||
LkGetNameOp (Node->Op), AslGbl_MsgBuffer);
|
||||
return (AE_OK);
|
||||
Index: acpica-unix-20180810/source/compiler/aslmain.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslmain.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/aslmain.c
|
||||
+++ acpica-unix-20180810/source/compiler/aslmain.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslmain.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslmain.c
|
||||
@@ -101,18 +101,6 @@ main (
|
||||
|
||||
signal (SIGINT, AslSignalHandler);
|
||||
@ -2584,10 +2584,10 @@ Index: acpica-unix-20180810/source/compiler/aslmain.c
|
||||
AcpiOsInitialize ();
|
||||
ACPI_DEBUG_INITIALIZE (); /* For debug version only */
|
||||
|
||||
Index: acpica-unix-20180810/source/common/acfileio.c
|
||||
Index: acpica-unix2-20181003/source/common/acfileio.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/acfileio.c
|
||||
+++ acpica-unix-20180810/source/common/acfileio.c
|
||||
--- acpica-unix2-20181003.orig/source/common/acfileio.c
|
||||
+++ acpica-unix2-20181003/source/common/acfileio.c
|
||||
@@ -280,6 +280,7 @@ AcGetOneTableFromFile (
|
||||
ACPI_TABLE_HEADER *Table;
|
||||
INT32 Count;
|
||||
@ -2654,10 +2654,10 @@ Index: acpica-unix-20180810/source/common/acfileio.c
|
||||
(UINT32) (FileSize - TableOffset));
|
||||
return (AE_BAD_HEADER);
|
||||
}
|
||||
Index: acpica-unix-20180810/source/common/dmtable.c
|
||||
Index: acpica-unix2-20181003/source/common/dmtable.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/dmtable.c
|
||||
+++ acpica-unix-20180810/source/common/dmtable.c
|
||||
--- acpica-unix2-20181003.orig/source/common/dmtable.c
|
||||
+++ acpica-unix2-20181003/source/common/dmtable.c
|
||||
@@ -550,7 +550,7 @@ AcpiDmDumpDataTable (
|
||||
*/
|
||||
if (ACPI_COMPARE_NAME (Table->Signature, ACPI_SIG_FACS))
|
||||
@ -2756,10 +2756,10 @@ Index: acpica-unix-20180810/source/common/dmtable.c
|
||||
AcpiDmNfitSubnames[Temp16]);
|
||||
break;
|
||||
|
||||
Index: acpica-unix-20180810/source/common/dmtables.c
|
||||
Index: acpica-unix2-20181003/source/common/dmtables.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/dmtables.c
|
||||
+++ acpica-unix-20180810/source/common/dmtables.c
|
||||
--- acpica-unix2-20181003.orig/source/common/dmtables.c
|
||||
+++ acpica-unix2-20181003/source/common/dmtables.c
|
||||
@@ -142,7 +142,9 @@ AdCreateTableHeader (
|
||||
ACPI_TABLE_HEADER *Table)
|
||||
{
|
||||
@ -2825,10 +2825,10 @@ Index: acpica-unix-20180810/source/common/dmtables.c
|
||||
AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER));
|
||||
ASL_CV_INIT_FILETREE(Table, AmlStart, AmlLength);
|
||||
|
||||
Index: acpica-unix-20180810/source/common/dmtbdump.c
|
||||
Index: acpica-unix2-20181003/source/common/dmtbdump.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/dmtbdump.c
|
||||
+++ acpica-unix-20180810/source/common/dmtbdump.c
|
||||
--- acpica-unix2-20181003.orig/source/common/dmtbdump.c
|
||||
+++ acpica-unix2-20181003/source/common/dmtbdump.c
|
||||
@@ -277,6 +277,8 @@ AcpiDmDumpRsdt (
|
||||
UINT32 Entries;
|
||||
UINT32 Offset;
|
||||
@ -2987,10 +2987,10 @@ Index: acpica-unix-20180810/source/common/dmtbdump.c
|
||||
- Revision, Length, ExpectedLength);
|
||||
+ Revision, Tmp32, ExpectedLength);
|
||||
}
|
||||
Index: acpica-unix-20180810/source/common/dmtbdump1.c
|
||||
Index: acpica-unix2-20181003/source/common/dmtbdump1.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/dmtbdump1.c
|
||||
+++ acpica-unix-20180810/source/common/dmtbdump1.c
|
||||
--- acpica-unix2-20181003.orig/source/common/dmtbdump1.c
|
||||
+++ acpica-unix2-20181003/source/common/dmtbdump1.c
|
||||
@@ -79,17 +79,21 @@ AcpiDmDumpAsf (
|
||||
UINT32 DataOffset = 0;
|
||||
UINT32 i;
|
||||
@ -3624,10 +3624,10 @@ Index: acpica-unix-20180810/source/common/dmtbdump1.c
|
||||
{
|
||||
case ACPI_HEST_TYPE_IA32_CHECK:
|
||||
|
||||
Index: acpica-unix-20180810/source/common/dmtbdump2.c
|
||||
Index: acpica-unix2-20181003/source/common/dmtbdump2.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/dmtbdump2.c
|
||||
+++ acpica-unix-20180810/source/common/dmtbdump2.c
|
||||
--- acpica-unix2-20181003.orig/source/common/dmtbdump2.c
|
||||
+++ acpica-unix2-20181003/source/common/dmtbdump2.c
|
||||
@@ -75,15 +75,21 @@ AcpiDmDumpIort (
|
||||
ACPI_IORT_SMMU *IortSmmu = NULL;
|
||||
UINT32 Offset;
|
||||
@ -4510,10 +4510,10 @@ Index: acpica-unix-20180810/source/common/dmtbdump2.c
|
||||
Subtable->Length, InfoTable);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
Index: acpica-unix-20180810/source/common/dmtbdump3.c
|
||||
Index: acpica-unix2-20181003/source/common/dmtbdump3.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/dmtbdump3.c
|
||||
+++ acpica-unix-20180810/source/common/dmtbdump3.c
|
||||
--- acpica-unix2-20181003.orig/source/common/dmtbdump3.c
|
||||
+++ acpica-unix2-20181003/source/common/dmtbdump3.c
|
||||
@@ -68,9 +68,11 @@ void
|
||||
AcpiDmDumpSlic (
|
||||
ACPI_TABLE_HEADER *Table)
|
||||
@ -4760,12 +4760,12 @@ Index: acpica-unix-20180810/source/common/dmtbdump3.c
|
||||
+ (void) AcpiDmDumpTable (Length, 0, Table, ArgumentsLength,
|
||||
AcpiDmTableInfoWpbt0);
|
||||
}
|
||||
Index: acpica-unix-20180810/source/compiler/dtfield.c
|
||||
Index: acpica-unix2-20181003/source/compiler/dtfield.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/dtfield.c
|
||||
+++ acpica-unix-20180810/source/compiler/dtfield.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/dtfield.c
|
||||
+++ acpica-unix2-20181003/source/compiler/dtfield.c
|
||||
@@ -359,7 +359,27 @@ DtCompileInteger (
|
||||
DtError (ASL_ERROR, ASL_MSG_INTEGER_SIZE, Field, MsgBuffer);
|
||||
DtError (ASL_ERROR, ASL_MSG_INTEGER_SIZE, Field, AslGbl_MsgBuffer);
|
||||
}
|
||||
|
||||
- memcpy (Buffer, &Value, ByteLength);
|
||||
@ -4793,10 +4793,10 @@ Index: acpica-unix-20180810/source/compiler/dtfield.c
|
||||
return;
|
||||
}
|
||||
|
||||
Index: acpica-unix-20180810/source/compiler/dtsubtable.c
|
||||
Index: acpica-unix2-20181003/source/compiler/dtsubtable.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/dtsubtable.c
|
||||
+++ acpica-unix-20180810/source/compiler/dtsubtable.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/dtsubtable.c
|
||||
+++ acpica-unix2-20181003/source/compiler/dtsubtable.c
|
||||
@@ -378,6 +378,21 @@ DtSetSubtableLength (
|
||||
return;
|
||||
}
|
||||
@ -4821,10 +4821,10 @@ Index: acpica-unix-20180810/source/compiler/dtsubtable.c
|
||||
+ Subtable->SizeOfLengthField);
|
||||
+ }
|
||||
}
|
||||
Index: acpica-unix-20180810/source/compiler/dttable1.c
|
||||
Index: acpica-unix2-20181003/source/compiler/dttable1.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/dttable1.c
|
||||
+++ acpica-unix-20180810/source/compiler/dttable1.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/dttable1.c
|
||||
+++ acpica-unix2-20181003/source/compiler/dttable1.c
|
||||
@@ -281,6 +281,8 @@ DtCompileCsrt (
|
||||
DT_FIELD **PFieldList = (DT_FIELD **) List;
|
||||
UINT32 DescriptorCount;
|
||||
@ -5196,10 +5196,10 @@ Index: acpica-unix-20180810/source/compiler/dttable1.c
|
||||
return (AE_OK);
|
||||
}
|
||||
|
||||
Index: acpica-unix-20180810/source/compiler/dttable2.c
|
||||
Index: acpica-unix2-20181003/source/compiler/dttable2.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/compiler/dttable2.c
|
||||
+++ acpica-unix-20180810/source/compiler/dttable2.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/dttable2.c
|
||||
+++ acpica-unix2-20181003/source/compiler/dttable2.c
|
||||
@@ -345,7 +345,7 @@ DtCompileMpst (
|
||||
DtPushSubtable (Subtable);
|
||||
|
||||
@ -5356,10 +5356,10 @@ Index: acpica-unix-20180810/source/compiler/dttable2.c
|
||||
|
||||
ParentTable = DtPeekSubtable ();
|
||||
DtInsertSubtable (ParentTable, Subtable);
|
||||
Index: acpica-unix-20180810/source/components/disassembler/dmbuffer.c
|
||||
Index: acpica-unix2-20181003/source/components/disassembler/dmbuffer.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/disassembler/dmbuffer.c
|
||||
+++ acpica-unix-20180810/source/components/disassembler/dmbuffer.c
|
||||
--- acpica-unix2-20181003.orig/source/components/disassembler/dmbuffer.c
|
||||
+++ acpica-unix2-20181003/source/components/disassembler/dmbuffer.c
|
||||
@@ -204,7 +204,7 @@ AcpiDmByteList (
|
||||
|
||||
|
||||
@ -5435,10 +5435,10 @@ Index: acpica-unix-20180810/source/components/disassembler/dmbuffer.c
|
||||
|
||||
NextOp = AcpiPsGetDepthNext (NULL, Op);
|
||||
if (!NextOp)
|
||||
Index: acpica-unix-20180810/source/components/disassembler/dmopcode.c
|
||||
Index: acpica-unix2-20181003/source/components/disassembler/dmopcode.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/disassembler/dmopcode.c
|
||||
+++ acpica-unix-20180810/source/components/disassembler/dmopcode.c
|
||||
--- acpica-unix2-20181003.orig/source/components/disassembler/dmopcode.c
|
||||
+++ acpica-unix2-20181003/source/components/disassembler/dmopcode.c
|
||||
@@ -244,6 +244,7 @@ AcpiDmPredefinedDescription (
|
||||
char *NameString;
|
||||
int LastCharIsDigit;
|
||||
@ -5509,10 +5509,10 @@ Index: acpica-unix-20180810/source/components/disassembler/dmopcode.c
|
||||
|
||||
Info->Level += 1;
|
||||
Info->MappingOp = Op;
|
||||
Index: acpica-unix-20180810/source/components/disassembler/dmresrcl.c
|
||||
Index: acpica-unix2-20181003/source/components/disassembler/dmresrcl.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/disassembler/dmresrcl.c
|
||||
+++ acpica-unix-20180810/source/components/disassembler/dmresrcl.c
|
||||
--- acpica-unix2-20181003.orig/source/components/disassembler/dmresrcl.c
|
||||
+++ acpica-unix2-20181003/source/components/disassembler/dmresrcl.c
|
||||
@@ -141,7 +141,8 @@ AcpiDmMemoryFields (
|
||||
UINT32 Level)
|
||||
{
|
||||
@ -5661,10 +5661,10 @@ Index: acpica-unix-20180810/source/components/disassembler/dmresrcl.c
|
||||
}
|
||||
|
||||
AcpiDmIndent (Level);
|
||||
Index: acpica-unix-20180810/source/components/disassembler/dmresrcl2.c
|
||||
Index: acpica-unix2-20181003/source/components/disassembler/dmresrcl2.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/disassembler/dmresrcl2.c
|
||||
+++ acpica-unix-20180810/source/components/disassembler/dmresrcl2.c
|
||||
--- acpica-unix2-20181003.orig/source/components/disassembler/dmresrcl2.c
|
||||
+++ acpica-unix2-20181003/source/components/disassembler/dmresrcl2.c
|
||||
@@ -191,22 +191,24 @@ AcpiDmGpioCommon (
|
||||
char *DeviceName = NULL;
|
||||
UINT32 PinCount;
|
||||
@ -5888,10 +5888,10 @@ Index: acpica-unix-20180810/source/components/disassembler/dmresrcl2.c
|
||||
|
||||
DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset);
|
||||
AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX);
|
||||
Index: acpica-unix-20180810/source/components/disassembler/dmresrcs.c
|
||||
Index: acpica-unix2-20181003/source/components/disassembler/dmresrcs.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/disassembler/dmresrcs.c
|
||||
+++ acpica-unix-20180810/source/components/disassembler/dmresrcs.c
|
||||
--- acpica-unix2-20181003.orig/source/components/disassembler/dmresrcs.c
|
||||
+++ acpica-unix2-20181003/source/components/disassembler/dmresrcs.c
|
||||
@@ -72,6 +72,7 @@ AcpiDmIrqDescriptor (
|
||||
UINT32 Length,
|
||||
UINT32 Level)
|
||||
@ -5948,10 +5948,10 @@ Index: acpica-unix-20180810/source/components/disassembler/dmresrcs.c
|
||||
|
||||
AcpiDmIndent (Level + 1);
|
||||
AcpiDmDumpInteger8 (Resource->FixedIo.AddressLength, "Length");
|
||||
Index: acpica-unix-20180810/source/components/dispatcher/dsfield.c
|
||||
Index: acpica-unix2-20181003/source/components/dispatcher/dsfield.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/dispatcher/dsfield.c
|
||||
+++ acpica-unix-20180810/source/components/dispatcher/dsfield.c
|
||||
--- acpica-unix2-20181003.orig/source/components/dispatcher/dsfield.c
|
||||
+++ acpica-unix2-20181003/source/components/dispatcher/dsfield.c
|
||||
@@ -325,6 +325,7 @@ AcpiDsGetFieldNames (
|
||||
ACPI_STATUS Status;
|
||||
UINT64 Position;
|
||||
@ -5996,10 +5996,10 @@ Index: acpica-unix-20180810/source/components/dispatcher/dsfield.c
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo,
|
||||
Index: acpica-unix-20180810/source/components/events/evgpeblk.c
|
||||
Index: acpica-unix2-20181003/source/components/events/evgpeblk.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/events/evgpeblk.c
|
||||
+++ acpica-unix-20180810/source/components/events/evgpeblk.c
|
||||
--- acpica-unix2-20181003.orig/source/components/events/evgpeblk.c
|
||||
+++ acpica-unix2-20181003/source/components/events/evgpeblk.c
|
||||
@@ -376,6 +376,7 @@ AcpiEvCreateGpeBlock (
|
||||
ACPI_STATUS Status;
|
||||
ACPI_GPE_BLOCK_INFO *GpeBlock;
|
||||
@ -6032,10 +6032,10 @@ Index: acpica-unix-20180810/source/components/events/evgpeblk.c
|
||||
InterruptNumber == AcpiGbl_FADT.SciInterrupt ? " (SCI)" : ""));
|
||||
|
||||
/* Update global count of currently available GPEs */
|
||||
Index: acpica-unix-20180810/source/components/hardware/hwregs.c
|
||||
Index: acpica-unix2-20181003/source/components/hardware/hwregs.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/hardware/hwregs.c
|
||||
+++ acpica-unix-20180810/source/components/hardware/hwregs.c
|
||||
--- acpica-unix2-20181003.orig/source/components/hardware/hwregs.c
|
||||
+++ acpica-unix2-20181003/source/components/hardware/hwregs.c
|
||||
@@ -197,7 +197,7 @@ AcpiHwValidateRegister (
|
||||
* Address must not be null. A null address also indicates an optional
|
||||
* ACPI register that is not supported, so no error message.
|
||||
@ -6045,10 +6045,10 @@ Index: acpica-unix-20180810/source/components/hardware/hwregs.c
|
||||
if (!(*Address))
|
||||
{
|
||||
return (AE_BAD_ADDRESS);
|
||||
Index: acpica-unix-20180810/source/components/hardware/hwvalid.c
|
||||
Index: acpica-unix2-20181003/source/components/hardware/hwvalid.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/hardware/hwvalid.c
|
||||
+++ acpica-unix-20180810/source/components/hardware/hwvalid.c
|
||||
--- acpica-unix2-20181003.orig/source/components/hardware/hwvalid.c
|
||||
+++ acpica-unix2-20181003/source/components/hardware/hwvalid.c
|
||||
@@ -135,6 +135,8 @@ AcpiHwValidateIoRequest (
|
||||
UINT32 ByteWidth;
|
||||
ACPI_IO_ADDRESS LastAddress;
|
||||
@ -6070,10 +6070,10 @@ Index: acpica-unix-20180810/source/components/hardware/hwvalid.c
|
||||
{
|
||||
ACPI_ERROR ((AE_INFO,
|
||||
"Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X",
|
||||
Index: acpica-unix-20180810/source/components/namespace/nsaccess.c
|
||||
Index: acpica-unix2-20181003/source/components/namespace/nsaccess.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/namespace/nsaccess.c
|
||||
+++ acpica-unix-20180810/source/components/namespace/nsaccess.c
|
||||
--- acpica-unix2-20181003.orig/source/components/namespace/nsaccess.c
|
||||
+++ acpica-unix2-20181003/source/components/namespace/nsaccess.c
|
||||
@@ -313,6 +313,7 @@ AcpiNsLookup (
|
||||
ACPI_OBJECT_TYPE ThisSearchType;
|
||||
UINT32 SearchParentFlag = ACPI_NS_SEARCH_PARENT;
|
||||
@ -6094,10 +6094,10 @@ Index: acpica-unix-20180810/source/components/namespace/nsaccess.c
|
||||
AcpiUtGetTypeName (ThisNode->Type),
|
||||
AcpiUtGetTypeName (TypeToCheckFor)));
|
||||
}
|
||||
Index: acpica-unix-20180810/source/components/namespace/nsparse.c
|
||||
Index: acpica-unix2-20181003/source/components/namespace/nsparse.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/namespace/nsparse.c
|
||||
+++ acpica-unix-20180810/source/components/namespace/nsparse.c
|
||||
--- acpica-unix2-20181003.orig/source/components/namespace/nsparse.c
|
||||
+++ acpica-unix2-20181003/source/components/namespace/nsparse.c
|
||||
@@ -206,13 +206,14 @@ AcpiNsOneCompleteParse (
|
||||
|
||||
/* Table must consist of at least a complete header */
|
||||
@ -6115,10 +6115,10 @@ Index: acpica-unix-20180810/source/components/namespace/nsparse.c
|
||||
|
||||
Status = AcpiTbGetOwnerId (TableIndex, &OwnerId);
|
||||
if (ACPI_FAILURE (Status))
|
||||
Index: acpica-unix-20180810/source/components/tables/tbdata.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbdata.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/tables/tbdata.c
|
||||
+++ acpica-unix-20180810/source/components/tables/tbdata.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbdata.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbdata.c
|
||||
@@ -552,6 +552,7 @@ AcpiTbVerifyTempTable (
|
||||
UINT32 *TableIndex)
|
||||
{
|
||||
@ -6137,10 +6137,10 @@ Index: acpica-unix-20180810/source/components/tables/tbdata.c
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
ACPI_EXCEPTION ((AE_INFO, AE_NO_MEMORY,
|
||||
Index: acpica-unix-20180810/source/components/tables/tbfadt.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbfadt.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/tables/tbfadt.c
|
||||
+++ acpica-unix-20180810/source/components/tables/tbfadt.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbfadt.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbfadt.c
|
||||
@@ -424,18 +424,20 @@ AcpiTbCreateLocalFadt (
|
||||
ACPI_TABLE_HEADER *Table,
|
||||
UINT32 Length)
|
||||
@ -6252,10 +6252,10 @@ Index: acpica-unix-20180810/source/components/tables/tbfadt.c
|
||||
"PmRegisters", 0);
|
||||
}
|
||||
}
|
||||
Index: acpica-unix-20180810/source/components/tables/tbfind.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbfind.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/tables/tbfind.c
|
||||
+++ acpica-unix-20180810/source/components/tables/tbfind.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbfind.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbfind.c
|
||||
@@ -108,8 +108,11 @@ AcpiTbFindTable (
|
||||
(void) AcpiUtAcquireMutex (ACPI_MTX_TABLES);
|
||||
for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i)
|
||||
@ -6269,10 +6269,10 @@ Index: acpica-unix-20180810/source/components/tables/tbfind.c
|
||||
{
|
||||
/* Not the requested table */
|
||||
|
||||
Index: acpica-unix-20180810/source/components/tables/tbprint.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbprint.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/tables/tbprint.c
|
||||
+++ acpica-unix-20180810/source/components/tables/tbprint.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbprint.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbprint.c
|
||||
@@ -143,15 +143,18 @@ AcpiTbPrintTableHeader (
|
||||
ACPI_TABLE_HEADER *Header)
|
||||
{
|
||||
@ -6314,10 +6314,10 @@ Index: acpica-unix-20180810/source/components/tables/tbprint.c
|
||||
}
|
||||
}
|
||||
|
||||
Index: acpica-unix-20180810/source/components/tables/tbutils.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbutils.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/tables/tbutils.c
|
||||
+++ acpica-unix-20180810/source/components/tables/tbutils.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbutils.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbutils.c
|
||||
@@ -238,7 +238,7 @@ AcpiTbGetRootTableEntry (
|
||||
* 64-bit platform, XSDT: Move (unaligned) 64-bit to local,
|
||||
* return 64-bit
|
||||
@ -6377,10 +6377,10 @@ Index: acpica-unix-20180810/source/components/tables/tbutils.c
|
||||
{
|
||||
AcpiGbl_FadtIndex = TableIndex;
|
||||
AcpiTbParseFadt ();
|
||||
Index: acpica-unix-20180810/source/components/tables/tbxface.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbxface.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/tables/tbxface.c
|
||||
+++ acpica-unix-20180810/source/components/tables/tbxface.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbxface.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbxface.c
|
||||
@@ -293,8 +293,11 @@ AcpiGetTableHeader (
|
||||
|
||||
for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++)
|
||||
@ -6394,10 +6394,10 @@ Index: acpica-unix-20180810/source/components/tables/tbxface.c
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Index: acpica-unix-20180810/source/components/tables/tbxfload.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbxfload.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/components/tables/tbxfload.c
|
||||
+++ acpica-unix-20180810/source/components/tables/tbxfload.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbxfload.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbxfload.c
|
||||
@@ -159,6 +159,7 @@ AcpiTbLoadNamespace (
|
||||
ACPI_TABLE_DESC *Table;
|
||||
UINT32 TablesLoaded = 0;
|
||||
@ -6417,10 +6417,10 @@ Index: acpica-unix-20180810/source/components/tables/tbxfload.c
|
||||
ACPI_FAILURE (AcpiTbValidateTable (Table)))
|
||||
{
|
||||
Status = AE_NO_ACPI_TABLES;
|
||||
Index: acpica-unix-20180810/source/tools/acpiexec/aetables.c
|
||||
Index: acpica-unix2-20181003/source/tools/acpiexec/aetables.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/tools/acpiexec/aetables.c
|
||||
+++ acpica-unix-20180810/source/tools/acpiexec/aetables.c
|
||||
--- acpica-unix2-20181003.orig/source/tools/acpiexec/aetables.c
|
||||
+++ acpica-unix2-20181003/source/tools/acpiexec/aetables.c
|
||||
@@ -146,21 +146,25 @@ AeInitializeTableHeader (
|
||||
char *Signature,
|
||||
UINT32 Length)
|
||||
@ -6572,10 +6572,10 @@ Index: acpica-unix-20180810/source/tools/acpiexec/aetables.c
|
||||
}
|
||||
|
||||
return (AE_OK);
|
||||
Index: acpica-unix-20180810/source/common/dmswitch.c
|
||||
Index: acpica-unix2-20181003/source/common/dmswitch.c
|
||||
===================================================================
|
||||
--- acpica-unix-20180810.orig/source/common/dmswitch.c
|
||||
+++ acpica-unix-20180810/source/common/dmswitch.c
|
||||
--- acpica-unix2-20181003.orig/source/common/dmswitch.c
|
||||
+++ acpica-unix2-20181003/source/common/dmswitch.c
|
||||
@@ -88,13 +88,15 @@ AcpiDmProcessSwitch (
|
||||
ACPI_PARSE_OBJECT_LIST *Current;
|
||||
ACPI_PARSE_OBJECT_LIST *Previous;
|
||||
|
@ -1,10 +1,10 @@
|
||||
This prevents a segfault when an Include file does not exist.
|
||||
|
||||
Index: acpica-unix2-20170929/source/compiler/aslfiles.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslfiles.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20170929.orig/source/compiler/aslfiles.c
|
||||
+++ acpica-unix2-20170929/source/compiler/aslfiles.c
|
||||
@@ -318,7 +318,7 @@ FlOpenIncludeWithPrefix (
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslfiles.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslfiles.c
|
||||
@@ -319,7 +319,7 @@ FlOpenIncludeWithPrefix (
|
||||
if (!IncludeFile)
|
||||
{
|
||||
fprintf (stderr, "Could not open include file %s\n", Pathname);
|
||||
|
132
int-format.patch
132
int-format.patch
@ -24,46 +24,46 @@ From: Al Stone <ahs3@redhat.com>
|
||||
source/tools/acpiexec/aemain.c | 2 +-
|
||||
18 files changed, 28 insertions(+), 28 deletions(-)
|
||||
|
||||
Index: acpica-unix2-20180810/source/compiler/aslcompile.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslcompile.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/compiler/aslcompile.c
|
||||
+++ acpica-unix2-20180810/source/compiler/aslcompile.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslcompile.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslcompile.c
|
||||
@@ -750,7 +750,7 @@ CmCleanupAndExit (
|
||||
|
||||
if (Gbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT)
|
||||
if (AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT)
|
||||
{
|
||||
- printf ("\nMaximum error count (%u) exceeded\n",
|
||||
+ printf ("\nMaximum error count (%d) exceeded\n",
|
||||
ASL_MAX_ERROR_COUNT);
|
||||
}
|
||||
|
||||
Index: acpica-unix2-20180810/source/compiler/aslerror.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslerror.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/compiler/aslerror.c
|
||||
+++ acpica-unix2-20180810/source/compiler/aslerror.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslerror.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslerror.c
|
||||
@@ -880,7 +880,7 @@ AslLogNewError (
|
||||
Gbl_ExceptionCount[Level]++;
|
||||
if (Gbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT)
|
||||
AslGbl_ExceptionCount[Level]++;
|
||||
if (AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT)
|
||||
{
|
||||
- printf ("\nMaximum error count (%u) exceeded\n", ASL_MAX_ERROR_COUNT);
|
||||
+ printf ("\nMaximum error count (%d) exceeded\n", ASL_MAX_ERROR_COUNT);
|
||||
|
||||
Gbl_SourceLine = 0;
|
||||
Gbl_NextError = Gbl_ErrorLog;
|
||||
AslGbl_SourceLine = 0;
|
||||
AslGbl_NextError = AslGbl_ErrorLog;
|
||||
@@ -1036,7 +1036,7 @@ AslDisableException (
|
||||
|
||||
if (Gbl_DisabledMessagesIndex >= ASL_MAX_DISABLED_MESSAGES)
|
||||
if (AslGbl_DisabledMessagesIndex >= ASL_MAX_DISABLED_MESSAGES)
|
||||
{
|
||||
- printf ("Too many messages have been disabled (max %u)\n",
|
||||
+ printf ("Too many messages have been disabled (max %d)\n",
|
||||
ASL_MAX_DISABLED_MESSAGES);
|
||||
return (AE_LIMIT);
|
||||
}
|
||||
Index: acpica-unix2-20180810/source/compiler/aslopt.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslopt.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/compiler/aslopt.c
|
||||
+++ acpica-unix2-20180810/source/compiler/aslopt.c
|
||||
@@ -584,7 +584,7 @@ OptOptimizeNamePath (
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslopt.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslopt.c
|
||||
@@ -583,7 +583,7 @@ OptOptimizeNamePath (
|
||||
}
|
||||
|
||||
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS,
|
||||
@ -72,36 +72,36 @@ Index: acpica-unix2-20180810/source/compiler/aslopt.c
|
||||
Op->Asl.LogicalLineNumber,
|
||||
AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode),
|
||||
AcpiPsGetOpcodeName (Op->Common.AmlOpcode)));
|
||||
Index: acpica-unix2-20180810/source/compiler/aslpredef.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslpredef.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/compiler/aslpredef.c
|
||||
+++ acpica-unix2-20180810/source/compiler/aslpredef.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslpredef.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslpredef.c
|
||||
@@ -114,7 +114,7 @@ ApCheckForPredefinedMethod (
|
||||
|
||||
if (MethodInfo->NumArguments != 0)
|
||||
{
|
||||
- sprintf (MsgBuffer, "%s requires %u", Op->Asl.ExternalName, 0);
|
||||
+ sprintf (MsgBuffer, "%s requires %d", Op->Asl.ExternalName, 0);
|
||||
- sprintf (AslGbl_MsgBuffer, "%s requires %u", Op->Asl.ExternalName, 0);
|
||||
+ sprintf (AslGbl_MsgBuffer, "%s requires %d", Op->Asl.ExternalName, 0);
|
||||
|
||||
AslError (ASL_WARNING, ASL_MSG_RESERVED_ARG_COUNT_HI, Op,
|
||||
MsgBuffer);
|
||||
Index: acpica-unix2-20180810/source/compiler/aslprepkg.c
|
||||
AslGbl_MsgBuffer);
|
||||
Index: acpica-unix2-20181003/source/compiler/aslprepkg.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/compiler/aslprepkg.c
|
||||
+++ acpica-unix2-20180810/source/compiler/aslprepkg.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslprepkg.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslprepkg.c
|
||||
@@ -309,7 +309,7 @@ ApCheckPackage (
|
||||
|
||||
if (Count & 1)
|
||||
{
|
||||
- sprintf (MsgBuffer, "%4.4s: Package length, %d, must be even.",
|
||||
+ sprintf (MsgBuffer, "%4.4s: Package length, %u, must be even.",
|
||||
- sprintf (AslGbl_MsgBuffer, "%4.4s: Package length, %d, must be even.",
|
||||
+ sprintf (AslGbl_MsgBuffer, "%4.4s: Package length, %u, must be even.",
|
||||
Predefined->Info.Name, Count);
|
||||
|
||||
AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH,
|
||||
Index: acpica-unix2-20180810/source/components/debugger/dbexec.c
|
||||
Index: acpica-unix2-20181003/source/components/debugger/dbexec.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/debugger/dbexec.c
|
||||
+++ acpica-unix2-20180810/source/components/debugger/dbexec.c
|
||||
--- acpica-unix2-20181003.orig/source/components/debugger/dbexec.c
|
||||
+++ acpica-unix2-20181003/source/components/debugger/dbexec.c
|
||||
@@ -230,7 +230,7 @@ AcpiDbExecuteMethod (
|
||||
ACPI_ERROR ((AE_INFO,
|
||||
"Possible overflow of internal debugger "
|
||||
@ -111,10 +111,10 @@ Index: acpica-unix2-20180810/source/components/debugger/dbexec.c
|
||||
}
|
||||
}
|
||||
|
||||
Index: acpica-unix2-20180810/source/components/dispatcher/dsmthdat.c
|
||||
Index: acpica-unix2-20181003/source/components/dispatcher/dsmthdat.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/dispatcher/dsmthdat.c
|
||||
+++ acpica-unix2-20180810/source/components/dispatcher/dsmthdat.c
|
||||
--- acpica-unix2-20181003.orig/source/components/dispatcher/dsmthdat.c
|
||||
+++ acpica-unix2-20181003/source/components/dispatcher/dsmthdat.c
|
||||
@@ -291,7 +291,7 @@ AcpiDsMethodDataGetNode (
|
||||
if (Index > ACPI_METHOD_MAX_LOCAL)
|
||||
{
|
||||
@ -133,10 +133,10 @@ Index: acpica-unix2-20180810/source/components/dispatcher/dsmthdat.c
|
||||
Index, ACPI_METHOD_MAX_ARG));
|
||||
return_ACPI_STATUS (AE_AML_INVALID_INDEX);
|
||||
}
|
||||
Index: acpica-unix2-20180810/source/components/dispatcher/dsutils.c
|
||||
Index: acpica-unix2-20181003/source/components/dispatcher/dsutils.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/dispatcher/dsutils.c
|
||||
+++ acpica-unix2-20180810/source/components/dispatcher/dsutils.c
|
||||
--- acpica-unix2-20181003.orig/source/components/dispatcher/dsutils.c
|
||||
+++ acpica-unix2-20181003/source/components/dispatcher/dsutils.c
|
||||
@@ -788,7 +788,7 @@ AcpiDsCreateOperands (
|
||||
}
|
||||
|
||||
@ -146,10 +146,10 @@ Index: acpica-unix2-20180810/source/components/dispatcher/dsutils.c
|
||||
WalkState->NumOperands, ArgCount, Index));
|
||||
|
||||
/* Create the interpreter arguments, in reverse order */
|
||||
Index: acpica-unix2-20180810/source/components/dispatcher/dswscope.c
|
||||
Index: acpica-unix2-20181003/source/components/dispatcher/dswscope.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/dispatcher/dswscope.c
|
||||
+++ acpica-unix2-20180810/source/components/dispatcher/dswscope.c
|
||||
--- acpica-unix2-20181003.orig/source/components/dispatcher/dswscope.c
|
||||
+++ acpica-unix2-20181003/source/components/dispatcher/dswscope.c
|
||||
@@ -149,7 +149,7 @@ AcpiDsScopeStackPush (
|
||||
WalkState->ScopeDepth++;
|
||||
|
||||
@ -168,10 +168,10 @@ Index: acpica-unix2-20180810/source/components/dispatcher/dswscope.c
|
||||
(UINT32) WalkState->ScopeDepth,
|
||||
AcpiUtGetNodeName (ScopeInfo->Scope.Node),
|
||||
AcpiUtGetTypeName (ScopeInfo->Common.Value)));
|
||||
Index: acpica-unix2-20180810/source/components/events/evgpe.c
|
||||
Index: acpica-unix2-20181003/source/components/events/evgpe.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/events/evgpe.c
|
||||
+++ acpica-unix2-20180810/source/components/events/evgpe.c
|
||||
--- acpica-unix2-20181003.orig/source/components/events/evgpe.c
|
||||
+++ acpica-unix2-20181003/source/components/events/evgpe.c
|
||||
@@ -481,7 +481,7 @@ AcpiEvGpeDetect (
|
||||
"Ignore disabled registers for GPE %02X-%02X: "
|
||||
"RunEnable=%02X, WakeEnable=%02X\n",
|
||||
@ -181,10 +181,10 @@ Index: acpica-unix2-20180810/source/components/events/evgpe.c
|
||||
GpeRegisterInfo->EnableForRun,
|
||||
GpeRegisterInfo->EnableForWake));
|
||||
continue;
|
||||
Index: acpica-unix2-20180810/source/components/executer/exdump.c
|
||||
Index: acpica-unix2-20181003/source/components/executer/exdump.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/executer/exdump.c
|
||||
+++ acpica-unix2-20180810/source/components/executer/exdump.c
|
||||
--- acpica-unix2-20181003.orig/source/components/executer/exdump.c
|
||||
+++ acpica-unix2-20181003/source/components/executer/exdump.c
|
||||
@@ -678,7 +678,7 @@ AcpiExDumpOperand (
|
||||
if (Depth > 0)
|
||||
{
|
||||
@ -194,10 +194,10 @@ Index: acpica-unix2-20180810/source/components/executer/exdump.c
|
||||
}
|
||||
else
|
||||
{
|
||||
Index: acpica-unix2-20180810/source/components/executer/exfldio.c
|
||||
Index: acpica-unix2-20181003/source/components/executer/exfldio.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/executer/exfldio.c
|
||||
+++ acpica-unix2-20180810/source/components/executer/exfldio.c
|
||||
--- acpica-unix2-20181003.orig/source/components/executer/exfldio.c
|
||||
+++ acpica-unix2-20181003/source/components/executer/exfldio.c
|
||||
@@ -681,8 +681,8 @@ AcpiExWriteWithUpdateRule (
|
||||
|
||||
ACPI_ERROR ((AE_INFO,
|
||||
@ -209,10 +209,10 @@ Index: acpica-unix2-20180810/source/components/executer/exfldio.c
|
||||
return_ACPI_STATUS (AE_AML_OPERAND_VALUE);
|
||||
}
|
||||
}
|
||||
Index: acpica-unix2-20180810/source/components/executer/exnames.c
|
||||
Index: acpica-unix2-20181003/source/components/executer/exnames.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/executer/exnames.c
|
||||
+++ acpica-unix2-20180810/source/components/executer/exnames.c
|
||||
--- acpica-unix2-20181003.orig/source/components/executer/exnames.c
|
||||
+++ acpica-unix2-20181003/source/components/executer/exnames.c
|
||||
@@ -237,7 +237,7 @@ AcpiExNameSegment (
|
||||
*/
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
|
||||
@ -231,10 +231,10 @@ Index: acpica-unix2-20180810/source/components/executer/exnames.c
|
||||
}
|
||||
|
||||
*InAmlAddress = ACPI_CAST_PTR (UINT8, AmlAddress);
|
||||
Index: acpica-unix2-20180810/source/components/hardware/hwregs.c
|
||||
Index: acpica-unix2-20181003/source/components/hardware/hwregs.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/hardware/hwregs.c
|
||||
+++ acpica-unix2-20180810/source/components/hardware/hwregs.c
|
||||
--- acpica-unix2-20181003.orig/source/components/hardware/hwregs.c
|
||||
+++ acpica-unix2-20181003/source/components/hardware/hwregs.c
|
||||
@@ -460,7 +460,7 @@ AcpiHwClearAcpiStatus (
|
||||
|
||||
|
||||
@ -244,10 +244,10 @@ Index: acpica-unix2-20180810/source/components/hardware/hwregs.c
|
||||
ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address)));
|
||||
|
||||
LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock);
|
||||
Index: acpica-unix2-20180810/source/components/tables/tbfadt.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbfadt.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/tables/tbfadt.c
|
||||
+++ acpica-unix2-20180810/source/components/tables/tbfadt.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbfadt.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbfadt.c
|
||||
@@ -233,7 +233,7 @@ AcpiTbInitGenericAddress (
|
||||
if (!(Flags & ACPI_FADT_GPE_REGISTER))
|
||||
{
|
||||
@ -275,10 +275,10 @@ Index: acpica-unix2-20180810/source/components/tables/tbfadt.c
|
||||
Name, Address32,
|
||||
ACPI_FORMAT_UINT64 (Address64->Address),
|
||||
AcpiGbl_Use32BitFadtAddresses ? 32 : 64));
|
||||
Index: acpica-unix2-20180810/source/components/tables/tbxfroot.c
|
||||
Index: acpica-unix2-20181003/source/components/tables/tbxfroot.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/tables/tbxfroot.c
|
||||
+++ acpica-unix2-20180810/source/components/tables/tbxfroot.c
|
||||
--- acpica-unix2-20181003.orig/source/components/tables/tbxfroot.c
|
||||
+++ acpica-unix2-20181003/source/components/tables/tbxfroot.c
|
||||
@@ -177,7 +177,7 @@ AcpiFindRootPointer (
|
||||
{
|
||||
ACPI_ERROR ((AE_INFO,
|
||||
@ -306,10 +306,10 @@ Index: acpica-unix2-20180810/source/components/tables/tbxfroot.c
|
||||
|
||||
return_ACPI_STATUS (AE_NO_MEMORY);
|
||||
}
|
||||
Index: acpica-unix2-20180810/source/components/utilities/utownerid.c
|
||||
Index: acpica-unix2-20181003/source/components/utilities/utownerid.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/components/utilities/utownerid.c
|
||||
+++ acpica-unix2-20180810/source/components/utilities/utownerid.c
|
||||
--- acpica-unix2-20181003.orig/source/components/utilities/utownerid.c
|
||||
+++ acpica-unix2-20181003/source/components/utilities/utownerid.c
|
||||
@@ -237,7 +237,7 @@ AcpiUtReleaseOwnerId (
|
||||
else
|
||||
{
|
||||
@ -319,10 +319,10 @@ Index: acpica-unix2-20180810/source/components/utilities/utownerid.c
|
||||
}
|
||||
|
||||
(void) AcpiUtReleaseMutex (ACPI_MTX_CACHES);
|
||||
Index: acpica-unix2-20180810/source/tools/acpiexec/aemain.c
|
||||
Index: acpica-unix2-20181003/source/tools/acpiexec/aemain.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180810.orig/source/tools/acpiexec/aemain.c
|
||||
+++ acpica-unix2-20180810/source/tools/acpiexec/aemain.c
|
||||
--- acpica-unix2-20181003.orig/source/tools/acpiexec/aemain.c
|
||||
+++ acpica-unix2-20181003/source/tools/acpiexec/aemain.c
|
||||
@@ -211,7 +211,7 @@ AeDoOptions (
|
||||
|
||||
if (strlen (AcpiGbl_Optarg) > (AE_BUFFER_SIZE -1))
|
||||
|
4
sources
4
sources
@ -1,2 +1,2 @@
|
||||
SHA512 (acpica-unix2-20180810.tar.gz) = 2a20a3253ba597b81ddf12c02edd1bb30aa61d7d2f61bb7851517efd6fba8f0a535b681ed5122bfcd52eed64617a36d94bd20015d40e38cbcc5eea7e37383117
|
||||
SHA512 (acpitests-unix-20180810.tar.gz) = 36c2527e8d670ccfb9a537b4944cfb8432c9638c1427e3c59f614c2ca43a66089228ecb74392301a07f266870e2d79bf0e2c671c6c7af06a4683bf97ac01ba54
|
||||
SHA512 (acpica-unix2-20181003.tar.gz) = 800a666786712d5bb4cea9340e55567b88445b468e25b082b052813111fb7df77f8af5c48ccfc0cb079dd2b17a839c13d99ee6792dffea8be074bb63fde1faf9
|
||||
SHA512 (acpitests-unix-20181003.tar.gz) = efd4a0adb08371f8afe725a47aa4fe335250033ae1a37a54157d08ff17de8dd2186e50ea522befcb71ac02d9a52845a825eed15c3bc5da9b825fbc2379120e1d
|
||||
|
@ -1,30 +1,30 @@
|
||||
Index: acpica-unix2-20180209/source/compiler/aslanalyze.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslanalyze.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180209.orig/source/compiler/aslanalyze.c
|
||||
+++ acpica-unix2-20180209/source/compiler/aslanalyze.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslanalyze.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslanalyze.c
|
||||
@@ -355,11 +355,16 @@ AnCheckMethodReturnValue (
|
||||
*/
|
||||
if (ThisNodeBtype != 0)
|
||||
{
|
||||
- sprintf (MsgBuffer,
|
||||
- sprintf (AslGbl_MsgBuffer,
|
||||
+ int cnt;
|
||||
+ char *strp;
|
||||
+
|
||||
+ cnt = asprintf (&strp,
|
||||
"Method returns [%s], %s operator requires [%s]",
|
||||
StringBuffer, OpInfo->Name, StringBuffer2);
|
||||
AslGbl_StringBuffer, OpInfo->Name, AslGbl_StringBuffer2);
|
||||
|
||||
- AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ArgOp, MsgBuffer);
|
||||
- AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ArgOp, AslGbl_MsgBuffer);
|
||||
+ AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ArgOp, strp);
|
||||
+ if (cnt > 0)
|
||||
+ free(strp);
|
||||
}
|
||||
}
|
||||
}
|
||||
Index: acpica-unix2-20180209/source/compiler/aslpredef.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslpredef.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180209.orig/source/compiler/aslpredef.c
|
||||
+++ acpica-unix2-20180209/source/compiler/aslpredef.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslpredef.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslpredef.c
|
||||
@@ -159,14 +159,19 @@ ApCheckForPredefinedMethod (
|
||||
if (MethodInfo->NumReturnNoValue &&
|
||||
ThisName->Info.ExpectedBtypes)
|
||||
@ -32,16 +32,16 @@ Index: acpica-unix2-20180209/source/compiler/aslpredef.c
|
||||
+ int cnt;
|
||||
+ char *strp;
|
||||
+
|
||||
AcpiUtGetExpectedReturnTypes (StringBuffer,
|
||||
AcpiUtGetExpectedReturnTypes (AslGbl_StringBuffer,
|
||||
ThisName->Info.ExpectedBtypes);
|
||||
|
||||
- sprintf (MsgBuffer, "%s required for %4.4s",
|
||||
- StringBuffer, ThisName->Info.Name);
|
||||
- sprintf (AslGbl_MsgBuffer, "%s required for %4.4s",
|
||||
- AslGbl_StringBuffer, ThisName->Info.Name);
|
||||
+ cnt = asprintf (&strp, "%s required for %4.4s",
|
||||
+ StringBuffer, ThisName->Info.Name);
|
||||
+ AslGbl_StringBuffer, ThisName->Info.Name);
|
||||
|
||||
AslError (ASL_WARNING, ASL_MSG_RESERVED_RETURN_VALUE, Op,
|
||||
- MsgBuffer);
|
||||
- AslGbl_MsgBuffer);
|
||||
+ strp);
|
||||
+ if (cnt > 0)
|
||||
+ free(strp);
|
||||
@ -50,29 +50,29 @@ Index: acpica-unix2-20180209/source/compiler/aslpredef.c
|
||||
}
|
||||
@@ -698,18 +703,26 @@ TypeErrorExit:
|
||||
|
||||
AcpiUtGetExpectedReturnTypes (StringBuffer, ExpectedBtypes);
|
||||
AcpiUtGetExpectedReturnTypes (AslGbl_StringBuffer, ExpectedBtypes);
|
||||
|
||||
- if (PackageIndex == ACPI_NOT_PACKAGE_ELEMENT)
|
||||
- {
|
||||
- sprintf (MsgBuffer, "%4.4s: found %s, %s required",
|
||||
- PredefinedName, TypeName, StringBuffer);
|
||||
- sprintf (AslGbl_MsgBuffer, "%4.4s: found %s, %s required",
|
||||
- PredefinedName, TypeName, AslGbl_StringBuffer);
|
||||
- }
|
||||
- else
|
||||
{
|
||||
- sprintf (MsgBuffer, "%4.4s: found %s at index %u, %s required",
|
||||
- PredefinedName, TypeName, PackageIndex, StringBuffer);
|
||||
- sprintf (AslGbl_MsgBuffer, "%4.4s: found %s at index %u, %s required",
|
||||
- PredefinedName, TypeName, PackageIndex, AslGbl_StringBuffer);
|
||||
+ int cnt;
|
||||
+ char *strp;
|
||||
+
|
||||
+ if (PackageIndex == ACPI_NOT_PACKAGE_ELEMENT)
|
||||
+ {
|
||||
+ cnt = asprintf (&strp, "%4.4s: found %s, %s required",
|
||||
+ PredefinedName, TypeName, StringBuffer);
|
||||
+ PredefinedName, TypeName, AslGbl_StringBuffer);
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ cnt = asprintf (&strp, "%4.4s: found %s at index %u, %s required",
|
||||
+ PredefinedName, TypeName, PackageIndex, StringBuffer);
|
||||
+ PredefinedName, TypeName, PackageIndex, AslGbl_StringBuffer);
|
||||
+ }
|
||||
+
|
||||
+ AslError (ASL_ERROR, ASL_MSG_RESERVED_OPERAND_TYPE, Op, strp);
|
||||
@ -80,14 +80,14 @@ Index: acpica-unix2-20180209/source/compiler/aslpredef.c
|
||||
+ free(strp);
|
||||
}
|
||||
|
||||
- AslError (ASL_ERROR, ASL_MSG_RESERVED_OPERAND_TYPE, Op, MsgBuffer);
|
||||
- AslError (ASL_ERROR, ASL_MSG_RESERVED_OPERAND_TYPE, Op, AslGbl_MsgBuffer);
|
||||
return (AE_TYPE);
|
||||
}
|
||||
|
||||
Index: acpica-unix2-20180209/source/compiler/aslwalks.c
|
||||
Index: acpica-unix2-20181003/source/compiler/aslwalks.c
|
||||
===================================================================
|
||||
--- acpica-unix2-20180209.orig/source/compiler/aslwalks.c
|
||||
+++ acpica-unix2-20180209/source/compiler/aslwalks.c
|
||||
--- acpica-unix2-20181003.orig/source/compiler/aslwalks.c
|
||||
+++ acpica-unix2-20181003/source/compiler/aslwalks.c
|
||||
@@ -507,15 +507,19 @@ AnOperandTypecheckWalkEnd (
|
||||
else if (!CommonBtypes)
|
||||
{
|
||||
@ -95,15 +95,15 @@ Index: acpica-unix2-20180209/source/compiler/aslwalks.c
|
||||
+ int cnt;
|
||||
+ char *strp;
|
||||
|
||||
AnFormatBtype (StringBuffer, ThisNodeBtype);
|
||||
AnFormatBtype (StringBuffer2, RequiredBtypes);
|
||||
AnFormatBtype (AslGbl_StringBuffer, ThisNodeBtype);
|
||||
AnFormatBtype (AslGbl_StringBuffer2, RequiredBtypes);
|
||||
|
||||
- sprintf (MsgBuffer, "[%s] found, %s operator requires [%s]",
|
||||
- sprintf (AslGbl_MsgBuffer, "[%s] found, %s operator requires [%s]",
|
||||
+ cnt = asprintf (&strp, "[%s] found, %s operator requires [%s]",
|
||||
StringBuffer, OpInfo->Name, StringBuffer2);
|
||||
AslGbl_StringBuffer, OpInfo->Name, AslGbl_StringBuffer2);
|
||||
|
||||
AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE,
|
||||
- ArgOp, MsgBuffer);
|
||||
- ArgOp, AslGbl_MsgBuffer);
|
||||
+ ArgOp, strp);
|
||||
+ if (cnt > 0)
|
||||
+ free(strp);
|
||||
|
Loading…
Reference in New Issue
Block a user