Home | History | Annotate | Download | only in utilities
History log of /src/sys/external/bsd/acpica/dist/utilities/utdecode.c
RevisionDateAuthorComments
 1.22  24-Aug-2025  christos merge our changes into 20250807
 1.21  24-Feb-2025  christos merge conflicts between 2024-08-27 and 2024-12-12
 1.20  01-Sep-2023  christos branches: 1.20.6;
merge conflicts between 20230628 and 20221020
 1.19  27-Aug-2022  christos merge conflicts between acpica-20211217 and acpica-20220331
 1.18  03-Apr-2021  christos Merge local changes with acpica-20210331
 1.17  02-Aug-2020  christos branches: 1.17.2; 1.17.4;
merge conflicts
 1.16  28-Mar-2020  christos merge conflicts
 1.15  29-Apr-2019  christos merge conflicts
 1.14  07-Apr-2018  christos branches: 1.14.2;
Merge conflicts; STA methods and fields are not present anymore.
 1.13  12-Nov-2017  christos branches: 1.13.2;
merge conflicts
 1.12  15-Sep-2017  christos merge conflicts
 1.11  25-Jan-2017  christos merge conflicts
 1.10  18-Jul-2016  christos branches: 1.10.2;
merge conflicts.
 1.9  04-May-2016  christos branches: 1.9.2;
merge new acpica
 1.8  09-Jan-2016  christos merge new acpica
 1.7  13-Apr-2015  christos resolve conflicts.
 1.6  25-Oct-2014  christos branches: 1.6.2;
merge conflicts
 1.5  27-Dec-2013  christos resolve conflicts
 1.4  28-Jun-2011  jruoho branches: 1.4.2; 1.4.12; 1.4.16;
Merge ACPICA 20110623.
 1.3  17-Feb-2011  jruoho branches: 1.3.2; 1.3.6;
Fix ACPI_DEBUG build.
 1.2  17-Feb-2011  jruoho branches: 1.2.2;
Sigh. Why some people are unable to write proper C?
 1.1  17-Feb-2011  jruoho branches: 1.1.1;
Initial revision
 1.1.1.20  24-Aug-2025  christos Import 20250807 (previous was 20241212)
 1.1.1.19  24-Feb-2025  christos Import new acpica-2024-12-12; previous one was 2024-08-27
 1.1.1.18  01-Sep-2023  christos Import acpica-20230628 (last was 20221020)
 1.1.1.17  27-Aug-2022  christos Import acpica-2022-03-31
 1.1.1.16  03-Apr-2021  christos 31 March 2021. Summary of changes for version 20210331:

This release is available at https://acpica.org/downloads, and
includes all ACPI 6.4 support

1) ACPICA kernel-resident subsystem:
ACPI 6.4: iASL: deprecate DDBHandleObj keyword
Always create namespace nodes using AcpiNsCreateNode(). ACPICA is
allocating an object using kmalloc(), but then frees it using
kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong.
Fixed a race condition in generic serial bus operation region
handler. Fixed by Hans de Goede.

2) iASL Compiler/Disassembler and ACPICA tools:

ACPI 6.4: NFIT: add Location Cookie field
ACPI 6.4: HMAT: add new fields/flags
ACPI 6.4: Add new flags in SRAT
ACPI 6.4: add SDEV secure access components
ACPI 6.4: add Csi2Bus resource template
ACPI 6.4: add support for PHAT table
ACPI 6.4: add support for PMTT table
Add disassembly support for the IVRS table. Compilation of the
table is not yet complete. Fixed a potential infinite loop due to
type mismatch. The for-loop is using a UINT8 counter and comparing
the upper limit against a UINT32 AslGbl_ExpectedMessagesIndex
maximum. In the case where AslGbl_ExpectedMessagesIndex is > 255
the counter i will wrap around to zero and the loop will never
exit. I suspect the AslGbl_ExpectedMessagesIndex is never that
high, but fixing this does future proof the code and cleans up
static analysis warnings.Colin King.

iASL/TableCompiler: update it with IORT table E.b revision changes.
From shamiali2008.
iASL/TableCompiler: Add compilation support for the VIOT table.
Signed-off-by: Jean-Philippe Brucker.
iASL/TableCompiler: Add compilation support for CEDT table.
Also, update the CEDT template.
 1.1.1.15  02-Aug-2020  christos VERSION 20200717
