SHA256
1
0
forked from pool/acpica
acpica/acpica-no-compiletime.patch

47 lines
1.6 KiB
Diff
Raw Normal View History

Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
diff -ur acpica-unix-20200528.orig/source/compiler/aslcompile.c acpica-unix-20200528/source/compiler/aslcompile.c
--- acpica-unix-20200528.orig/source/compiler/aslcompile.c 2020-07-02 23:06:04.925335370 +0200
+++ acpica-unix-20200528/source/compiler/aslcompile.c 2020-07-02 23:16:10.095860566 +0200
@@ -648,8 +648,6 @@
AslCompilerFileHeader (
UINT32 FileId)
{
Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
- char *NewTime;
- time_t Aclock;
char *Prefix = "";
Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
@@ -692,18 +690,10 @@
/* Compilation header with timestamp */
Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
- Aclock = time (NULL);
- NewTime = ctime (&Aclock);
-
FlPrintFile (FileId,
Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
- "%sCompilation of \"%s\" -",
+ "%sCompilation of \"%s\"\n",
Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
Prefix, AslGbl_Files[ASL_FILE_INPUT].Filename);
Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
- if (NewTime)
- {
- FlPrintFile (FileId, " %s%s\n", NewTime, Prefix);
- }
-
switch (FileId)
Accepting request 818416 from home:elimat:branches:hardware - Update to version 20200528 ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln iASL Compiler/Disassembler and ACPICA tools: * iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. * iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. * iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. * Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. * In order to dump the contents of the ACPI namepsace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] - Refresh parches OBS-URL: https://build.opensuse.org/request/show/818416 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=132
2020-07-06 15:28:38 +00:00
{
case ASL_FILE_C_SOURCE_OUTPUT:
diff -ur acpica-unix-20200528.orig/source/compiler/aslutils.c acpica-unix-20200528/source/compiler/aslutils.c
--- acpica-unix-20200528.orig/source/compiler/aslutils.c 2020-07-02 23:06:04.929335334 +0200
+++ acpica-unix-20200528/source/compiler/aslutils.c 2020-07-02 23:18:46.898454693 +0200
@@ -595,8 +595,8 @@
{
/* Compiler name and version number */
- FlPrintFile (FileId, "%s version %X [%s]\n\n",
- ASL_COMPILER_NAME, (UINT32) ACPI_CA_VERSION, __DATE__);
+ FlPrintFile (FileId, "%s version %X\n\n",
Accepting request 684781 from home:elimat:branches:hardware - Update to version 20190215 Support for ACPI specification version 6.3: * Add PCC operation region support for the AML interpreter. This adds PCC operation region support in the AML interpreter and a default handler for acpiexec. The change also renames the PCC region address space keyword to PlatformCommChannel. * Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG. These methods provide OSPM with health information and device boot status. * PDTT: Add TriggerOrder to the PCC Identifier structure. The field value defines if the trigger needs to be invoked by OSPM before or at the end of kernel crash dump processing/handling operation. * SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT is used for describing devices such as heterogeneous processors, accelerators, GPUs, and IO devices with integrated compute or DMA engines. * MADT: Add support for statistical profiling in GICC. Statistical profiling extension (SPE) is an architecture-specific feature for ARM. * MADT: Add online capable flag. If this bit is set, system hardware supports enabling this processor during OS runtime. * New Error Disconnect Recover Notification value. There are a number of scenarios where system Firmware in collaboration with hardware may disconnect one or more devices from the rest of the system for purposes of error containment. Firmware can use this new notification value to alert OSPM of such a removal. * PPTT: New additional fields in Processor Structure Flags. These flags provide more information about processor topology. * NFIT/Disassembler: Change a field name from "Address Range" to "Region Type". * HMAT updates: make several existing fields to be reserved as well as rename subtable 0 to "memory proximity domain attributes". * GTDT: Add support for new GTDT Revision 3. This revision adds information for the EL2 timer. * iASL: Update the HMAT example template for new fields. * iASL: Add support for the new revision of the GTDT (Rev 3). ACPICA kernel-resident subsystem: * AML Parser: fix the main AML parse loop to correctly skip erroneous extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2- byte extended opcodes. If an error occurs during an AML table load, the AML parser will continue loading the table by skipping the offending opcode. This implements a "load table at any cost" philosophy. iASL Compiler/Disassembler and Tools: * iASL: Add checks for illegal object references, such as a reference outside of method to an object within a method. Such an object is only temporary. * iASL: Emit error for creation of a zero-length operation region. Such a region is rather pointless. If encountered, a runtime error is also implemented in the interpeter. * Debugger: Fix a possible fault with the "test objects" command. * iASL: Makefile: support parent directory filenames containing embedded spaces. * iASL: Update the TPM2 template to revision 4. * iASL: Add the ability to report specific warnings or remarks as errors. * Disassembler: Disassemble OEMx tables as actual AML byte code. Previously, these tables were treated as "unknown table". * iASL: Add definition and disassembly for TPM2 revision 3. * iASL: Add support for TPM2 rev 3 compilation. - Refresh patches - Run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/684781 OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=117
2019-03-14 13:11:32 +00:00
+ ASL_COMPILER_NAME, (UINT32) ACPI_CA_VERSION);
}
/* Summary of main input and output files */