Submitted by Bob Moore on 17 July, 2020 - 13:35

17 July 2020. Summary of changes for version 20200717:

1) ACPICA kernel-resident subsystem:

Do not increment OperationRegion reference counts for field units.
Recent server firmware has revealed that this reference count can
overflow on large servers that declare many field units (thousands)
under the same OperationRegion. This occurs because each field unit
declaration will add a reference count to the source OperationRegion.
This release solves the reference count overflow for OperationRegion
objects by preventing fieldUnits from incrementing their parent
OperationRegion's reference count.

Replaced one-element arrays with flexible-arrays, which were
introduced in C99.

Restored the readme file containing the directions for generation
of ACPICA from source on MSVC 2017. Updated the file for MSVC 2017.
File is located at: generate/msvc2017/readme.txt

2) iASL Compiler/Disassembler and ACPICA tools:

iASL: Fixed a regression found in version 20200214. Prevent iASL
from emitting an extra byte of garbage data when control methods
declared a single parameter type without using braces. This extra
byte is known to cause a blue screen on the Windows AML interpreter.

iASL: Made a change to allow external declarations to specify the
type of a named object even when some name segments are not defined.
This change allows the following ASL code to compile (When DEV0 is
not defined or not defined yet):

External (\_SB.DEV0.OBJ1, IntObj)
External (\_SB.DEV0, DeviceObj)

iASL: Fixed a problem where method names in "Alias ()" statement
could be misinterpreted. They are now interpreted correctly as
method invocations.

iASL: capture a method parameter count (Within the Method info
segment, as well as the argument node) when using parameter type
lists.

VERSION 20200528
Submitted by Bob Moore on 28 May, 2020 - 13:24

28 May 2020. Summary of changes for version 20200528:

1) 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

2) 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]
 1.1.1.14  28-Mar-2020  christos 
 1.1.1.13  29-Apr-2019  christos 
 1.1.1.12  07-Apr-2018  christos 
 1.1.1.11  12-Nov-2017  christos 
 1.1.1.10  15-Sep-2017  christos 
 1.1.1.9  25-Jan-2017  christos One more time in the right place...
 1.1.1.8  18-Jul-2016  christos 27 May 2016. Summary of changes for version 20160527:

This release is available at https://acpica.org/downloads


1) ACPICA kernel-resident subsystem:

Temporarily reverted the new arbitrary bit length/alignment support in
AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been
a number of regressions with the new code that need to be fully resolved
and tested before this support can be finally integrated into ACPICA.
Apologies for any inconveniences these issues may have caused.

The ACPI message macros are not configurable (ACPI_MSG_ERROR,
ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,
and ACPI_MSG_BIOS_WARNING). Lv Zheng.

Fixed a couple of GCC warnings associated with the use of the -Wcast-qual
option. Adds a new return macro, return_STR. Junk-uk Kim.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

Current Release:
Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total
Debug Version: 201.5K Code, 82.2K Data, 283.7K Total
Previous Release:
Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
Debug Version: 200.9K Code, 82.2K Data, 283.1K Total
 1.1.1.7  04-May-2016  christos 22 April 2016. Summary of changes for version 20160422:

1) ACPICA kernel-resident subsystem:

Fixed a regression in the GAS (generic address structure) arbitrary bit
support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior
and incorrect return values. Lv Zheng. ACPICA BZ 1270.

ACPI 6.0: Added support for new/renamed resource macros. One new argument
was added to each of these macros, and the original name has been
deprecated. The AML disassembler will always disassemble to the new
names. Support for the new macros was added to iASL, disassembler,
resource manager, and the acpihelp utility. ACPICA BZ 1274.

I2cSerialBus -> I2cSerialBusV2
SpiSerialBus -> SpiSerialBusV2
UartSerialBus -> UartSerialBusV2

ACPI 6.0: Added support for a new integer field that was appended to the
package object returned by the _BIX method. This adds iASL compile-time
and AML runtime error checking. ACPICA BZ 1273.

ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm
Subspace Type2" (Headers, Disassembler, and data table compiler).

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

Current Release:
Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
Debug Version: 201.5K Code, 82.2K Data, 283.7K Total
Previous Release:
Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
Debug Version: 201.0K Code, 82.0K Data, 283.0K Total


2) iASL Compiler/Disassembler and Tools:

iASL: Implemented an ASL grammar extension to allow/enable executable
"module-level code" to be created and executed under the various
operators that create new scopes. This type of AML code is already
supported in all known AML interpreters, and the grammar change will
appear in the next version of the ACPI specification. Simplifies the
conditional runtime creation of named objects under these object types:

Device
PowerResource
Processor
Scope
ThermalZone

iASL: Implemented a new ASL extension, a "For" loop macro to add greater
ease-of-use to the ASL language. The syntax is similar to the
corresponding C operator, and is implemented with the existing AML While
opcode -- thus requiring no changes to existing AML interpreters.

For (Initialize, Predicate, Update) {TermList}

Grammar:
ForTerm :=
For (
Initializer // Nothing | TermArg => ComputationalData
Predicate // Nothing | TermArg => ComputationalData
Update // Nothing | TermArg => ComputationalData
) {TermList}


iASL: The _HID/_ADR detection and validation has been enhanced to search
under conditionals in order to allow these objects to be conditionally
created at runtime.

iASL: Fixed several issues with the constant folding feature. The
improvement allows better detection and resolution of statements that can
be folded at compile time. ACPICA BZ 1266.

iASL/Disassembler: Fixed a couple issues with the Else{If{}...}
conversion to the ASL ElseIf operator where incorrect ASL code could be
generated.

iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where
sometimes an extra (and extraneous) set of parentheses were emitted for
some combinations of operators. Although this did not cause any problems
with recompilation of the disassembled code, it made the code more
difficult to read. David Box. ACPICA BZ 1231.

iASL: Changed to ignore the unreferenced detection for predefined names
of resource descriptor elements, when the resource descriptor is
created/defined within a control method.

iASL: Disassembler: Fix a possible fault with externally declared Buffer
objects.
 1.1.1.6  09-Jan-2016  christos import new acpica:
 1.1.1.5  13-Apr-2015  christos 
 1.1.1.4  25-Oct-2014  christos 
 1.1.1.3  27-Dec-2013  christos import new acpica
 1.1.1.2  28-Jun-2011  jruoho Import ACPICA 20110623.

Selected changes since 20110211 include, among other things, fixes to _PRW
parsing, fix to a regression with the Load() operator, improvements in NULL
package element removal, support for "spurious" global lock interrupts,
execution of orphaned _REG methods under acpiec(4), and smaller iasl(8)
improvements.
 1.1.1.1  17-Feb-2011  jruoho Import 20110211.
 1.2.2.3  17-Feb-2011  bouyer Sync with HEAD
 1.2.2.2  17-Feb-2011  bouyer Sync with HEAD
 1.2.2.1  17-Feb-2011  bouyer file utdecode.c was added on branch bouyer-quota2 on 2011-02-17 12:00:33 +0000
 1.3.6.2  06-Jun-2011  jruoho Sync with HEAD.
 1.3.6.1  17-Feb-2011  jruoho file utdecode.c was added on branch jruoho-x86intr on 2011-06-06 09:09:09 +0000
 1.3.2.2  05-Mar-2011  rmind sync with head
 1.3.2.1  17-Feb-2011  rmind file utdecode.c was added on branch rmind-uvmplock on 2011-03-05 20:54:42 +0000
 1.4.16.1  18-May-2014  rmind sync with head
 1.4.12.2  03-Dec-2017  jdolecek update from HEAD
 1.4.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.2.5  05-Feb-2017  skrll Sync with HEAD
 1.6.2.4  05-Oct-2016  skrll Sync with HEAD
 1.6.2.3  29-May-2016  skrll Sync with HEAD
 1.6.2.2  19-Mar-2016  skrll Sync with HEAD
 1.6.2.1  06-Jun-2015  skrll Sync with HEAD
 1.9.2.2  20-Mar-2017  pgoyette Sync with HEAD
 1.9.2.1  26-Jul-2016  pgoyette Sync with HEAD
 1.10.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.13.2.1  16-Apr-2018  pgoyette Sync with HEAD, resolve some conflicts
 1.14.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.14.2.1  10-Jun-2019  christos Sync with HEAD
 1.17.4.1  03-Apr-2021  thorpej Sync with HEAD.
 1.17.2.1  03-Apr-2021  thorpej Sync with HEAD.
 1.20.6.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed