aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README79
-rw-r--r--changes.txt7209
-rw-r--r--common/adfile.c29
-rw-r--r--common/adisasm.c244
-rw-r--r--common/adwalk.c91
-rw-r--r--common/dmrestag.c17
-rw-r--r--common/dmtable.c209
-rw-r--r--common/dmtbdump.c465
-rw-r--r--common/dmtbinfo.c462
-rw-r--r--common/getopt.c6
-rw-r--r--compiler/Makefile128
-rw-r--r--compiler/aslanalyze.c82
-rw-r--r--compiler/aslcodegen.c39
-rw-r--r--compiler/aslcompile.c25
-rw-r--r--compiler/aslcompiler.h18
-rw-r--r--compiler/aslcompiler.l6
-rw-r--r--compiler/aslcompiler.y270
-rw-r--r--compiler/asldefine.h5
-rw-r--r--compiler/aslerror.c34
-rw-r--r--compiler/aslfiles.c18
-rw-r--r--compiler/aslfold.c5
-rw-r--r--compiler/aslglobal.h9
-rw-r--r--compiler/asllength.c3
-rw-r--r--compiler/asllisting.c9
-rw-r--r--compiler/aslload.c180
-rw-r--r--compiler/asllookup.c107
-rw-r--r--compiler/aslmain.c158
-rw-r--r--compiler/aslmap.c9
-rw-r--r--compiler/aslopcodes.c7
-rw-r--r--compiler/asloperands.c20
-rw-r--r--compiler/aslopt.c15
-rw-r--r--compiler/aslresource.c3
-rw-r--r--compiler/aslrestype1.c3
-rw-r--r--compiler/aslrestype2.c28
-rw-r--r--compiler/aslstartup.c446
-rw-r--r--compiler/aslstubs.c38
-rw-r--r--compiler/asltransform.c32
-rw-r--r--compiler/asltree.c4
-rw-r--r--compiler/asltypes.h19
-rw-r--r--compiler/aslutils.c19
-rw-r--r--compiler/readme.txt85
-rw-r--r--debugger/dbcmds.c318
-rw-r--r--debugger/dbdisply.c8
-rw-r--r--debugger/dbexec.c136
-rw-r--r--debugger/dbfileio.c21
-rw-r--r--debugger/dbhistry.c8
-rw-r--r--debugger/dbinput.c22
-rw-r--r--debugger/dbstats.c24
-rw-r--r--debugger/dbutils.c9
-rw-r--r--debugger/dbxface.c8
-rw-r--r--disassembler/dmbuffer.c121
-rw-r--r--disassembler/dmnames.c14
-rw-r--r--disassembler/dmobject.c96
-rw-r--r--disassembler/dmopcode.c11
-rw-r--r--disassembler/dmresrc.c12
-rw-r--r--disassembler/dmresrcl.c10
-rw-r--r--disassembler/dmresrcs.c4
-rw-r--r--disassembler/dmutils.c4
-rw-r--r--disassembler/dmwalk.c94
-rw-r--r--dispatcher/dsfield.c184
-rw-r--r--dispatcher/dsinit.c21
-rw-r--r--dispatcher/dsmethod.c52
-rw-r--r--dispatcher/dsmthdat.c90
-rw-r--r--dispatcher/dsobject.c185
-rw-r--r--dispatcher/dsopcode.c367
-rw-r--r--dispatcher/dsutils.c19
-rw-r--r--dispatcher/dswexec.c50
-rw-r--r--dispatcher/dswload.c40
-rw-r--r--dispatcher/dswscope.c4
-rw-r--r--dispatcher/dswstate.c32
-rw-r--r--events/evevent.c51
-rw-r--r--events/evgpe.c169
-rw-r--r--events/evgpeblk.c140
-rw-r--r--events/evmisc.c131
-rw-r--r--events/evregion.c167
-rw-r--r--events/evrgnini.c64
-rw-r--r--events/evsci.c15
-rw-r--r--events/evxface.c14
-rw-r--r--events/evxfevnt.c224
-rw-r--r--events/evxfregn.c7
-rw-r--r--executer/exconfig.c309
-rw-r--r--executer/exconvrt.c60
-rw-r--r--executer/excreate.c137
-rw-r--r--executer/exdump.c227
-rw-r--r--executer/exfield.c65
-rw-r--r--executer/exfldio.c92
-rw-r--r--executer/exmisc.c40
-rw-r--r--executer/exmutex.c45
-rw-r--r--executer/exnames.c4
-rw-r--r--executer/exoparg1.c61
-rw-r--r--executer/exoparg2.c10
-rw-r--r--executer/exoparg3.c8
-rw-r--r--executer/exoparg6.c4
-rw-r--r--executer/exprep.c17
-rw-r--r--executer/exregion.c17
-rw-r--r--executer/exresnte.c31
-rw-r--r--executer/exresolv.c105
-rw-r--r--executer/exresop.c72
-rw-r--r--executer/exstore.c176
-rw-r--r--executer/exstoren.c21
-rw-r--r--executer/exstorob.c4
-rw-r--r--executer/exsystem.c5
-rw-r--r--executer/exutils.c7
-rw-r--r--generate/lint/files.lnt15
-rw-r--r--generate/lint/lint.bat16
-rw-r--r--generate/lint/lset.bat1
-rw-r--r--generate/lint/options.lnt79
-rw-r--r--generate/lint/readme.txt14
-rw-r--r--generate/lint/std16.lnt16
-rw-r--r--generate/lint/std32.lnt14
-rw-r--r--generate/lint/std64.lnt18
-rw-r--r--hardware/hwacpi.c13
-rw-r--r--hardware/hwgpe.c102
-rw-r--r--hardware/hwregs.c741
-rw-r--r--hardware/hwsleep.c275
-rw-r--r--hardware/hwtimer.c6
-rw-r--r--hardware/hwvalid.c424
-rw-r--r--hardware/hwxface.c660
-rw-r--r--include/acapps.h13
-rw-r--r--include/accommon.h136
-rw-r--r--include/acconfig.h33
-rw-r--r--include/acdebug.h17
-rw-r--r--include/acdisasm.h64
-rw-r--r--include/acdispat.h25
-rw-r--r--include/acevents.h11
-rw-r--r--include/acexcep.h146
-rw-r--r--include/acglobal.h70
-rw-r--r--include/achware.h56
-rw-r--r--include/acinterp.h15
-rw-r--r--include/aclocal.h271
-rw-r--r--include/acmacros.h435
-rw-r--r--include/acnames.h3
-rw-r--r--include/acnamesp.h60
-rw-r--r--include/acobject.h45
-rw-r--r--include/acopcode.h7
-rw-r--r--include/acoutput.h142
-rw-r--r--include/acparser.h3
-rw-r--r--include/acpi.h35
-rw-r--r--include/acpiosxf.h23
-rw-r--r--include/acpixf.h190
-rw-r--r--include/acpredef.h534
-rw-r--r--include/acresrc.h4
-rw-r--r--include/acrestyp.h544
-rw-r--r--include/acstruct.h13
-rw-r--r--include/actables.h38
-rw-r--r--include/actbl.h101
-rw-r--r--include/actbl1.h784
-rw-r--r--include/actbl2.h3
-rw-r--r--include/actypes.h787
-rw-r--r--include/acutils.h138
-rw-r--r--include/amlcode.h5
-rw-r--r--include/amlresrc.h3
-rw-r--r--include/platform/accygwin.h163
-rw-r--r--include/platform/acefi.h3
-rw-r--r--include/platform/acenv.h318
-rw-r--r--include/platform/acfreebsd.h77
-rw-r--r--include/platform/acgcc.h4
-rw-r--r--include/platform/acintel.h168
-rw-r--r--include/platform/aclinux.h233
-rw-r--r--include/platform/acmsvc.h183
-rw-r--r--include/platform/acnetbsd.h188
-rw-r--r--include/platform/acos2.h172
-rw-r--r--include/platform/acwin.h220
-rw-r--r--include/platform/acwin64.h155
-rw-r--r--namespace/nsaccess.c144
-rw-r--r--namespace/nsalloc.c37
-rw-r--r--namespace/nsdump.c78
-rw-r--r--namespace/nsdumpdv.c3
-rw-r--r--namespace/nseval.c54
-rw-r--r--namespace/nsinit.c34
-rw-r--r--namespace/nsload.c14
-rw-r--r--namespace/nsnames.c56
-rw-r--r--namespace/nsobject.c34
-rw-r--r--namespace/nsparse.c38
-rw-r--r--namespace/nspredef.c1196
-rw-r--r--namespace/nssearch.c51
-rw-r--r--namespace/nsutils.c91
-rw-r--r--namespace/nswalk.c79
-rw-r--r--namespace/nsxfeval.c161
-rw-r--r--namespace/nsxfname.c174
-rw-r--r--namespace/nsxfobj.c13
-rw-r--r--os_specific/service_layers/osunixdir.c306
-rw-r--r--os_specific/service_layers/osunixxf.c1229
-rw-r--r--os_specific/service_layers/oswindir.c324
-rw-r--r--os_specific/service_layers/oswintbl.c276
-rw-r--r--os_specific/service_layers/oswinxf.c1411
-rw-r--r--osunixxf.c382
-rw-r--r--parser/psargs.c62
-rw-r--r--parser/psloop.c30
-rw-r--r--parser/psopcode.c10
-rw-r--r--parser/psparse.c68
-rw-r--r--parser/psscope.c4
-rw-r--r--parser/pstree.c4
-rw-r--r--parser/psutils.c4
-rw-r--r--parser/pswalk.c4
-rw-r--r--parser/psxface.c44
-rw-r--r--resources/rsaddr.c4
-rw-r--r--resources/rscalc.c48
-rw-r--r--resources/rscreate.c69
-rw-r--r--resources/rsdump.c10
-rw-r--r--resources/rsinfo.c4
-rw-r--r--resources/rsio.c43
-rw-r--r--resources/rsirq.c47
-rw-r--r--resources/rslist.c4
-rw-r--r--resources/rsmemory.c4
-rw-r--r--resources/rsmisc.c18
-rw-r--r--resources/rsutils.c15
-rw-r--r--resources/rsxface.c8
-rw-r--r--tables/tbfadt.c470
-rw-r--r--tables/tbfind.c28
-rw-r--r--tables/tbinstal.c195
-rw-r--r--tables/tbutils.c152
-rw-r--r--tables/tbxface.c230
-rw-r--r--tables/tbxfroot.c13
-rw-r--r--tools/acpiexec/Makefile146
-rw-r--r--tools/acpiexec/aecommon.h47
-rw-r--r--tools/acpiexec/aeexec.c589
-rw-r--r--tools/acpiexec/aehandlers.c909
-rw-r--r--tools/acpiexec/aemain.c435
-rw-r--r--tools/acpiexec/aetables.c505
-rw-r--r--tools/acpiexec/osunixdir.c306
-rw-r--r--tools/acpisrc/Makefile17
-rw-r--r--tools/acpisrc/acpisrc.h475
-rw-r--r--tools/acpisrc/ascase.c646
-rw-r--r--tools/acpisrc/asconvrt.c1523
-rw-r--r--tools/acpisrc/asfile.c886
-rw-r--r--tools/acpisrc/asmain.c512
-rw-r--r--tools/acpisrc/asremove.c688
-rw-r--r--tools/acpisrc/astable.c824
-rw-r--r--tools/acpisrc/asutils.c306
-rw-r--r--tools/acpisrc/osunixdir.c306
-rw-r--r--tools/acpixtract/Makefile16
-rw-r--r--tools/acpixtract/acpixtract.c788
-rw-r--r--tools/examples/examples.c506
-rw-r--r--utilities/utalloc.c76
-rw-r--r--utilities/utcache.c12
-rw-r--r--utilities/utclib.c6
-rw-r--r--utilities/utcopy.c250
-rw-r--r--utilities/utdebug.c111
-rw-r--r--utilities/utdelete.c77
-rw-r--r--utilities/uteval.c88
-rw-r--r--utilities/utglobal.c166
-rw-r--r--utilities/utinit.c7
-rw-r--r--utilities/utlock.c277
-rw-r--r--utilities/utmath.c6
-rw-r--r--utilities/utmisc.c140
-rw-r--r--utilities/utmutex.c61
-rw-r--r--utilities/utobject.c124
-rw-r--r--utilities/utresrc.c4
-rw-r--r--utilities/utstate.c6
-rw-r--r--utilities/uttrack.c20
-rw-r--r--utilities/utxface.c121
252 files changed, 34815 insertions, 9074 deletions
diff --git a/README b/README
new file mode 100644
index 000000000000..8b6f3ea904b0
--- /dev/null
+++ b/README
@@ -0,0 +1,79 @@
+acpica-unix
+-----------
+
+This source release includes:
+
+
+1) a cross-OS AML interpreter
+
+This is intended to allow commercial and open source operating systems
+to be enabled for ACPI. OS specific code is still needed, but the
+AML interpreter should greatly improve the development speed of ACPI
+support.
+
+The AML interpreter source should be integrated into the kernel's
+build process. We recommend establishing an automated method for
+this, so later versions can also be incorporated easily. Please see
+the documentation on the website for API and other implementation
+information.
+
+
+2) iasl, an ASL compiler/decompiler
+
+iasl compiles ASL (ACPI Source Language) into AML (ACPI Machine
+Language). This AML is suitable for inclusion as a DSDT in system
+firmware. It also can disassemble AML, for debugging purposes.
+
+To compile:
+
+cd compiler
+make
+
+It has been compiled on Linux, but should easily port to other Unix
+environments.
+
+Run 'iasl -h' for more information, or download the binary version for
+documentation in PDF format.
+
+
+3) acpisrc, a source code conversion tool
+
+acpisrc converts the standard form of the acpica source release (included
+here) into a version that meets Linux coding guidelines. This consists
+mainly of performing a series of string replacements and transformations
+to the code.
+
+To compile:
+
+cd tools/acpisrc
+make
+
+It has been compiled on Linux, but should easily port to other Unix
+environments.
+
+
+4) acpibin, an AML file tool
+
+acpibin compares AML files, dumps AML binary files to text files,
+extracts binary AML from text files, and other AML file
+manipulation.
+
+To compile:
+
+cd tools/acpibin
+make
+
+
+5) acpiexec, a user-space AML interpreter
+
+acpiexec allows the loading of ACPI tables and execution of control
+methods from user space. Useful for debugging AML code and testing
+the AML interpreter.
+
+To compile:
+
+cd tools/acpiexec
+make
+
+
+Thanks -- The ACPI CA Team
diff --git a/changes.txt b/changes.txt
index f26ed47d97f9..89f62326145a 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,59 +1,1462 @@
----------------------------------------
+21 May 2009. Summary of changes for version 20090521:
+
+This release is available at www.acpica.org/downloads
+
+1) ACPI CA Core Subsystem:
+
+Disabled the preservation of the SCI enable bit in the PM1 control register.
+The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be
+a "preserved" bit - "OSPM always preserves this bit position", section
+4.7.3.2.1. However, some machines fail if this bit is in fact preserved
+because the bit needs to be explicitly set by the OS as a workaround. No
+machines fail if the bit is not preserved. Therefore, ACPICA no longer
+attempts to preserve this bit.
+
+Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
+incorrectly formed _PRT package could cause a fault. Added validation to
+ensure that each package element is actually a sub-package.
+
+Implemented a new interface to install or override a single control method,
+AcpiInstallMethod. This interface is useful when debugging in order to repair
+an existing method or to install a missing method without having to override
+the entire ACPI table. See the ACPICA Programmer Reference for use and
+examples. Lin Ming, Bob Moore.
+
+Fixed several reference count issues with the DdbHandle object that is
+created from a Load or LoadTable operator. Prevent premature deletion of the
+object. Also, mark the object as invalid once the table has been unloaded.
+This is needed because the handle itself may not be deleted after the table
+unload, depending on whether it has been stored in a named object by the
+caller. Lin Ming.
+
+Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
+mutexes of the same sync level are acquired but then not released in strict
+opposite order, the internally maintained Current Sync Level becomes confused
+and can cause subsequent execution errors. ACPICA BZ 471.
+
+Changed the allowable release order for ASL mutex objects. The ACPI 4.0
+specification has been changed to make the SyncLevel for mutex objects more
+useful. When releasing a mutex, the SyncLevel of the mutex must now be the
+same as the current sync level. This makes more sense than the previous rule
+(SyncLevel less than or equal). This change updates the code to match the
+specification.
+
+Fixed a problem with the local version of the AcpiOsPurgeCache function. The
+(local) cache must be locked during all cache object deletions. Andrew
+Baumann.
+
+Updated the Load operator to use operation region interfaces. This replaces
+direct memory mapping with region access calls. Now, all region accesses go
+through the installed region handler as they should.
+
+Simplified and optimized the NsGetNextNode function. Reduced parameter count
+and reduced code for this frequently used function.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total
+ Debug Version: 158.0K Code, 49.9K Data, 207.9K Total
+ Current Release:
+ Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total
+ Debug Version: 158.9K Code, 50.0K Data, 208.9K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems
+with sub-table disassembly and handling invalid sub-tables. Attempt recovery
+after an invalid sub-table ID.
+
+----------------------------------------
+22 April 2009. Summary of changes for version 20090422:
+
+This release is available at www.acpica.org/downloads
+
+1) ACPI CA Core Subsystem:
+
+Fixed a compatibility issue with the recently released I/O port protection
+mechanism. For windows compatibility, 1) On a port protection violation,
+simply ignore the request and do not return an exception (allow the control
+method to continue execution.) 2) If only part of the request overlaps a
+protected port, read/write the individual ports that are not protected. Linux
+BZ 13036. Lin Ming
+
+Enhanced the execution of the ASL/AML BreakPoint operator so that it actually
+breaks into the AML debugger if the debugger is present. This matches the
+ACPI-defined behavior.
+
+Fixed several possible warnings related to the use of the configurable
+ACPI_THREAD_ID. This type can now be configured as either an integer or a
+pointer with no warnings. Also fixes several warnings in printf-like
+statements for the 64-bit build when the type is configured as a pointer.
+ACPICA BZ 766, 767.
+
+Fixed a number of possible warnings when compiling with gcc 4+ (depending on
+warning options.) Examples include printf formats, aliasing, unused globals,
+missing prototypes, missing switch default statements, use of non-ANSI
+library functions, use of non-ANSI constructs. See generate/unix/Makefile for
+a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total
+ Debug Version: 157.7K Code, 49.9K Data, 207.6K Total
+ Current Release:
+ Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total
+ Debug Version: 158.0K Code, 49.9K Data, 207.9K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on
+the 64-bit build.
+
+iASL: Fixed a problem where the Unix/Linux versions of the compiler could not
+correctly digest Windows/DOS formatted files (with CR/LF).
+
+iASL: Added a new option for "quiet mode" (-va) that produces only the
+compilation summary, not individual errors and warnings. Useful for large
+batch compilations.
+
+AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex
+timeout that can be used to detect hang conditions during execution of AML
+code (includes both internal semaphores and AML-defined mutexes and events.)
+
+Added new makefiles for the generation of acpica in a generic unix-like
+environment. These makefiles are intended to generate the acpica tools and
+utilities from the original acpica git source tree structure.
+
+Test Suites: Updated and cleaned up the documentation files. Updated the
+copyrights to 2009, affecting all source files. Use the new version of iASL
+with quiet mode. Increased the number of available semaphores in the Windows
+OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added
+an alternate implementation of the semaphore timeout to allow aslts to
+execute fully on Cygwin.
+
+----------------------------------------
+20 March 2009. Summary of changes for version 20090320:
+
+1) ACPI CA Core Subsystem:
+
+Fixed a possible race condition between AcpiWalkNamespace and dynamic table
+unloads. Added a reader/writer locking mechanism to allow multiple concurrent
+namespace walks (readers), but block a dynamic table unload until it can gain
+exclusive write access to the namespace. This fixes a problem where a table
+unload could (possibly catastrophically) delete the portion of the namespace
+that is currently being examined by a walk. Adds a new file, utlock.c, that
+implements the reader/writer lock mechanism. ACPICA BZ 749.
+
+Fixed a regression introduced in version 20090220 where a change to the FADT
+handling could cause the ACPICA subsystem to access non-existent I/O ports.
+
+Modified the handling of FADT register and table (FACS/DSDT) addresses. The
+FADT can contain both 32-bit and 64-bit versions of these addresses.
+Previously, the 64-bit versions were favored, meaning that if both 32 and 64
+versions were valid, but not equal, the 64-bit version was used. This was
+found to cause some machines to fail. Now, in this case, the 32-bit version
+is used instead. This now matches the Windows behavior.
+
+Implemented a new mechanism to protect certain I/O ports. Provides Microsoft
+compatibility and protects the standard PC I/O ports from access via AML
+code. Adds a new file, hwvalid.c
+
+Fixed a possible extraneous warning message from the FADT support. The
+message warns of a 32/64 length mismatch between the legacy and GAS
+definitions for a register.
+
+Removed the obsolete AcpiOsValidateAddress OSL interface. This interface is
+made obsolete by the port protection mechanism above. It was previously used
+to validate the entire address range of an operation region, which could be
+incorrect if the range included illegal ports, but fields within the
+operation region did not actually access those ports. Validation is now
+performed on a per-field basis instead of the entire region.
+
+Modified the handling of the PM1 Status Register ignored bit (bit 11.)
+Ignored bits must be "preserved" according to the ACPI spec. Usually, this
+means a read/modify/write when writing to the register. However, for status
+registers, writing a one means clear the event. Writing a zero means preserve
+the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec,
+and the ACPICA code now simply always writes a zero to the ignored bit.
+
+Modified the handling of ignored bits for the PM1 A/B Control Registers. As
+per the ACPI specification, for the control registers, preserve
+(read/modify/write) all bits that are defined as either reserved or ignored.
+
+Updated the handling of write-only bits in the PM1 A/B Control Registers.
+When reading the register, zero the write-only bits as per the ACPI spec.
+ACPICA BZ 443. Lin Ming.
+
+Removed "Linux" from the list of supported _OSI strings. Linux no longer
+wants to reply true to this request. The Windows strings are the only paths
+through the AML that are tested and known to work properly.
+
+ Previous Release:
+ Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total
+ Debug Version: 156.9K Code, 49.8K Data, 206.7K Total
+ Current Release:
+ Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total
+ Debug Version: 157.7K Code, 49.9K Data, 207.6K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c and
+aetables.c
+
+----------------------------------------
+20 February 2009. Summary of changes for version 20090220:
+
+1) ACPI CA Core Subsystem:
+
+Optimized the ACPI register locking. Removed locking for reads from the ACPI
+bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is
+not required when reading the single-bit registers. The
+AcpiGetRegisterUnlocked function is no longer needed and has been removed.
+This will improve performance for reads on these registers. ACPICA BZ 760.
+
+Fixed the parameter validation for AcpiRead/Write. Now return
+AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if
+the register has an address of zero. Previously, these cases simply returned
+AE_OK. For optional registers such as PM1B status/enable/control, the caller
+should check for a valid register address before calling. ACPICA BZ 748.
+
+Renamed the external ACPI bit register access functions. Renamed
+AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
+functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister.
+Also, restructured the code for these functions by simplifying the code path
+and condensing duplicate code to reduce code size.
+
+Added new functions to transparently handle the possibly split PM1 A/B
+registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions
+now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ
+746.
+
+Added a function to handle the PM1 control registers, AcpiHwWritePm1Control.
+This function writes both of the PM1 control registers (A/B). These registers
+are different than the PM1 A/B status and enable registers in that different
+values can be written to the A/B registers. Most notably, the SLP_TYP bits
+can be different, as per the values returned from the _Sx predefined methods.
+
+Removed an extra register write within AcpiHwClearAcpiStatus. This function
+was writing an optional PM1B status register twice. The existing call to the
+low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B
+register. ACPICA BZ 751.
+
+Split out the PM1 Status registers from the FADT. Added new globals for these
+registers (A/B), similar to the way the PM1 Enable registers are handled.
+Instead of overloading the FADT Event Register blocks. This makes the code
+clearer and less prone to error.
+
+Fixed the warning message for when the platform contains too many ACPI tables
+for the default size of the global root table data structure. The calculation
+for the truncation value was incorrect.
+
+Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
+obsolete macro, since it is now a simple reference to ->common.type. There
+were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
+
+Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
+TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
+simply SLEEP_TYPE. ACPICA BZ 754.
+
+Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
+function is only needed on 64-bit host operating systems and is thus not
+included for 32-bit hosts.
+
+Debug output: print the input and result for invocations of the _OSI reserved
+control method via the ACPI_LV_INFO debug level. Also, reduced some of the
+verbosity of this debug level. Len Brown.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total
+ Debug Version: 157.3K Code, 49.8K Data, 207.1K Total
+ Current Release:
+ Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total
+ Debug Version: 156.9K Code, 49.8K Data, 206.7K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
+various legal performance profiles.
+
+----------------------------------------
+23 January 2009. Summary of changes for version 20090123:
+
+1) ACPI CA Core Subsystem:
+
+Added the 2009 copyright to all module headers and signons. This affects
+virtually every file in the ACPICA core subsystem, the iASL compiler, and
+the tools/utilities.
+
+Implemented a change to allow the host to override any ACPI table, including
+dynamically loaded tables. Previously, only the DSDT could be replaced by the
+host. With this change, the AcpiOsTableOverride interface is called for each
+table found in the RSDT/XSDT during ACPICA initialization, and also whenever
+a table is dynamically loaded via the AML Load operator.
+
+Updated FADT flag definitions, especially the Boot Architecture flags.
+
+Debugger: For the Find command, automatically pad the input ACPI name with
+underscores if the name is shorter than 4 characters. This enables a match
+with the actual namespace entry which is itself padded with underscores.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total
+ Debug Version: 157.1K Code, 49.7K Data, 206.8K Total
+ Current Release:
+ Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total
+ Debug Version: 157.3K Code, 49.8K Data, 207.1K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Fix build error under Bison-2.4.
+
+Dissasembler: Enhanced FADT support. Added decoding of the Boot Architecture
+flags. Now decode all flags, regardless of the FADT version. Flag output
+includes the FADT version which first defined each flag.
+
+The iASL -g option now dumps the RSDT to a file (in addition to the FADT and
+DSDT). Windows only.
+
+----------------------------------------
+04 December 2008. Summary of changes for version 20081204:
+
+1) ACPI CA Core Subsystem:
+
+The ACPICA Programmer Reference has been completely updated and revamped for
+this release. This includes updates to the external interfaces, OSL
+interfaces, the overview sections, and the debugger reference.
+
+Several new ACPICA interfaces have been implemented and documented in the
+programmer reference:
+AcpiReset - Writes the reset value to the FADT-defined reset register.
+AcpiDisableAllGpes - Disable all available GPEs.
+AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
+AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
+AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
+AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
+AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
+
+Most of the public ACPI hardware-related interfaces have been moved to a new
+file, components/hardware/hwxface.c
+
+Enhanced the FADT parsing and low-level ACPI register access: The ACPI
+register lengths within the FADT are now used, and the low level ACPI
+register access no longer hardcodes the ACPI register lengths. Given that
+there may be some risk in actually trusting the FADT register lengths, a run-
+time option was added to fall back to the default hardcoded lengths if the
+FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
+option is set to true for now, and a warning is issued if a suspicious FADT
+register length is overridden with the default value.
+
+Fixed a reference count issue in NsRepairObject. This problem was introduced
+in version 20081031 as part of a fix to repair Buffer objects within
+Packages. Lin Ming.
+
+Added semaphore support to the Linux/Unix application OS-services layer
+(OSL). ACPICA BZ 448. Lin Ming.
+
+Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will
+be implemented in the OSL, or will binary semaphores be used instead.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total
+ Debug Version: 156.4K Code, 49.4K Data, 205.8K Total
+ Current Release:
+ Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total
+ Debug Version: 157.1K Code, 49.7K Data, 206.8K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+iASL: Completed the '-e' option to include additional ACPI tables in order to
+aid with disassembly and External statement generation. ACPICA BZ 742. Lin
+Ming.
+
+iASL: Removed the "named object in while loop" error. The compiler cannot
+determine how many times a loop will execute. ACPICA BZ 730.
+
+Disassembler: Implemented support for FADT revision 2 (MS extension). ACPICA
+BZ 743.
+
+Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG).
+
+----------------------------------------
+31 October 2008. Summary of changes for version 20081031:
+
+1) ACPI CA Core Subsystem:
+
+Restructured the ACPICA header files into public/private. acpi.h now includes
+only the "public" acpica headers. All other acpica headers are "private" and
+should not be included by acpica users. One new file, accommon.h is used to
+include the commonly used private headers for acpica code generation. Future
+plans include moving all private headers to a new subdirectory.
+
+Implemented an automatic Buffer->String return value conversion for
+predefined ACPI methods. For these methods (such as _BIF), added automatic
+conversion for return objects that are required to be a String, but a Buffer
+was found instead. This can happen when reading string battery data from an
+operation region, because it used to be difficult to convert the data from
+buffer to string from within the ASL. Ensures that the host OS is provided
+with a valid null-terminated string. Linux BZ 11822.
+
+Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector
+into two: one for the 32-bit vector, another for the 64-bit vector. This is
+required because the host OS must setup the wake much differently for each
+vector (real vs. protected mode, etc.) and the interface itself should not be
+deciding which vector to use. Also, eliminated the GetFirmwareWakingVector
+interface, as it served no purpose (only the firmware reads the vector, OS
+only writes the vector.) ACPICA BZ 731.
+
+Implemented a mechanism to escape infinite AML While() loops. Added a loop
+counter to force exit from AML While loops if the count becomes too large.
+This can occur in poorly written AML when the hardware does not respond
+within a while loop and the loop does not implement a timeout. The maximum
+loop count is configurable. A new exception code is returned when a loop is
+broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
+
+Optimized the execution of AML While loops. Previously, a control state
+object was allocated and freed for each execution of the loop. The
+optimization is to simply reuse the control state for each iteration. This
+speeds up the raw loop execution time by about 5%.
+
+Enhanced the implicit return mechanism. For Windows compatibility, return an
+implicit integer of value zero for methods that contain no executable code.
+Such methods are seen in the field as stubs (presumably), and can cause
+drivers to fail if they expect a return value. Lin Ming.
+
+Allow multiple backslashes as root prefixes in namepaths. In a fully
+qualified namepath, allow multiple backslash prefixes. This can happen (and
+is seen in the field) because of the use of a double-backslash in strings
+(since backslash is the escape character) causing confusion. ACPICA BZ 739
+Lin Ming.
+
+Emit a warning if two different FACS or DSDT tables are discovered in the
+FADT. Checks if there are two valid but different addresses for the FACS and
+DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
+
+Consolidated the method argument count validation code. Merged the code that
+validates control method argument counts into the predefined validation
+module. Eliminates possible multiple warnings for incorrect argument counts.
+
+Implemented ACPICA example code. Includes code for ACPICA initialization,
+handler installation, and calling a control method. Available at
+source/tools/examples.
+
+Added a global pointer for FACS table to simplify internal FACS access. Use
+the global pointer instead of using AcpiGetTableByIndex for each FACS access.
+This simplifies the code for the Global Lock and the Firmware Waking
+Vector(s).
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total
+ Debug Version: 155.8K Code, 49.1K Data, 204.9K Total
+ Current Release:
+ Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total
+ Debug Version: 156.4K Code, 49.4K Data, 205.8K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+iASL: Improved disassembly of external method calls. Added the -e option to
+allow the inclusion of additional ACPI tables to help with the disassembly of
+method invocations and the generation of external declarations during the
+disassembly. Certain external method invocations cannot be disassembled
+properly without the actual declaration of the method. Use the -e option to
+include the table where the external method(s) are actually declared. Most
+useful for disassembling SSDTs that make method calls back to the master
+DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d
+-e dsdt.aml ssdt1.aml
+
+iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
+problem where the use of an alias within a namepath would result in a not
+found error or cause the compiler to fault. Also now allows forward
+references from the Alias operator itself. ACPICA BZ 738.
+
+----------------------------------------
+26 September 2008. Summary of changes for version 20080926:
+
+1) ACPI CA Core Subsystem:
+
+Designed and implemented a mechanism to validate predefined ACPI methods and
+objects. This code validates the predefined ACPI objects (objects whose names
+start with underscore) that appear in the namespace, at the time they are
+evaluated. The argument count and the type of the returned object are
+validated against the ACPI specification. The purpose of this validation is
+to detect problems with the BIOS-implemented predefined ACPI objects before
+the results are returned to the ACPI-related drivers. Future enhancements may
+include actual repair of incorrect return objects where possible. Two new
+files are nspredef.c and acpredef.h.
+
+Fixed a fault in the AML parser if a memory allocation fails during the Op
+completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
+
+Fixed an issue with implicit return compatibility. This change improves the
+implicit return mechanism to be more compatible with the MS interpreter. Lin
+Ming, ACPICA BZ 349.
+
+Implemented support for zero-length buffer-to-string conversions. Allow zero
+length strings during interpreter buffer-to-string conversions. For example,
+during the ToDecimalString and ToHexString operators, as well as implicit
+conversions. Fiodor Suietov, ACPICA BZ 585.
+
+Fixed two possible memory leaks in the error exit paths of
+AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are
+similar in that they use a stack of state objects in order to eliminate
+recursion. The stack must be fully unwound and deallocated if an error
+occurs. Lin Ming. ACPICA BZ 383.
+
+Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global
+ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
+Moore ACPICA BZ 442.
+
+Removed the obsolete version number in module headers. Removed the
+"$Revision" number that appeared in each module header. This version number
+was useful under SourceSafe and CVS, but has no meaning under git. It is not
+only incorrect, it could also be misleading.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total
+ Debug Version: 153.7K Code, 48.2K Data, 201.9K Total
+ Current Release:
+ Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total
+ Debug Version: 155.8K Code, 49.1K Data, 204.9K Total
+
+----------------------------------------
+29 August 2008. Summary of changes for version 20080829:
+
+1) ACPI CA Core Subsystem:
+
+Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
+Reference. Changes include the elimination of cheating on the Object field
+for the DdbHandle subtype, addition of a reference class field to
+differentiate the various reference types (instead of an AML opcode), and the
+cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
+
+Reduce an error to a warning for an incorrect method argument count.
+Previously aborted with an error if too few arguments were passed to a
+control method via the external ACPICA interface. Now issue a warning instead
+and continue. Handles the case where the method inadvertently declares too
+many arguments, but does not actually use the extra ones. Applies mainly to
+the predefined methods. Lin Ming. Linux BZ 11032.
+
+Disallow the evaluation of named object types with no intrinsic value. Return
+AE_TYPE for objects that have no value and therefore evaluation is undefined:
+Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of
+these types were allowed, but an exception would be generated at some point
+during the evaluation. Now, the error is generated up front.
+
+Fixed a possible memory leak in the AcpiNsGetExternalPathname function
+(nsnames.c). Fixes a leak in the error exit path.
+
+Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug
+levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION
+interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
+ACPI_LV_EVENTS.
+
+Removed obsolete and/or unused exception codes from the acexcep.h header.
+There is the possibility that certain device drivers may be affected if they
+use any of these exceptions.
+
+The ACPICA documentation has been added to the public git source tree, under
+acpica/documents. Included are the ACPICA programmer reference, the iASL
+compiler reference, and the changes.txt release logfile.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total
+ Debug Version: 153.9K Code, 48.4K Data, 202.3K Total
+ Current Release:
+ Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total
+ Debug Version: 153.7K Code, 48.2K Data, 201.9K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
+defines _SCP with 3 arguments. Previous versions defined it with only 1
+argument. iASL now allows both definitions.
+
+iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero-
+length subtables when disassembling ACPI tables. Also fixed a couple of
+errors where a full 16-bit table type field was not extracted from the input
+properly.
+
+acpisrc: Improve comment counting mechanism for generating source code
+statistics. Count first and last lines of multi-line comments as whitespace,
+not comment lines. Handle Linux legal header in addition to standard acpica
+header.
+
+----------------------------------------
+
+29 July 2008. Summary of changes for version 20080729:
+
+This release is available at http://acpica.org/downloads
+Direct git access via http://www.acpica.org/repos/acpica.git
+
+1) ACPI CA Core Subsystem:
+
+Fix a possible deadlock in the GPE dispatch. Remove call to
+AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt
+to acquire the GPE lock but can deadlock since the GPE lock is already held
+at dispatch time. This code was introduced in version 20060831 as a response
+to Linux BZ 6881 and has since been removed from Linux.
+
+Add a function to dereference returned reference objects. Examines the return
+object from a call to AcpiEvaluateObject. Any Index or RefOf references are
+automatically dereferenced in an attempt to return something useful (these
+reference types cannot be converted into an external ACPI_OBJECT.) Provides
+MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
+
+x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
+subtables for the MADT and one new subtable for the SRAT. Includes
+disassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC
+Specification, June 2008.
+
+Additional error checking for pathname utilities. Add error check after all
+calls to AcpiNsGetPathnameLength. Add status return from
+AcpiNsBuildExternalPath and check after all calls. Add parameter validation
+to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
+
+Return status from the global init function AcpiUtGlobalInitialize. This is
+used by both the kernel subsystem and the utilities such as iASL compiler.
+The function could possibly fail when the caches are initialized. Yang Yi.
+
+Add a function to decode reference object types to strings. Created for
+improved error messages.
+
+Improve object conversion error messages. Better error messages during object
+conversion from internal to the external ACPI_OBJECT. Used for external calls
+to AcpiEvaluateObject.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total
+ Debug Version: 153.5K Code, 48.2K Data, 201.7K Total
+ Current Release:
+ Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total
+ Debug Version: 153.9K Code, 48.4K Data, 202.3K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Debugger: fix a possible hang when evaluating non-methods. Fixes a problem
+introduced in version 20080701. If the object being evaluated (via execute
+command) is not a method, the debugger can hang while trying to obtain non-
+existent parameters.
+
+iASL: relax error for using reserved "_T_x" identifiers. These names can
+appear in a disassembled ASL file if they were emitted by the original
+compiler. Instead of issuing an error or warning and forcing the user to
+manually change these names, issue a remark instead.
+
+iASL: error if named object created in while loop. Emit an error if any named
+object is created within a While loop. If allowed, this code will generate a
+run-time error on the second iteration of the loop when an attempt is made to
+create the same named object twice. ACPICA bugzilla 730.
+
+iASL: Support absolute pathnames for include files. Add support for absolute
+pathnames within the Include operator. previously, only relative pathnames
+were supported.
+
+iASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor.
+The ACPI spec requires one interrupt minimum. BZ 423
+
+iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
+Handles the case for the Interrupt Resource Descriptor where
+the ResourceSource argument is omitted but ResourceSourceIndex
+is present. Now leave room for the Index. BZ 426
+
+iASL: Prevent error message if CondRefOf target does not exist. Fixes cases
+where an error message is emitted if the target does not exist. BZ 516
+
+iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
+(get ACPI tables on Windows). This was apparently broken in version 20070919.
+
+AcpiXtract: Handle EOF while extracting data. Correctly handle the case where
+the EOF happens immediately after the last table in the input file. Print
+completion message. Previously, no message was displayed in this case.
+
+----------------------------------------
+01 July 2008. Summary of changes for version 20080701:
+
+This release is available at http://acpica.org/downloads
+Direct git access via http://www.acpica.org/repos/acpica.git
+
+0) Git source tree / acpica.org
+
+Fixed a problem where a git-clone from http would not transfer the entire
+source tree.
+
+1) ACPI CA Core Subsystem:
+
+Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
+enable bit. Now performs a read-change-write of the enable register instead
+of simply writing out the cached enable mask. This will prevent inadvertent
+enabling of GPEs if a rogue GPE is received during initialization (before GPE
+handlers are installed.)
+
+Implemented a copy for dynamically loaded tables. Previously, dynamically
+loaded tables were simply mapped - but on some machines this memory is
+corrupted after suspend. Now copy the table to a local buffer. For the
+OpRegion case, added checksum verify. Use the table length from the table
+header, not the region length. For the Buffer case, use the table length
+also. Dennis Noordsij, Bob Moore. BZ 10734
+
+Fixed a problem where the same ACPI table could not be dynamically loaded and
+unloaded more than once. Without this change, a table cannot be loaded again
+once it has been loaded/unloaded one time. The current mechanism does not
+unregister a table upon an unload. During a load, if the same table is found,
+this no longer returns an exception. BZ 722
+
+Fixed a problem where the wrong descriptor length was calculated for the
+EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag
+are calculated as 12 bytes long, but the actual length in the internal
+descriptor is 16 because of the round-up to 8 on the 64-bit build. Reported
+by Linn Crosetto. BZ 728
+
+Fixed a possible memory leak in the Unload operator. The DdbHandle returned
+by Load() did not have its reference count decremented during unload, leading
+to a memory leak. Lin Ming. BZ 727
+
+Fixed a possible memory leak when deleting thermal/processor objects. Any
+associated notify handlers (and objects) were not being deleted. Fiodor
+Suietov. BZ 506
+
+Fixed the ordering of the ASCII names in the global mutex table to match the
+actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only.
+Vegard Nossum. BZ 726
+
+Enhanced the AcpiGetObjectInfo interface to return the number of required
+arguments if the object is a control method. Added this call to the debugger
+so the proper number of default arguments are passed to a method. This
+prevents a warning when executing methods from AcpiExec.
+
+Added a check for an invalid handle in AcpiGetObjectInfo. Return
+AE_BAD_PARAMETER if input handle is invalid. BZ 474
+
+Fixed an extraneous warning from exconfig.c on the 64-bit build.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total
+ Debug Version: 153.0K Code, 48.2K Data, 201.2K Total
+ Current Release:
+ Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total
+ Debug Version: 153.5K Code, 48.2K Data, 201.7K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
+resource descriptor names.
+
+iASL: Detect invalid ASCII characters in input (windows version). Removed the
+"-CF" flag from the flex compile, enables correct detection of non-ASCII
+characters in the input. BZ 441
+
+iASL: Eliminate warning when result of LoadTable is not used. Eliminate the
+"result of operation not used" warning when the DDB handle returned from
+LoadTable is not used. The warning is not needed. BZ 590
+
+AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to
+pass address of table to the AML. Added option to disable OpRegion simulation
+to allow creation of an OpRegion with a real address that was passed to _CFG.
+All of this allows testing of the Load and Unload operators from AcpiExec.
+
+Debugger: update tables command for unloaded tables. Handle unloaded tables
+and use the standard table header output routine.
+
+----------------------------------------
+09 June 2008. Summary of changes for version 20080609:
+
+1) ACPI CA Core Subsystem:
+
+Implemented a workaround for reversed _PRT entries. A significant number of
+BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
+change dynamically detects and repairs this problem. Provides compatibility
+with MS ACPI. BZ 6859
+
+Simplified the internal ACPI hardware interfaces to eliminate the locking
+flag parameter from Register Read/Write. Added a new external interface,
+AcpiGetRegisterUnlocked.
+
+Fixed a problem where the invocation of a GPE control method could hang. This
+was a regression introduced in 20080514. The new method argument count
+validation mechanism can enter an infinite loop when a GPE method is
+dispatched. Problem fixed by removing the obsolete code that passed GPE block
+information to the notify handler via the control method parameter pointer.
+
+Fixed a problem where the _SST execution status was incorrectly returned to
+the caller of AcpiEnterSleepStatePrep. This was a regression introduced in
+20080514. _SST is optional and a NOT_FOUND exception should never be
+returned. BZ 716
+
+Fixed a problem where a deleted object could be accessed from within the AML
+parser. This was a regression introduced in version 20080123 as a fix for the
+Unload operator. Lin Ming. BZ 10669
+
+Cleaned up the debug operand dump mechanism. Eliminated unnecessary operands
+and eliminated the use of a negative index in a loop. Operands are now
+displayed in the correct order, not backwards. This also fixes a regression
+introduced in 20080514 on 64-bit systems where the elimination of
+ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715
+
+Fixed a possible memory leak in EvPciConfigRegionSetup where the error exit
+path did not delete a locally allocated structure.
+
+Updated definitions for the DMAR and SRAT tables to synchronize with the
+current specifications. Includes disassembler support.
+
+Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
+loop termination value was used. Loop terminated on iteration early, missing
+one mutex. Linn Crosetto
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total
+ Debug Version: 153.3K Code, 48.3K Data, 201.6K Total
+ Current Release:
+ Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total
+ Debug Version: 153.0K Code, 48.2K Data, 201.2K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Disassembler: Implemented support for EisaId() within _CID objects. Now
+disassemble integer _CID objects back to EisaId invocations, including
+multiple integers within _CID packages. Includes single-step support for
+debugger also.
+
+Disassembler: Added support for DMAR and SRAT table definition changes.
+
+----------------------------------------
+14 May 2008. Summary of changes for version 20080514:
+
+1) ACPI CA Core Subsystem:
+
+Fixed a problem where GPEs were enabled too early during the ACPICA
+initialization. This could lead to "handler not installed" errors on some
+machines. Moved GPE enable until after _REG/_STA/_INI methods are run. This
+ensures that all operation regions and devices throughout the namespace have
+been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
+
+Implemented a change to the enter sleep code. Moved execution of the _GTS
+method to just before setting sleep enable bit. The execution was moved from
+AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
+immediately before the SLP_EN bit is set, as per the ACPI specification.
+Luming Yu, BZ 1653.
+
+Implemented a fix to disable unknown GPEs (2nd version). Now always disable
+the GPE, even if ACPICA thinks that that it is already disabled. It is
+possible that the AML or some other code has enabled the GPE unbeknownst to
+the ACPICA code.
+
+Fixed a problem with the Field operator where zero-length fields would return
+an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL
+field declarations in Field(), BankField(), and IndexField(). BZ 10606.
+
+Implemented a fix for the Load operator, now load the table at the namespace
+root. This reverts a change introduced in version 20071019. The table is now
+loaded at the namespace root even though this goes against the ACPI
+specification. This provides compatibility with other ACPI implementations.
+The ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming.
+
+Fixed a problem where ACPICA would not Load() tables with unusual signatures.
+Now ignore ACPI table signature for Load() operator. Only "SSDT" is
+acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
+Therefore, signature validation is worthless. Apparently MS ACPI accepts such
+signatures, ACPICA must be compatible. BZ 10454.
+
+Fixed a possible negative array index in AcpiUtValidateException. Added NULL
+fields to the exception string arrays to eliminate a -1 subtraction on the
+SubStatus field.
+
+Updated the debug tracking macros to reduce overall code and data size.
+Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
+instead of pointers to static strings. Jan Beulich and Bob Moore.
+
+Implemented argument count checking in control method invocation via
+AcpiEvaluateObject. Now emit an error if too few arguments, warning if too
+many. This applies only to extern programmatic control method execution, not
+method-to-method calls within the AML. Lin Ming.
+
+Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no
+longer needed, especially with the removal of 16-bit support. It was replaced
+mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on
+32/64-bit platforms is required.
+
+Added the C const qualifier for appropriate string constants -- mostly
+MODULE_NAME and printf format strings. Jan Beulich.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total
+ Debug Version: 159.4K Code, 64.4K Data, 223.8K Total
+ Current Release:
+ Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total
+ Debug Version: 153.3K Code, 48.3K Data, 201.6K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Implemented ACPI table revision ID validation in the disassembler. Zero is
+always invalid. For DSDTs, the ID controls the interpreter integer width. 1
+means 32-bit and this is unusual. 2 or greater is 64-bit.
+
+----------------------------------------
+21 March 2008. Summary of changes for version 20080321:
+
+1) ACPI CA Core Subsystem:
+
+Implemented an additional change to the GPE support in order to suppress
+spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently
+disable incoming GPEs that are neither enabled nor disabled -- meaning that
+the GPE is unknown to the system. This should prevent future interrupt floods
+from that GPE. BZ 6217 (Zhang Rui)
+
+Fixed a problem where NULL package elements were not returned to the
+AcpiEvaluateObject interface correctly. The element was simply ignored
+instead of returning a NULL ACPI_OBJECT package element, potentially causing
+a buffer overflow and/or confusing the caller who expected a fixed number of
+elements. BZ 10132 (Lin Ming, Bob Moore)
+
+Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword,
+Qword), Field, BankField, and IndexField operators when invoked from inside
+an executing control method. In this case, these operators created namespace
+nodes that were incorrectly left marked as permanent nodes instead of
+temporary nodes. This could cause a problem if there is race condition
+between an exiting control method and a running namespace walk. (Reported by
+Linn Crosetto)
+
+Fixed a problem where the CreateField and CreateXXXField operators would
+incorrectly allow duplicate names (the name of the field) with no exception
+generated.
+
+Implemented several changes for Notify handling. Added support for new Notify
+values (ACPI 2.0+) and improved the Notify debug output. Notify on
+PowerResource objects is no longer allowed, as per the ACPI specification.
+(Bob Moore, Zhang Rui)
+
+All Reference Objects returned via the AcpiEvaluateObject interface are now
+marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for
+NULL objects - either NULL package elements or unresolved named references.
+
+Fixed a problem where an extraneous debug message was produced for package
+objects (when debugging enabled). The message "Package List length larger
+than NumElements count" is now produced in the correct case, and is now an
+error message rather than a debug message. Added a debug message for the
+opposite case, where NumElements is larger than the Package List (the package
+will be padded out with NULL elements as per the ACPI spec.)
+
+Implemented several improvements for the output of the ASL "Debug" object to
+clarify and keep all data for a given object on one output line.
+
+Fixed two size calculation issues with the variable-length Start Dependent
+resource descriptor.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total
+ Debug Version: 158.9K Code, 64.0K Data, 222.9K Total
+ Current Release:
+ Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total
+ Debug Version: 159.4K Code, 64.4K Data, 223.8K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Fixed a problem with the use of the Switch operator where execution of the
+containing method by multiple concurrent threads could cause an
+AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
+actual Switch opcode, it must be simulated with local named temporary
+variables and if/else pairs. The solution chosen was to mark any method that
+uses Switch as Serialized, thus preventing multiple thread entries. BZ 469.
+
+----------------------------------------
+13 February 2008. Summary of changes for version 20080213:
+
+1) ACPI CA Core Subsystem:
+
+Implemented another MS compatibility design change for GPE/Notify handling.
+GPEs are now cleared/enabled asynchronously to allow all pending notifies to
+complete first. It is expected that the OSL will queue the enable request
+behind all pending notify requests (may require changes to the local host OSL
+in AcpiOsExecute). Alexey Starikovskiy.
+
+Fixed a problem where buffer and package objects passed as arguments to a
+control method via the external AcpiEvaluateObject interface could cause an
+AE_AML_INTERNAL exception depending on the order and type of operators
+executed by the target control method.
+
+Fixed a problem where resource descriptor size optimization could cause a
+problem when a _CRS resource template is passed to a _SRS method. The _SRS
+resource template must use the same descriptors (with the same size) as
+returned from _CRS. This change affects the following resource descriptors:
+IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487)
+
+Fixed a problem where a CopyObject to RegionField, BankField, and IndexField
+objects did not perform an implicit conversion as it should. These types must
+retain their initial type permanently as per the ACPI specification. However,
+a CopyObject to all other object types should not perform an implicit
+conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
+
+Fixed a problem with the AcpiGetDevices interface where the mechanism to
+match device CIDs did not examine the entire list of available CIDs, but
+instead aborted on the first non-matching CID. Andrew Patterson.
+
+Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was
+inadvertently changed to return a 16-bit value instead of a 32-bit value,
+truncating the upper dword of a 64-bit value. This macro is only used to
+display debug output, so no incorrect calculations were made. Also,
+reimplemented the macro so that a 64-bit shift is not performed by
+inefficient compilers.
+
+Added missing va_end statements that should correspond with each va_start
+statement.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total
+ Debug Version: 159.0K Code, 63.8K Data, 222.8K Total
+ Current Release:
+ Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total
+ Debug Version: 158.9K Code, 64.0K Data, 222.9K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Implemented full disassembler support for the following new ACPI tables:
+BERT, EINJ, and ERST. Implemented partial disassembler support for the
+complicated HEST table. These tables support the Windows Hardware Error
+Architecture (WHEA).
+
+----------------------------------------
+23 January 2008. Summary of changes for version 20080123:
+
+1) ACPI CA Core Subsystem:
+
+Added the 2008 copyright to all module headers and signons. This affects
+virtually every file in the ACPICA core subsystem, the iASL compiler, and
+the tools/utilities.
+
+Fixed a problem with the SizeOf operator when used with Package and Buffer
+objects. These objects have deferred execution for some arguments, and the
+execution is now completed before the SizeOf is executed. This problem caused
+unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ
+9558
+
+Implemented an enhancement to the interpreter "slack mode". In the absence of
+an explicit return or an implicitly returned object from the last executed
+opcode, a control method will now implicitly return an integer of value 0 for
+Microsoft compatibility. (Lin Ming) BZ 392
+
+Fixed a problem with the Load operator where an exception was not returned in
+the case where the table is already loaded. (Lin Ming) BZ 463
+
+Implemented support for the use of DDBHandles as an Indexed Reference, as per
+the ACPI spec. (Lin Ming) BZ 486
+
+Implemented support for UserTerm (Method invocation) for the Unload operator
+as per the ACPI spec. (Lin Ming) BZ 580
+
+Fixed a problem with the LoadTable operator where the OemId and OemTableId
+input strings could cause unexpected failures if they were shorter than the
+maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
+
+Implemented support for UserTerm (Method invocation) for the Unload operator
+as per the ACPI spec. (Lin Ming) BZ 580
+
+Implemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST,
+IBFT, UEFI, WDAT. Disassembler support is forthcoming.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total
+ Debug Version: 158.6K Code, 63.8K Data, 222.4K Total
+ Current Release:
+ Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total
+ Debug Version: 159.0K Code, 63.8K Data, 222.8K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+Implemented support in the disassembler for checksum validation on incoming
+binary DSDTs and SSDTs. If incorrect, a message is displayed within the table
+header dump at the start of the disassembly.
+
+Implemented additional debugging information in the namespace listing file
+created during compilation. In addition to the namespace hierarchy, the full
+pathname to each namespace object is displayed.
+
+Fixed a problem with the disassembler where invalid ACPI tables could cause
+faults or infinite loops.
+
+Fixed an unexpected parse error when using the optional "parameter types"
+list in a control method declaration. (Lin Ming) BZ 397
+
+Fixed a problem where two External declarations with the same name did not
+cause an error (Lin Ming) BZ 509
+
+Implemented support for full TermArgs (adding Argx, Localx and method
+invocation) for the ParameterData parameter to the LoadTable operator. (Lin
+Ming) BZ 583,587
+
+----------------------------------------
+19 December 2007. Summary of changes for version 20071219:
+
+1) ACPI CA Core Subsystem:
+
+Implemented full support for deferred execution for the TermArg string
+arguments for DataTableRegion. This enables forward references and full
+operand resolution for the three string arguments. Similar to OperationRegion
+deferred argument execution.) Lin Ming. BZ 430
+
+Implemented full argument resolution support for the BankValue argument to
+BankField. Previously, only constants were supported, now any TermArg may be
+used. Lin Ming BZ 387, 393
+
+Fixed a problem with AcpiGetDevices where the search of a branch of the
+device tree could be terminated prematurely. In accordance with the ACPI
+specification, the search down the current branch is terminated if a device
+is both not present and not functional (instead of just not present.) Yakui
+Zhao.
+
+Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly if
+the underlying AML code changed the GPE enable registers. Now, any unknown
+incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled
+instead of simply ignored. Rui Zhang.
+
+Fixed a problem with Index Fields where the Index register was incorrectly
+limited to a maximum of 32 bits. Now any size may be used.
+
+Fixed a couple memory leaks associated with "implicit return" objects when
+the AML Interpreter slack mode is enabled. Lin Ming BZ 349
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total
+ Debug Version: 157.9K Code, 63.6K Data, 221.5K Total
+ Current Release:
+ Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total
+ Debug Version: 158.6K Code, 63.8K Data, 222.4K Total
+
+----------------------------------------
+14 November 2007. Summary of changes for version 20071114:
+
+1) ACPI CA Core Subsystem:
+
+Implemented event counters for each of the Fixed Events, the ACPI SCI
+(interrupt) itself, and control methods executed. Named
+AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These
+should be useful for debugging and statistics.
+
+Implemented a new external interface, AcpiGetStatistics, to retrieve the
+contents of the various event counters. Returns the current values for
+AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
+AcpiMethodCount. The interface can be expanded in the future if new counters
+are added. Device drivers should use this interface rather than access the
+counters directly.
+
+Fixed a problem with the FromBCD and ToBCD operators. With some compilers,
+the ShortDivide function worked incorrectly, causing problems with the BCD
+functions with large input values. A truncation from 64-bit to 32-bit
+inadvertently occurred. Internal BZ 435. Lin Ming
+
+Fixed a problem with Index references passed as method arguments. References
+passed as arguments to control methods were dereferenced immediately (before
+control was passed to the called method). The references are now correctly
+passed directly to the called method. BZ 5389. Lin Ming
+
+Fixed a problem with CopyObject used in conjunction with the Index operator.
+The reference was incorrectly dereferenced before the copy. The reference is
+now correctly copied. BZ 5391. Lin Ming
+
+Fixed a problem with Control Method references within Package objects. These
+references are now correctly generated. This completes the package
+construction overhaul that began in version 20071019.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total
+ Debug Version: 157.2K Code, 63.4K Data, 220.6K Total
+ Current Release:
+ Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total
+ Debug Version: 157.9K Code, 63.6K Data, 221.5K Total
+
+
+2) iASL Compiler/Disassembler and Tools:
+
+The AcpiExec utility now installs handlers for all of the predefined
+Operation Region types. New types supported are: PCI_Config, CMOS, and
+PCIBARTarget.
+
+Fixed a problem with the 64-bit version of AcpiExec where the extended (64-
+bit) address fields for the DSDT and FACS within the FADT were not being
+used, causing truncation of the upper 32-bits of these addresses. Lin Ming
+and Bob Moore
+
+----------------------------------------
+19 October 2007. Summary of changes for version 20071019:
+
+1) ACPI CA Core Subsystem:
+
+Fixed a problem with the Alias operator when the target of the alias is a
+named ASL operator that opens a new scope -- Scope, Device, PowerResource,
+Processor, and ThermalZone. In these cases, any children of the original
+operator could not be accessed via the alias, potentially causing unexpected
+AE_NOT_FOUND exceptions. (BZ 9067)
+
+Fixed a problem with the Package operator where all named references were
+created as object references and left otherwise unresolved. According to the
+ACPI specification, a Package can only contain Data Objects or references to
+control methods. The implication is that named references to Data Objects
+(Integer, Buffer, String, Package, BufferField, Field) should be resolved
+immediately upon package creation. This is the approach taken with this
+change. References to all other named objects (Methods, Devices, Scopes,
+etc.) are all now properly created as reference objects. (BZ 5328)
+
+Reverted a change to Notify handling that was introduced in version
+20070508. This version changed the Notify handling from asynchronous to
+fully synchronous (Device driver Notify handling with respect to the Notify
+ASL operator). It was found that this change caused more problems than it
+solved and was removed by most users.
+
+Fixed a problem with the Increment and Decrement operators where the type of
+the target object could be unexpectedly and incorrectly changed. (BZ 353)
+Lin Ming.
+
+Fixed a problem with the Load and LoadTable operators where the table
+location within the namespace was ignored. Instead, the table was always
+loaded into the root or current scope. Lin Ming.
+
+Fixed a problem with the Load operator when loading a table from a buffer
+object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
+
+Fixed a problem with the Debug object where a store of a DdbHandle reference
+object to the Debug object could cause a fault.
+
+Added a table checksum verification for the Load operator, in the case where
+the load is from a buffer. (BZ 578).
+
+Implemented additional parameter validation for the LoadTable operator. The
+length of the input strings SignatureString, OemIdString, and OemTableId are
+now checked for maximum lengths. (BZ 582) Lin Ming.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total
+ Debug Version: 156.7K Code, 63.2K Data, 219.9K Total
+ Current Release:
+ Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total
+ Debug Version: 157.2K Code, 63.4K Data, 220.6K Total
+
+
+2) iASL Compiler/Disassembler:
+
+Fixed a problem where if a single file was specified and the file did not
+exist, no error message was emitted. (Introduced with wildcard support in
+version 20070917.)
+
+----------------------------------------
+19 September 2007. Summary of changes for version 20070919:
+
+1) ACPI CA Core Subsystem:
+
+Designed and implemented new external interfaces to install and remove
+handlers for ACPI table-related events. Current events that are defined are
+LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
+they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
+AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
+
+Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
+(acpi_serialized option on Linux) could cause some systems to hang during
+initialization. (Bob Moore) BZ 8171
+
+Fixed a problem where objects of certain types (Device, ThermalZone,
+Processor, PowerResource) can be not found if they are declared and
+referenced from within the same control method (Lin Ming) BZ 341
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total
+ Debug Version: 156.3K Code, 63.1K Data, 219.4K Total
+ Current Release:
+ Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total
+ Debug Version: 156.7K Code, 63.2K Data, 219.9K Total
+
+
+2) iASL Compiler/Disassembler:
+
+Implemented support to allow multiple files to be compiled/disassembled in a
+single invocation. This includes command line wildcard support for both the
+Windows and Unix versions of the compiler. This feature simplifies the
+disassembly and compilation of multiple ACPI tables in a single directory.
+
+----------------------------------------
+08 May 2007. Summary of changes for version 20070508:
+
+1) ACPI CA Core Subsystem:
+
+Implemented a Microsoft compatibility design change for the handling of the
+Notify AML operator. Previously, notify handlers were dispatched and
+executed completely asynchronously in a deferred thread. The new design
+still executes the notify handlers in a different thread, but the original
+thread that executed the Notify() now waits at a synchronization point for
+the notify handler to complete. Some machines depend on a synchronous Notify
+operator in order to operate correctly.
+
+Implemented support to allow Package objects to be passed as method
+arguments to the external AcpiEvaluateObject interface. Previously, this
+would return the AE_NOT_IMPLEMENTED exception. This feature had not been
+implemented since there were no reserved control methods that required it
+until recently.
+
+Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that
+contained invalid non-zero values in reserved fields could cause later
+failures because these fields have meaning in later revisions of the FADT.
+For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields
+are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
+
+Fixed a problem where the Global Lock handle was not properly updated if a
+thread that acquired the Global Lock via executing AML code then attempted
+to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe
+Liu.
+
+Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
+could be corrupted if the interrupt being removed was at the head of the
+list. Reported by Linn Crosetto.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
+
+ Previous Release:
+ Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total
+ Debug Version: 155.9K Code, 63.1K Data, 219.0K Total
+ Current Release:
+ Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total
+ Debug Version: 156.3K Code, 63.1K Data, 219.4K Total
+
+----------------------------------------
20 March 2007. Summary of changes for version 20070320:
1) ACPI CA Core Subsystem:
-Implemented a change to the order of interpretation and
-evaluation of AML operand objects within the AML interpreter. The
-interpreter now evaluates operands in the order that they appear
-in the AML stream (and the corresponding ASL code), instead of in
-the reverse order (after the entire operand list has been
-parsed). The previous behavior caused several subtle
-incompatibilities with the Microsoft AML interpreter as well as
-being somewhat non-intuitive. BZ 7871, local BZ 263. Valery
+Implemented a change to the order of interpretation and evaluation of AML
+operand objects within the AML interpreter. The interpreter now evaluates
+operands in the order that they appear in the AML stream (and the
+corresponding ASL code), instead of in the reverse order (after the entire
+operand list has been parsed). The previous behavior caused several subtle
+incompatibilities with the Microsoft AML interpreter as well as being
+somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
+
+Implemented a change to the ACPI Global Lock support. All interfaces to the
+global lock now allow the same thread to acquire the lock multiple times.
+This affects the AcpiAcquireGlobalLock external interface to the global lock
+as well as the internal use of the global lock to support AML fields -- a
+control method that is holding the global lock can now simultaneously access
+AML fields that require global lock protection. Previously, in both cases,
+this would have resulted in an AE_ALREADY_ACQUIRED exception. The change to
+AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
+Controller. There is no change to the behavior of the AML Acquire operator,
+as this can already be used to acquire a mutex multiple times by the same
+thread. BZ 8066. With assistance from Alexey Starikovskiy.
+
+Fixed a problem where invalid objects could be referenced in the AML
+Interpreter after error conditions. During operand evaluation, ensure that
+the internal "Return Object" field is cleared on error and only valid
+pointers are stored there. Caused occasional access to deleted objects that
+resulted in "large reference count" warning messages. Valery Podrezov.
+
+Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur on
+deeply nested control method invocations. BZ 7873, local BZ 487. Valery
Podrezov.
-Implemented a change to the ACPI Global Lock support. All
-interfaces to the global lock now allow the same thread to
-acquire the lock multiple times. This affects the
-AcpiAcquireGlobalLock external interface to the global lock as
-well as the internal use of the global lock to support AML fields
--- a control method that is holding the global lock can now
-simultaneously access AML fields that require global lock
-protection. Previously, in both cases, this would have resulted
-in an AE_ALREADY_ACQUIRED exception. The change to
-AcpiAcquireGlobalLock is of special interest to drivers for the
-Embedded Controller. There is no change to the behavior of the
-AML Acquire operator, as this can already be used to acquire a
-mutex multiple times by the same thread. BZ 8066. With assistance
-from Alexey Starikovskiy.
-
-Fixed a problem where invalid objects could be referenced in the
-AML Interpreter after error conditions. During operand
-evaluation, ensure that the internal "Return Object" field is
-cleared on error and only valid pointers are stored there. Caused
-occasional access to deleted objects that resulted in "large
-reference count" warning messages. Valery Podrezov.
-
-Fixed a problem where an AE_STACK_OVERFLOW internal exception
-could occur on deeply nested control method invocations. BZ 7873,
-local BZ 487. Valery Podrezov.
-
-Fixed an internal problem with the handling of result objects on
-the interpreter result stack. BZ 7872. Valery Podrezov.
-
-Removed obsolete code that handled the case where AML_NAME_OP is
-the target of a reference (Reference.Opcode). This code was no
-longer necessary. BZ 7874. Valery Podrezov.
-
-Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files.
-This was a remnant from the previously discontinued 16-bit
-support.
+Fixed an internal problem with the handling of result objects on the
+interpreter result stack. BZ 7872. Valery Podrezov.
+
+Removed obsolete code that handled the case where AML_NAME_OP is the target
+of a reference (Reference.Opcode). This code was no longer necessary. BZ
+7874. Valery Podrezov.
+
+Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a
+remnant from the previously discontinued 16-bit support.
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total
@@ -67,19 +1470,18 @@ output trace mechanism and has a much larger code and data size.
1) ACPI CA Core Subsystem:
-Added the 2007 copyright to all module headers and signons. This
-affects virtually every file in the ACPICA core subsystem, the
-iASL compiler, and the utilities.
+Added the 2007 copyright to all module headers and signons. This affects
+virtually every file in the ACPICA core subsystem, the iASL compiler, and
+the utilities.
-Implemented a fix for an incorrect parameter passed to
-AcpiTbDeleteTable during a table load. A bad pointer was passed
-in the case where the DSDT is overridden, causing a fault in this
-case.
+Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
+during a table load. A bad pointer was passed in the case where the DSDT is
+overridden, causing a fault in this case.
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total
@@ -93,31 +1495,29 @@ output trace mechanism and has a much larger code and data size.
1) ACPI CA Core Subsystem:
-Support for 16-bit ACPICA has been completely removed since it is
-no longer necessary and it clutters the code. All 16-bit macros,
-types, and conditional compiles have been removed, cleaning up
-and simplifying the code across the entire subsystem. DOS support
-is no longer needed since the bootable Linux firmware kit is now
-available.
-
-The handler for the Global Lock is now removed during
-AcpiTerminate to enable a clean subsystem restart, via the
-implementation of the AcpiEvRemoveGlobalLockHandler function.
-(With assistance from Joel Bretz, HP)
+Support for 16-bit ACPICA has been completely removed since it is no longer
+necessary and it clutters the code. All 16-bit macros, types, and
+conditional compiles have been removed, cleaning up and simplifying the code
+across the entire subsystem. DOS support is no longer needed since the
+bootable Linux firmware kit is now available.
-Implemented enhancements to the multithreading support within the
-debugger to enable improved multithreading debugging and
-evaluation of the subsystem. (Valery Podrezov)
+The handler for the Global Lock is now removed during AcpiTerminate to
+enable a clean subsystem restart, via the implementation of the
+AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
+HP)
-Debugger: Enhanced the Statistics/Memory command to emit the
-total (maximum) memory used during the execution, as well as the
-maximum memory consumed by each of the various object types.
+Implemented enhancements to the multithreading support within the debugger
+to enable improved multithreading debugging and evaluation of the subsystem.
(Valery Podrezov)
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Debugger: Enhanced the Statistics/Memory command to emit the total (maximum)
+memory used during the execution, as well as the maximum memory consumed by
+each of the various object types. (Valery Podrezov)
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total
@@ -129,44 +1529,39 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-AcpiExec: Implemented a new option (-m) to display full memory
-use statistics upon subsystem/program termination. (Valery
-Podrezov)
+AcpiExec: Implemented a new option (-m) to display full memory use
+statistics upon subsystem/program termination. (Valery Podrezov)
----------------------------------------
09 November 2006. Summary of changes for version 20061109:
1) ACPI CA Core Subsystem:
-Optimized the Load ASL operator in the case where the source
-operand is an operation region. Simply map the operation region
-memory, instead of performing a bytewise read. (Region must be of
-type SystemMemory, see below.)
+Optimized the Load ASL operator in the case where the source operand is an
+operation region. Simply map the operation region memory, instead of
+performing a bytewise read. (Region must be of type SystemMemory, see
+below.)
-Fixed the Load ASL operator for the case where the source operand
-is a region field. A buffer object is also allowed as the source
-operand. BZ 480
+Fixed the Load ASL operator for the case where the source operand is a
+region field. A buffer object is also allowed as the source operand. BZ 480
-Fixed a problem where the Load ASL operator allowed the source
-operand to be an operation region of any type. It is now
-restricted to regions of type SystemMemory, as per the ACPI
-specification. BZ 481
+Fixed a problem where the Load ASL operator allowed the source operand to be
+an operation region of any type. It is now restricted to regions of type
+SystemMemory, as per the ACPI specification. BZ 481
-Additional cleanup and optimizations for the new Table Manager
-code.
+Additional cleanup and optimizations for the new Table Manager code.
-AcpiEnable will now fail if all of the required ACPI tables are
-not loaded (FADT, FACS, DSDT). BZ 477
+AcpiEnable will now fail if all of the required ACPI tables are not loaded
+(FADT, FACS, DSDT). BZ 477
-Added #pragma pack(8/4) to acobject.h to ensure that the
-structures in this header are always compiled as aligned. The
-ACPI_OPERAND_OBJECT has been manually optimized to be aligned and
-will not work if it is byte-packed.
+Added #pragma pack(8/4) to acobject.h to ensure that the structures in this
+header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
+manually optimized to be aligned and will not work if it is byte-packed.
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total
@@ -178,55 +1573,52 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Fixed a problem where the presence of the _OSI predefined control
-method within complex expressions could cause an internal
-compiler error.
+Fixed a problem where the presence of the _OSI predefined control method
+within complex expressions could cause an internal compiler error.
-AcpiExec: Implemented full region support for multiple address
-spaces. SpaceId is now part of the REGION object. BZ 429
+AcpiExec: Implemented full region support for multiple address spaces.
+SpaceId is now part of the REGION object. BZ 429
----------------------------------------
11 October 2006. Summary of changes for version 20061011:
1) ACPI CA Core Subsystem:
-Completed an AML interpreter performance enhancement for control
-method execution. Previously a 2-pass parse/execution, control
-methods are now completely parsed and executed in a single pass.
-This improves overall interpreter performance by ~25%, reduces
-code size, and reduces CPU stack use. (Valery Podrezov +
-interpreter changes in version 20051202 that eliminated namespace
-loading during the pass one parse.)
-
-Implemented _CID support for PCI Root Bridge detection. If the
-_HID does not match the predefined PCI Root Bridge IDs, the _CID
-list (if present) is now obtained and also checked for an ID
-match.
-
-Implemented additional support for the PCI _ADR execution:
-upsearch until a device scope is found before executing _ADR.
-This allows PCI_Config operation regions to be declared locally
-within control methods underneath PCI device objects.
-
-Fixed a problem with a possible race condition between threads
-executing AcpiWalkNamespace and the AML interpreter. This
-condition was removed by modifying AcpiWalkNamespace to (by
-default) ignore all temporary namespace entries created during
-any concurrent control method execution. An additional namespace
-race condition is known to exist between AcpiWalkNamespace and
-the Load/Unload ASL operators and is still under investigation.
-
-Restructured the AML ParseLoop function, breaking it into several
-subfunctions in order to reduce CPU stack use and improve
-maintainability. (Mikhail Kouzmich)
-
-AcpiGetHandle: Fix for parameter validation to detect invalid
-combinations of prefix handle and pathname. BZ 478
-
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Completed an AML interpreter performance enhancement for control method
+execution. Previously a 2-pass parse/execution, control methods are now
+completely parsed and executed in a single pass. This improves overall
+interpreter performance by ~25%, reduces code size, and reduces CPU stack
+use. (Valery Podrezov + interpreter changes in version 20051202 that
+eliminated namespace loading during the pass one parse.)
+
+Implemented _CID support for PCI Root Bridge detection. If the _HID does not
+match the predefined PCI Root Bridge IDs, the _CID list (if present) is now
+obtained and also checked for an ID match.
+
+Implemented additional support for the PCI _ADR execution: upsearch until a
+device scope is found before executing _ADR. This allows PCI_Config
+operation regions to be declared locally within control methods underneath
+PCI device objects.
+
+Fixed a problem with a possible race condition between threads executing
+AcpiWalkNamespace and the AML interpreter. This condition was removed by
+modifying AcpiWalkNamespace to (by default) ignore all temporary namespace
+entries created during any concurrent control method execution. An
+additional namespace race condition is known to exist between
+AcpiWalkNamespace and the Load/Unload ASL operators and is still under
+investigation.
+
+Restructured the AML ParseLoop function, breaking it into several
+subfunctions in order to reduce CPU stack use and improve maintainability.
+(Mikhail Kouzmich)
+
+AcpiGetHandle: Fix for parameter validation to detect invalid combinations
+of prefix handle and pathname. BZ 478
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total
@@ -237,31 +1629,30 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Ported the -g option (get local ACPI tables) to the new ACPICA
-Table Manager to restore original behavior.
+Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager
+to restore original behavior.
----------------------------------------
27 September 2006. Summary of changes for version 20060927:
1) ACPI CA Core Subsystem:
-Removed the "Flags" parameter from AcpiGetRegister and
-AcpiSetRegister. These functions now use a spinlock for mutual
-exclusion and the interrupt level indication flag is not needed.
+Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
+These functions now use a spinlock for mutual exclusion and the interrupt
+level indication flag is not needed.
-Fixed a problem with the Global Lock where the lock could appear
-to be obtained before it is actually obtained. The global lock
-semaphore was inadvertently created with one unit instead of zero
-units. (BZ 464) Fiodor Suietov.
+Fixed a problem with the Global Lock where the lock could appear to be
+obtained before it is actually obtained. The global lock semaphore was
+inadvertently created with one unit instead of zero units. (BZ 464) Fiodor
+Suietov.
-Fixed a possible memory leak and fault in
-AcpiExResolveObjectToValue during a read from a buffer or region
-field. (BZ 458) Fiodor Suietov.
+Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during
+a read from a buffer or region field. (BZ 458) Fiodor Suietov.
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total
@@ -273,59 +1664,56 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Fixed a compilation problem with the pre-defined Resource
-Descriptor field names where an "object does not exist" error
-could be incorrectly generated if the parent ResourceTemplate
-pathname places the template within a different namespace scope
-than the current scope. (BZ 7212)
+Fixed a compilation problem with the pre-defined Resource Descriptor field
+names where an "object does not exist" error could be incorrectly generated
+if the parent ResourceTemplate pathname places the template within a
+different namespace scope than the current scope. (BZ 7212)
-Fixed a problem where the compiler could hang after syntax errors
-detected in an ElseIf construct. (BZ 453)
+Fixed a problem where the compiler could hang after syntax errors detected
+in an ElseIf construct. (BZ 453)
-Fixed a problem with the AmlFilename parameter to the
-DefinitionBlock() operator. An incorrect output filename was
-produced when this parameter was a null string (""). Now, the
-original input filename is used as the AML output filename, with
-an ".aml" extension.
+Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
+operator. An incorrect output filename was produced when this parameter was
+a null string (""). Now, the original input filename is used as the AML
+output filename, with an ".aml" extension.
-Implemented a generic batch command mode for the AcpiExec utility
-(execute any AML debugger command) (Valery Podrezov).
+Implemented a generic batch command mode for the AcpiExec utility (execute
+any AML debugger command) (Valery Podrezov).
----------------------------------------
12 September 2006. Summary of changes for version 20060912:
1) ACPI CA Core Subsystem:
-Enhanced the implementation of the "serialized mode" of the
-interpreter (enabled via the AcpiGbl_AllMethodsSerialized flag.)
-When this mode is specified, instead of creating a serialization
-semaphore per control method, the interpreter lock is simply no
-longer released before a blocking operation during control method
-execution. This effectively makes the AML Interpreter single-
-threaded. The overhead of a semaphore per-method is eliminated.
-
-Fixed a regression where an error was no longer emitted if a
-control method attempts to create 2 objects of the same name.
-This once again returns AE_ALREADY_EXISTS. When this exception
-occurs, it invokes the mechanism that will dynamically serialize
-the control method to possible prevent future errors. (BZ 440)
-
-Integrated a fix for a problem with PCI Express HID detection in
-the PCI Config Space setup procedure. (BZ 7145)
-
-Moved all FADT-related functions to a new file, tbfadt.c.
-Eliminated the AcpiHwInitialize function - the FADT registers are
-now validated when the table is loaded.
-
-Added two new warnings during FADT verification - 1) if the FADT
-is larger than the largest known FADT version, and 2) if there is
-a mismatch between a 32-bit block address and the 64-bit X
-counterpart (when both are non-zero.)
-
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Enhanced the implementation of the "serialized mode" of the interpreter
+(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
+specified, instead of creating a serialization semaphore per control method,
+the interpreter lock is simply no longer released before a blocking
+operation during control method execution. This effectively makes the AML
+Interpreter single-threaded. The overhead of a semaphore per-method is
+eliminated.
+
+Fixed a regression where an error was no longer emitted if a control method
+attempts to create 2 objects of the same name. This once again returns
+AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that
+will dynamically serialize the control method to possible prevent future
+errors. (BZ 440)
+
+Integrated a fix for a problem with PCI Express HID detection in the PCI
+Config Space setup procedure. (BZ 7145)
+
+Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
+AcpiHwInitialize function - the FADT registers are now validated when the
+table is loaded.
+
+Added two new warnings during FADT verification - 1) if the FADT is larger
+than the largest known FADT version, and 2) if there is a mismatch between a
+32-bit block address and the 64-bit X counterpart (when both are non-zero.)
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total
@@ -337,31 +1725,29 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Fixed a problem with the implementation of the Switch() operator
-where the temporary variable was declared too close to the actual
-Switch, instead of at method level. This could cause a problem if
-the Switch() operator is within a while loop, causing an error on
-the second iteration. (BZ 460)
+Fixed a problem with the implementation of the Switch() operator where the
+temporary variable was declared too close to the actual Switch, instead of
+at method level. This could cause a problem if the Switch() operator is
+within a while loop, causing an error on the second iteration. (BZ 460)
-Disassembler - fix for error emitted for unknown type for target
-of scope operator. Now, ignore it and continue.
+Disassembler - fix for error emitted for unknown type for target of scope
+operator. Now, ignore it and continue.
-Disassembly of an FADT now verifies the input FADT and reports
-any errors found. Fix for proper disassembly of full-sized (ACPI
-2.0) FADTs.
+Disassembly of an FADT now verifies the input FADT and reports any errors
+found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
-Disassembly of raw data buffers with byte initialization data now
-prefixes each output line with the current buffer offset.
+Disassembly of raw data buffers with byte initialization data now prefixes
+each output line with the current buffer offset.
-Disassembly of ASF! table now includes all variable-length data
-fields at the end of some of the subtables.
+Disassembly of ASF! table now includes all variable-length data fields at
+the end of some of the subtables.
-The disassembler now emits a comment if a buffer appears to be a
-ResourceTemplate, but cannot be disassembled as such because the
-EndTag does not appear at the very end of the buffer.
+The disassembler now emits a comment if a buffer appears to be a
+ResourceTemplate, but cannot be disassembled as such because the EndTag does
+not appear at the very end of the buffer.
-AcpiExec - Added the "-t" command line option to enable the
-serialized mode of the AML interpreter.
+AcpiExec - Added the "-t" command line option to enable the serialized mode
+of the AML interpreter.
----------------------------------------
31 August 2006. Summary of changes for version 20060831:
@@ -369,30 +1755,27 @@ serialized mode of the AML interpreter.
1) ACPI CA Core Subsystem:
Miscellaneous fixes for the Table Manager:
-- Correctly initialize internal common FADT for all 64-bit "X"
-fields
+- Correctly initialize internal common FADT for all 64-bit "X" fields
- Fixed a couple table mapping issues during table load
- Fixed a couple alignment issues for IA64
- Initialize input array to zero in AcpiInitializeTables
-- Additional parameter validation for AcpiGetTable,
-AcpiGetTableHeader, AcpiGetTableByIndex
+- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
+AcpiGetTableByIndex
-Change for GPE support: when a "wake" GPE is received, all wake
-GPEs are now immediately disabled to prevent the waking GPE from
-firing again and to prevent other wake GPEs from interrupting the
-wake process.
+Change for GPE support: when a "wake" GPE is received, all wake GPEs are now
+immediately disabled to prevent the waking GPE from firing again and to
+prevent other wake GPEs from interrupting the wake process.
-Added the AcpiGpeCount global that tracks the number of processed
-GPEs, to be used for debugging systems with a large number of
-ACPI interrupts.
+Added the AcpiGpeCount global that tracks the number of processed GPEs, to
+be used for debugging systems with a large number of ACPI interrupts.
-Implemented support for the "DMAR" ACPI table (DMA Redirection
-Table) in both the ACPICA headers and the disassembler.
+Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
+both the ACPICA headers and the disassembler.
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total
@@ -411,82 +1794,75 @@ Disassembler support for the DMAR ACPI table.
1) ACPI CA Core Subsystem:
-The Table Manager component has been completely redesigned and
-reimplemented. The new design is much simpler, and reduces the
-overall code and data size of the kernel-resident ACPICA by
-approximately 5%. Also, it is now possible to obtain the ACPI
-tables very early during kernel initialization, even before
-dynamic memory management is initialized. (Alexey Starikovskiy,
-Fiodor Suietov, Bob Moore)
+The Table Manager component has been completely redesigned and
+reimplemented. The new design is much simpler, and reduces the overall code
+and data size of the kernel-resident ACPICA by approximately 5%. Also, it is
+now possible to obtain the ACPI tables very early during kernel
+initialization, even before dynamic memory management is initialized.
+(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
Obsolete ACPICA interfaces:
-- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early
-kernel init time).
+- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init
+time).
- AcpiLoadTable: Not needed.
- AcpiUnloadTable: Not needed.
New ACPICA interfaces:
-- AcpiInitializeTables: Must be called before the table manager
-can be used.
-- AcpiReallocateRootTable: Used to transfer the root table to
-dynamically allocated memory after it becomes available.
-- AcpiGetTableByIndex: Allows the host to easily enumerate all
-ACPI tables in the RSDT/XSDT.
+- AcpiInitializeTables: Must be called before the table manager can be used.
+- AcpiReallocateRootTable: Used to transfer the root table to dynamically
+allocated memory after it becomes available.
+- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables
+in the RSDT/XSDT.
Other ACPICA changes:
-- AcpiGetTableHeader returns the actual mapped table header, not
-a copy. Use AcpiOsUnmapMemory to free this mapping.
-- AcpiGetTable returns the actual mapped table. The mapping is
-managed internally and must not be deleted by the caller. Use of
-this interface causes no additional dynamic memory allocation.
-- AcpiFindRootPointer: Support for physical addressing has been
-eliminated, it appeared to be unused.
-- The interface to AcpiOsMapMemory has changed to be consistent
-with the other allocation interfaces.
-- The interface to AcpiOsGetRootPointer has changed to eliminate
-unnecessary parameters.
-- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64
-bits on 64-bit platforms. Was previously 64 bits on all
-platforms.
-- The interface to the ACPI Global Lock acquire/release macros
-have changed slightly since ACPICA no longer keeps a local copy
-of the FACS with a constructed pointer to the actual global lock.
+- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use
+AcpiOsUnmapMemory to free this mapping.
+- AcpiGetTable returns the actual mapped table. The mapping is managed
+internally and must not be deleted by the caller. Use of this interface
+causes no additional dynamic memory allocation.
+- AcpiFindRootPointer: Support for physical addressing has been eliminated,
+it appeared to be unused.
+- The interface to AcpiOsMapMemory has changed to be consistent with the
+other allocation interfaces.
+- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary
+parameters.
+- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64-
+bit platforms. Was previously 64 bits on all platforms.
+- The interface to the ACPI Global Lock acquire/release macros have changed
+slightly since ACPICA no longer keeps a local copy of the FACS with a
+constructed pointer to the actual global lock.
Porting to the new table manager:
-- AcpiInitializeTables: Must be called once, and can be called
-anytime during the OS initialization process. It allows the host
-to specify an area of memory to be used to store the internal
-version of the RSDT/XSDT (root table). This allows the host to
-access ACPI tables before memory management is initialized and
-running.
-- AcpiReallocateRootTable: Can be called after memory management
-is running to copy the root table to a dynamically allocated
-array, freeing up the scratch memory specified in the call to
-AcpiInitializeTables.
-- AcpiSubsystemInitialize: This existing interface is independent
-of the Table Manager, and does not have to be called before the
-Table Manager can be used, it only must be called before the rest
-of ACPICA can be used.
-- ACPI Tables: Some changes have been made to the names and
-structure of the actbl.h and actbl1.h header files and may
-require changes to existing code. For example, bitfields have
-been completely removed because of their lack of portability
-across C compilers.
-- Update interfaces to the Global Lock acquire/release macros if
-local versions are used. (see acwin.h)
+- AcpiInitializeTables: Must be called once, and can be called anytime
+during the OS initialization process. It allows the host to specify an area
+of memory to be used to store the internal version of the RSDT/XSDT (root
+table). This allows the host to access ACPI tables before memory management
+is initialized and running.
+- AcpiReallocateRootTable: Can be called after memory management is running
+to copy the root table to a dynamically allocated array, freeing up the
+scratch memory specified in the call to AcpiInitializeTables.
+- AcpiSubsystemInitialize: This existing interface is independent of the
+Table Manager, and does not have to be called before the Table Manager can
+be used, it only must be called before the rest of ACPICA can be used.
+- ACPI Tables: Some changes have been made to the names and structure of the
+actbl.h and actbl1.h header files and may require changes to existing code.
+For example, bitfields have been completely removed because of their lack of
+portability across C compilers.
+- Update interfaces to the Global Lock acquire/release macros if local
+versions are used. (see acwin.h)
Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
New files: tbfind.c
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total
@@ -505,51 +1881,46 @@ No changes for this release.
1) ACPI CA Core Subsystem:
-The full source code for the ASL test suite used to validate the
-iASL compiler and the ACPICA core subsystem is being released
-with the ACPICA source for the first time. The source is
-contained in a separate package and consists of over 1100 files
-that exercise all ASL/AML operators. The package should appear on
-the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor
+The full source code for the ASL test suite used to validate the iASL
+compiler and the ACPICA core subsystem is being released with the ACPICA
+source for the first time. The source is contained in a separate package and
+consists of over 1100 files that exercise all ASL/AML operators. The package
+should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor
Suietov)
-Completed a new design and implementation for support of the ACPI
-Global Lock. On the OS side, the global lock is now treated as a
-standard AML mutex. Previously, multiple OS threads could
-"acquire" the global lock simultaneously. However, this could
-cause the BIOS to be starved out of the lock - especially in
-cases such as the Embedded Controller driver where there is a
-tight coupling between the OS and the BIOS.
-
-Implemented an optimization for the ACPI Global Lock interrupt
-mechanism. The Global Lock interrupt handler no longer queues the
-execution of a separate thread to signal the global lock
-semaphore. Instead, the semaphore is signaled directly from the
-interrupt handler.
-
-Implemented support within the AML interpreter for package
-objects that contain a larger AML length (package list length)
-than the package element count. In this case, the length of the
-package is truncated to match the package element count. Some
-BIOS code apparently modifies the package length on the fly, and
-this change supports this behavior. Provides compatibility with
-the MS AML interpreter. (With assistance from Fiodor Suietov)
-
-Implemented a temporary fix for the BankValue parameter of a Bank
-Field to support all constant values, now including the Zero and
-One opcodes. Evaluation of this parameter must eventually be
-converted to a full TermArg evaluation. A not-implemented error
-is now returned (temporarily) for non-constant values for this
-parameter.
+Completed a new design and implementation for support of the ACPI Global
+Lock. On the OS side, the global lock is now treated as a standard AML
+mutex. Previously, multiple OS threads could "acquire" the global lock
+simultaneously. However, this could cause the BIOS to be starved out of the
+lock - especially in cases such as the Embedded Controller driver where
+there is a tight coupling between the OS and the BIOS.
+
+Implemented an optimization for the ACPI Global Lock interrupt mechanism.
+The Global Lock interrupt handler no longer queues the execution of a
+separate thread to signal the global lock semaphore. Instead, the semaphore
+is signaled directly from the interrupt handler.
+
+Implemented support within the AML interpreter for package objects that
+contain a larger AML length (package list length) than the package element
+count. In this case, the length of the package is truncated to match the
+package element count. Some BIOS code apparently modifies the package length
+on the fly, and this change supports this behavior. Provides compatibility
+with the MS AML interpreter. (With assistance from Fiodor Suietov)
+
+Implemented a temporary fix for the BankValue parameter of a Bank Field to
+support all constant values, now including the Zero and One opcodes.
+Evaluation of this parameter must eventually be converted to a full TermArg
+evaluation. A not-implemented error is now returned (temporarily) for non-
+constant values for this parameter.
Fixed problem reports (Fiodor Suietov) integrated:
-- Fix for premature object deletion after CopyObject on Operation
-Region (BZ 350)
+- Fix for premature object deletion after CopyObject on Operation Region (BZ
+350)
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total
@@ -568,63 +1939,56 @@ No changes for this release.
1) ACPI CA Core Subsystem:
-Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C
-compilers that do not allow the initialization of address
-pointers within packed structures - even though the hardware
-itself may support misaligned transfers. Some of the debug data
-structures are packed by default to minimize size.
-
-Added an error message for the case where AcpiOsGetThreadId()
-returns zero. A non-zero value is required by the core ACPICA
-code to ensure the proper operation of AML mutexes and recursive
-control methods.
-
-The DSDT is now the only ACPI table that determines whether the
-AML interpreter is in 32-bit or 64-bit mode. Not really a
-functional change, but the hooks for per-table 32/64 switching
-have been removed from the code. A clarification to the ACPI
-specification is forthcoming in ACPI 3.0B.
-
-Fixed a possible leak of an OwnerID in the error path of
-AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table
-OwnerID deletion to a single place in AcpiTbUninstallTable to
-correct possible leaks when using the AcpiTbDeleteTablesByType
-interface (with assistance from Lance Ortiz.)
-
-Fixed a problem with Serialized control methods where the
-semaphore associated with the method could be over-signaled after
-multiple method invocations.
-
-Fixed two issues with the locking of the internal namespace data
-structure. Both the Unload() operator and AcpiUnloadTable
-interface now lock the namespace during the namespace deletion
-associated with the table unload (with assistance from Linn
-Crosetto.)
+Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
+that do not allow the initialization of address pointers within packed
+structures - even though the hardware itself may support misaligned
+transfers. Some of the debug data structures are packed by default to
+minimize size.
+
+Added an error message for the case where AcpiOsGetThreadId() returns zero.
+A non-zero value is required by the core ACPICA code to ensure the proper
+operation of AML mutexes and recursive control methods.
+
+The DSDT is now the only ACPI table that determines whether the AML
+interpreter is in 32-bit or 64-bit mode. Not really a functional change, but
+the hooks for per-table 32/64 switching have been removed from the code. A
+clarification to the ACPI specification is forthcoming in ACPI 3.0B.
+
+Fixed a possible leak of an OwnerID in the error path of
+AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
+deletion to a single place in AcpiTbUninstallTable to correct possible leaks
+when using the AcpiTbDeleteTablesByType interface (with assistance from
+Lance Ortiz.)
+
+Fixed a problem with Serialized control methods where the semaphore
+associated with the method could be over-signaled after multiple method
+invocations.
+
+Fixed two issues with the locking of the internal namespace data structure.
+Both the Unload() operator and AcpiUnloadTable interface now lock the
+namespace during the namespace deletion associated with the table unload
+(with assistance from Linn Crosetto.)
Fixed problem reports (Valery Podrezov) integrated:
-- Eliminate unnecessary memory allocation for CreateXxxxField (BZ
-5426)
+- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
Fixed problem reports (Fiodor Suietov) integrated:
- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
-- On Address Space handler deletion, needless deactivation call
-(BZ 374)
-- AcpiRemoveAddressSpaceHandler: validate Device handle parameter
-(BZ 375)
-- Possible memory leak, Notify sub-objects of Processor, Power,
-ThermalZone (BZ 376)
-- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ
-378)
+- On Address Space handler deletion, needless deactivation call (BZ 374)
+- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375)
+- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone
+(BZ 376)
+- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
- Minimum Length of RSDT should be validated (BZ 379)
-- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj
-has no Handler (BZ (380)
-- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified
-type loaded (BZ 381)
+- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
+Handler (BZ (380)
+- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded
+(BZ 381)
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total
@@ -637,57 +2001,52 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
Fixed problem reports:
-Compiler segfault when ASL contains a long (>1024) String
-declaration (BZ 436)
+Compiler segfault when ASL contains a long (>1024) String declaration (BZ
+436)
----------------------------------------
23 June 2006. Summary of changes for version 20060623:
1) ACPI CA Core Subsystem:
-Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces.
-This allows the type to be customized to the host OS for improved
-efficiency (since a spinlock is usually a very small object.)
-
-Implemented support for "ignored" bits in the ACPI registers.
-According to the ACPI specification, these bits should be
-preserved when writing the registers via a read/modify/write
-cycle. There are 3 bits preserved in this manner: PM1_CONTROL[0]
-(SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
-
-Implemented the initial deployment of new OSL mutex interfaces.
-Since some host operating systems have separate mutex and
-semaphore objects, this feature was requested. The base code now
-uses mutexes (and the new mutex interfaces) wherever a binary
-semaphore was used previously. However, for the current release,
-the mutex interfaces are defined as macros to map them to the
-existing semaphore interfaces. Therefore, no OSL changes are
-required at this time. (See acpiosxf.h)
-
-Fixed several problems with the support for the control method
-SyncLevel parameter. The SyncLevel now works according to the
-ACPI specification and in concert with the Mutex SyncLevel
-parameter, since the current SyncLevel is a property of the
-executing thread. Mutual exclusion for control methods is now
-implemented with a mutex instead of a semaphore.
-
-Fixed three instances of the use of the C shift operator in the
-bitfield support code (exfldio.c) to avoid the use of a shift
-value larger than the target data width. The behavior of C
-compilers is undefined in this case and can cause unpredictable
-results, and therefore the case must be detected and avoided.
-(Fiodor Suietov)
-
-Added an info message whenever an SSDT or OEM table is loaded
-dynamically via the Load() or LoadTable() ASL operators. This
-should improve debugging capability since it will show exactly
-what tables have been loaded (beyond the tables present in the
-RSDT/XSDT.)
-
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
+allows the type to be customized to the host OS for improved efficiency
+(since a spinlock is usually a very small object.)
+
+Implemented support for "ignored" bits in the ACPI registers. According to
+the ACPI specification, these bits should be preserved when writing the
+registers via a read/modify/write cycle. There are 3 bits preserved in this
+manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
+
+Implemented the initial deployment of new OSL mutex interfaces. Since some
+host operating systems have separate mutex and semaphore objects, this
+feature was requested. The base code now uses mutexes (and the new mutex
+interfaces) wherever a binary semaphore was used previously. However, for
+the current release, the mutex interfaces are defined as macros to map them
+to the existing semaphore interfaces. Therefore, no OSL changes are required
+at this time. (See acpiosxf.h)
+
+Fixed several problems with the support for the control method SyncLevel
+parameter. The SyncLevel now works according to the ACPI specification and
+in concert with the Mutex SyncLevel parameter, since the current SyncLevel
+is a property of the executing thread. Mutual exclusion for control methods
+is now implemented with a mutex instead of a semaphore.
+
+Fixed three instances of the use of the C shift operator in the bitfield
+support code (exfldio.c) to avoid the use of a shift value larger than the
+target data width. The behavior of C compilers is undefined in this case and
+can cause unpredictable results, and therefore the case must be detected and
+avoided. (Fiodor Suietov)
+
+Added an info message whenever an SSDT or OEM table is loaded dynamically
+via the Load() or LoadTable() ASL operators. This should improve debugging
+capability since it will show exactly what tables have been loaded (beyond
+the tables present in the RSDT/XSDT.)
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total
@@ -706,37 +2065,34 @@ No changes for this release.
1) ACPI CA Core Subsystem:
-Converted the locking mutex used for the ACPI hardware to a
-spinlock. This change should eliminate all problems caused by
-attempting to acquire a semaphore at interrupt level, and it
-means that all ACPICA external interfaces that directly access
-the ACPI hardware can be safely called from interrupt level. OSL
-code that implements the semaphore interfaces should be able to
-eliminate any workarounds for being called at interrupt level.
+Converted the locking mutex used for the ACPI hardware to a spinlock. This
+change should eliminate all problems caused by attempting to acquire a
+semaphore at interrupt level, and it means that all ACPICA external
+interfaces that directly access the ACPI hardware can be safely called from
+interrupt level. OSL code that implements the semaphore interfaces should be
+able to eliminate any workarounds for being called at interrupt level.
-Fixed a regression introduced in 20060526 where the ACPI device
-initialization could be prematurely aborted with an AE_NOT_FOUND
-if a device did not have an optional _INI method.
+Fixed a regression introduced in 20060526 where the ACPI device
+initialization could be prematurely aborted with an AE_NOT_FOUND if a device
+did not have an optional _INI method.
-Fixed an IndexField issue where a write to the Data Register
-should be limited in size to the AccessSize (width) of the
-IndexField itself. (BZ 433, Fiodor Suietov)
+Fixed an IndexField issue where a write to the Data Register should be
+limited in size to the AccessSize (width) of the IndexField itself. (BZ 433,
+Fiodor Suietov)
Fixed problem reports (Valery Podrezov) integrated:
-- Allow store of ThermalZone objects to Debug object (BZ
-5369/5370)
+- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
Fixed problem reports (Fiodor Suietov) integrated:
-- AcpiGetTableHeader doesn't handle multiple instances correctly
-(BZ 364)
+- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
-Removed four global mutexes that were obsolete and were no longer
-being used.
+Removed four global mutexes that were obsolete and were no longer being
+used.
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total
@@ -748,14 +2104,13 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Fixed a fault when using -g option (get tables from registry) on
-Windows machines.
+Fixed a fault when using -g option (get tables from registry) on Windows
+machines.
Fixed problem reports integrated:
-- Generate error if CreateField NumBits parameter is zero. (BZ
-405)
-- Fault if Offset/Length in Field unit is very large (BZ 432,
-Fiodor Suietov)
+- Generate error if CreateField NumBits parameter is zero. (BZ 405)
+- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
+Suietov)
- Global table revision override (-r) is ignored (BZ 413)
----------------------------------------
@@ -763,54 +2118,41 @@ Fiodor Suietov)
1) ACPI CA Core Subsystem:
-Restructured, flattened, and simplified the internal interfaces
-for namespace object evaluation - resulting in smaller code, less
-CPU stack use, and fewer interfaces. (With assistance from
-Mikhail Kouzmich)
+Restructured, flattened, and simplified the internal interfaces for
+namespace object evaluation - resulting in smaller code, less CPU stack use,
+and fewer interfaces. (With assistance from Mikhail Kouzmich)
-Fixed a problem with the CopyObject operator where the first
-parameter was not typed correctly for the parser, interpreter,
-compiler, and disassembler. Caused various errors and unexpected
-behavior.
+Fixed a problem with the CopyObject operator where the first parameter was
+not typed correctly for the parser, interpreter, compiler, and disassembler.
+Caused various errors and unexpected behavior.
-Fixed a problem where a ShiftLeft or ShiftRight of more than 64
-bits produced incorrect results with some C compilers. Since the
-behavior of C compilers when the shift value is larger than the
-datatype width is apparently not well defined, the interpreter
-now detects this condition and simply returns zero as expected in
-all such cases. (BZ 395)
+Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
+produced incorrect results with some C compilers. Since the behavior of C
+compilers when the shift value is larger than the datatype width is
+apparently not well defined, the interpreter now detects this condition and
+simply returns zero as expected in all such cases. (BZ 395)
Fixed problem reports (Valery Podrezov) integrated:
-- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ
-5329)
-- Allow interpreter to handle nested method declarations (BZ
-5361)
+- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
+- Allow interpreter to handle nested method declarations (BZ 5361)
Fixed problem reports (Fiodor Suietov) integrated:
-- AcpiTerminate doesn't free debug memory allocation list objects
-(BZ 355)
-- After Core Subsystem shutdown, AcpiSubsystemStatus returns
-AE_OK (BZ 356)
-- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ
-357)
-- Resource Manager should return AE_TYPE for non-device objects
-(BZ 358)
+- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355)
+- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356)
+- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
+- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
-- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData
-(BZ 360)
+- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
-- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is
-loaded (BZ 365)
-- Status of the Global Initialization Handler call not used (BZ
-366)
-- Incorrect object parameter to Global Initialization Handler (BZ
-367)
-
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365)
+- Status of the Global Initialization Handler call not used (BZ 366)
+- Incorrect object parameter to Global Initialization Handler (BZ 367)
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total
@@ -822,48 +2164,44 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Modified the parser to allow the names IO, DMA, and IRQ to be
-used as namespace identifiers with no collision with existing
-resource descriptor macro names. This provides compatibility with
-other ASL compilers and is most useful for
-disassembly/recompilation of existing tables without parse
+Modified the parser to allow the names IO, DMA, and IRQ to be used as
+namespace identifiers with no collision with existing resource descriptor
+macro names. This provides compatibility with other ASL compilers and is
+most useful for disassembly/recompilation of existing tables without parse
errors. (With assistance from Thomas Renninger)
-Disassembler: fixed an incorrect disassembly problem with the
-DataTableRegion and CopyObject operators. Fixed a possible fault
-during disassembly of some Alias operators.
+Disassembler: fixed an incorrect disassembly problem with the
+DataTableRegion and CopyObject operators. Fixed a possible fault during
+disassembly of some Alias operators.
----------------------------------------
12 May 2006. Summary of changes for version 20060512:
1) ACPI CA Core Subsystem:
-Replaced the AcpiOsQueueForExecution interface with a new
-interface named AcpiOsExecute. The major difference is that the
-new interface does not have a Priority parameter, this appeared
-to be useless and has been replaced by a Type parameter. The Type
-tells the host what type of execution is being requested, such as
-global lock handler, notify handler, GPE handler, etc. This
-allows the host to queue and execute the request as appropriate
-for the request type, possibly using different work queues and
-different priorities for the various request types. This enables
-fixes for multithreading deadlock problems such as BZ #5534, and
-will require changes to all existing OS interface layers. (Alexey
-Starikovskiy and Bob Moore)
-
-Fixed a possible memory leak associated with the support for the
-so-called "implicit return" ACPI extension. Reported by FreeBSD,
-BZ #6514. (Fiodor Suietov)
-
-Fixed a problem with the Load() operator where a table load from
-an operation region could overwrite an internal table buffer by
-up to 7 bytes and cause alignment faults on IPF systems. (With
-assistance from Luming Yu)
-
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Replaced the AcpiOsQueueForExecution interface with a new interface named
+AcpiOsExecute. The major difference is that the new interface does not have
+a Priority parameter, this appeared to be useless and has been replaced by a
+Type parameter. The Type tells the host what type of execution is being
+requested, such as global lock handler, notify handler, GPE handler, etc.
+This allows the host to queue and execute the request as appropriate for the
+request type, possibly using different work queues and different priorities
+for the various request types. This enables fixes for multithreading
+deadlock problems such as BZ #5534, and will require changes to all existing
+OS interface layers. (Alexey Starikovskiy and Bob Moore)
+
+Fixed a possible memory leak associated with the support for the so-called
+"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
+Suietov)
+
+Fixed a problem with the Load() operator where a table load from an
+operation region could overwrite an internal table buffer by up to 7 bytes
+and cause alignment faults on IPF systems. (With assistance from Luming Yu)
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total
@@ -876,92 +2214,83 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Disassembler: Implemented support to cross reference the internal
-namespace and automatically generate ASL External() statements
-for symbols not defined within the current table being
-disassembled. This will simplify the disassembly and
-recompilation of interdependent tables such as SSDTs since these
-statements will no longer have to be added manually.
-
-Disassembler: Implemented experimental support to automatically
-detect invocations of external control methods and generate
-appropriate External() statements. This is problematic because
-the AML cannot be correctly parsed until the number of arguments
-for each control method is known. Currently, standalone method
-invocations and invocations as the source operand of a Store()
-statement are supported.
-
-Disassembler: Implemented support for the ASL pseudo-operators
-LNotEqual, LLessEqual, and LGreaterEqual. Previously disassembled
-as LNot(LEqual()), LNot(LGreater()), and LNot(LLess()), this
-makes the disassembled ASL code more readable and likely closer
-to the original ASL source.
+Disassembler: Implemented support to cross reference the internal namespace
+and automatically generate ASL External() statements for symbols not defined
+within the current table being disassembled. This will simplify the
+disassembly and recompilation of interdependent tables such as SSDTs since
+these statements will no longer have to be added manually.
+
+Disassembler: Implemented experimental support to automatically detect
+invocations of external control methods and generate appropriate External()
+statements. This is problematic because the AML cannot be correctly parsed
+until the number of arguments for each control method is known. Currently,
+standalone method invocations and invocations as the source operand of a
+Store() statement are supported.
+
+Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
+LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
+LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
+more readable and likely closer to the original ASL source.
----------------------------------------
21 April 2006. Summary of changes for version 20060421:
1) ACPI CA Core Subsystem:
-Removed a device initialization optimization introduced in
-20051216 where the _STA method was not run unless an _INI was
-also present for the same device. This optimization could cause
-problems because it could allow _INI methods to be run within a
-not-present device subtree. (If a not-present device had no _INI,
-_STA would not be run, the not-present status would not be
-discovered, and the children of the device would be incorrectly
+Removed a device initialization optimization introduced in 20051216 where
+the _STA method was not run unless an _INI was also present for the same
+device. This optimization could cause problems because it could allow _INI
+methods to be run within a not-present device subtree. (If a not-present
+device had no _INI, _STA would not be run, the not-present status would not
+be discovered, and the children of the device would be incorrectly
traversed.)
-Implemented a new _STA optimization where namespace subtrees that
-do not contain _INI are identified and ignored during device
-initialization. Selectively running _STA can significantly
-improve boot time on large machines (with assistance from Len
-Brown.)
+Implemented a new _STA optimization where namespace subtrees that do not
+contain _INI are identified and ignored during device initialization.
+Selectively running _STA can significantly improve boot time on large
+machines (with assistance from Len Brown.)
-Implemented support for the device initialization case where the
-returned _STA flags indicate a device not-present but
-functioning. In this case, _INI is not run, but the device
-children are examined for presence, as per the ACPI
-specification.
-
-Implemented an additional change to the IndexField support in
-order to conform to MS behavior. The value written to the Index
-Register is not simply a byte offset, it is a byte offset in
-units of the access width of the parent Index Field. (Fiodor
-Suietov)
+Implemented support for the device initialization case where the returned
+_STA flags indicate a device not-present but functioning. In this case, _INI
+is not run, but the device children are examined for presence, as per the
+ACPI specification.
-Defined and deployed a new OSL interface, AcpiOsValidateAddress.
-This interface is called during the creation of all AML operation
-regions, and allows the host OS to exert control over what
-addresses it will allow the AML code to access. Operation Regions
-whose addresses are disallowed will cause a runtime exception
-when they are actually accessed (will not affect or abort table
-loading.) See oswinxf or osunixxf for an example implementation.
-
-Defined and deployed a new OSL interface,
-AcpiOsValidateInterface. This interface allows the host OS to
-match the various "optional" interface/behavior strings for the
-_OSI predefined control method as appropriate (with assistance
-from Bjorn Helgaas.) See oswinxf or osunixxf for an example
+Implemented an additional change to the IndexField support in order to
+conform to MS behavior. The value written to the Index Register is not
+simply a byte offset, it is a byte offset in units of the access width of
+the parent Index Field. (Fiodor Suietov)
+
+Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
+interface is called during the creation of all AML operation regions, and
+allows the host OS to exert control over what addresses it will allow the
+AML code to access. Operation Regions whose addresses are disallowed will
+cause a runtime exception when they are actually accessed (will not affect
+or abort table loading.) See oswinxf or osunixxf for an example
implementation.
-Restructured and corrected various problems in the exception
-handling code paths within DsCallControlMethod and
-DsTerminateControlMethod in dsmethod (with assistance from
-Takayoshi Kochi.)
+Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
+interface allows the host OS to match the various "optional"
+interface/behavior strings for the _OSI predefined control method as
+appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
+for an example implementation.
+
+Restructured and corrected various problems in the exception handling code
+paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
+(with assistance from Takayoshi Kochi.)
-Modified the Linux source converter to ignore quoted string
-literals while converting identifiers from mixed to lower case.
-This will correct problems with the disassembler and other areas
-where such strings must not be modified.
+Modified the Linux source converter to ignore quoted string literals while
+converting identifiers from mixed to lower case. This will correct problems
+with the disassembler and other areas where such strings must not be
+modified.
-The ACPI_FUNCTION_* macros no longer require quotes around the
-function name. This allows the Linux source converter to convert
-the names, now that the converter ignores quoted strings.
+The ACPI_FUNCTION_* macros no longer require quotes around the function
+name. This allows the Linux source converter to convert the names, now that
+the converter ignores quoted strings.
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
@@ -974,75 +2303,67 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Implemented 3 new warnings for iASL, and implemented multiple
-warning levels (w2 flag).
+Implemented 3 new warnings for iASL, and implemented multiple warning levels
+(w2 flag).
-1) Ignored timeouts: If the TimeoutValue parameter to Wait or
-Acquire is not WAIT_FOREVER (0xFFFF) and the code does not
-examine the return value to check for the possible timeout, a
-warning is issued.
+1) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not
+WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
+check for the possible timeout, a warning is issued.
-2) Useless operators: If an ASL operator does not specify an
-optional target operand and it also does not use the function
-return value from the operator, a warning is issued since the
-operator effectively does nothing.
+2) Useless operators: If an ASL operator does not specify an optional target
+operand and it also does not use the function return value from the
+operator, a warning is issued since the operator effectively does nothing.
-3) Unreferenced objects: If a namespace object is created, but
-never referenced, a warning is issued. This is a warning level 2
-since there are cases where this is ok, such as when a secondary
-table is loaded that uses the unreferenced objects. Even so, care
-is taken to only flag objects that don't look like they will ever
-be used. For example, the reserved methods (starting with an
-underscore) are usually not referenced because it is expected
-that the OS will invoke them.
+3) Unreferenced objects: If a namespace object is created, but never
+referenced, a warning is issued. This is a warning level 2 since there are
+cases where this is ok, such as when a secondary table is loaded that uses
+the unreferenced objects. Even so, care is taken to only flag objects that
+don't look like they will ever be used. For example, the reserved methods
+(starting with an underscore) are usually not referenced because it is
+expected that the OS will invoke them.
----------------------------------------
31 March 2006. Summary of changes for version 20060331:
1) ACPI CA Core Subsystem:
-Implemented header file support for the following additional ACPI
-tables: ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT.
-With this support, all current and known ACPI tables are now
-defined in the ACPICA headers and are available for use by device
-drivers and other software.
-
-Implemented support to allow tables that contain ACPI names with
-invalid characters to be loaded. Previously, this would cause the
-table load to fail, but since there are several known cases of
-such tables on existing machines, this change was made to enable
-ACPI support for them. Also, this matches the behavior of the
-Microsoft ACPI implementation.
-
-Fixed a couple regressions introduced during the memory
-optimization in the 20060317 release. The namespace node
-definition required additional reorganization and an internal
-datatype that had been changed to 8-bit was restored to 32-bit.
-(Valery Podrezov)
-
-Fixed a problem where a null pointer passed to
-AcpiUtDeleteGenericState could be passed through to
-AcpiOsReleaseObject which is unexpected. Such null pointers are
-now trapped and ignored, matching the behavior of the previous
-implementation before the deployment of AcpiOsReleaseObject.
+Implemented header file support for the following additional ACPI tables:
+ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support,
+all current and known ACPI tables are now defined in the ACPICA headers and
+are available for use by device drivers and other software.
+
+Implemented support to allow tables that contain ACPI names with invalid
+characters to be loaded. Previously, this would cause the table load to
+fail, but since there are several known cases of such tables on existing
+machines, this change was made to enable ACPI support for them. Also, this
+matches the behavior of the Microsoft ACPI implementation.
+
+Fixed a couple regressions introduced during the memory optimization in the
+20060317 release. The namespace node definition required additional
+reorganization and an internal datatype that had been changed to 8-bit was
+restored to 32-bit. (Valery Podrezov)
+
+Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
+could be passed through to AcpiOsReleaseObject which is unexpected. Such
+null pointers are now trapped and ignored, matching the behavior of the
+previous implementation before the deployment of AcpiOsReleaseObject.
(Valery Podrezov, Fiodor Suietov)
-Fixed a memory mapping leak during the deletion of a SystemMemory
-operation region where a cached memory mapping was not deleted.
-This became a noticeable problem for operation regions that are
-defined within frequently used control methods. (Dana Meyers)
+Fixed a memory mapping leak during the deletion of a SystemMemory operation
+region where a cached memory mapping was not deleted. This became a
+noticeable problem for operation regions that are defined within frequently
+used control methods. (Dana Meyers)
-Reorganized the ACPI table header files into two main files: one
-for the ACPI tables consumed by the ACPICA core, and another for
-the miscellaneous ACPI tables that are consumed by the drivers
-and other software. The various FADT definitions were merged into
-one common section and three different tables (ACPI 1.0, 1.0+,
-and 2.0)
+Reorganized the ACPI table header files into two main files: one for the
+ACPI tables consumed by the ACPICA core, and another for the miscellaneous
+ACPI tables that are consumed by the drivers and other software. The various
+FADT definitions were merged into one common section and three different
+tables (ACPI 1.0, 1.0+, and 2.0)
-Example Code and Data Size: These are the sizes for the OS-
-independent acpica.lib produced by the Microsoft Visual C++ 6.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.
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
Previous Release:
Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total
@@ -1054,65 +2375,61 @@ output trace mechanism and has a much larger code and data size.
2) iASL Compiler/Disassembler and Tools:
-Disassembler: Implemented support to decode and format all non-
-AML ACPI tables (tables other than DSDTs and SSDTs.) This
-includes the new tables added to the ACPICA headers, therefore
-all current and known ACPI tables are supported.
+Disassembler: Implemented support to decode and format all non-AML ACPI
+tables (tables other than DSDTs and SSDTs.) This includes the new tables
+added to the ACPICA headers, therefore all current and known ACPI tables are
+supported.
-Disassembler: The change to allow ACPI names with invalid
-characters also enables the disassembly of such tables. Invalid
-characters within names are changed to '*' to make the name
-printable; the iASL compiler will still generate an error for
-such names, however, since this is an invalid ACPI character.
+Disassembler: The change to allow ACPI names with invalid characters also
+enables the disassembly of such tables. Invalid characters within names are
+changed to '*' to make the name printable; the iASL compiler will still
+generate an error for such names, however, since this is an invalid ACPI
+character.
-Implemented an option for AcpiXtract (-a) to extract all tables
-found in the input file. The default invocation extracts only the
-DSDTs and SSDTs.
+Implemented an option for AcpiXtract (-a) to extract all tables found in the
+input file. The default invocation extracts only the DSDTs and SSDTs.
-Fixed a couple of gcc generation issues for iASL and AcpiExec and
-added a makefile for the AcpiXtract utility.
+Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
+makefile for the AcpiXtract utility.
----------------------------------------
17 March 2006. Summary of changes for version 20060317:
1) ACPI CA Core Subsystem:
-Implemented the use of a cache object for all internal namespace
-nodes. Since there are about 1000 static nodes in a typical
-system, this will decrease memory use for cache implementations
-that minimize per-allocation overhead (such as a slab allocator.)
-
-Removed the reference count mechanism for internal namespace
-nodes, since it was deemed unnecessary. This reduces the size of
-each namespace node by about 5%-10% on all platforms. Nodes are
-now 20 bytes for the 32-bit case, and 32 bytes for the 64-bit
-case.
-
-Optimized several internal data structures to reduce object size
-on 64-bit platforms by packing data within the 64-bit alignment.
-This includes the frequently used ACPI_OPERAND_OBJECT, of which
-there can be ~1000 static instances corresponding to the
-namespace objects.
-
-Added two new strings for the predefined _OSI method: "Windows
-2001.1 SP1" and "Windows 2006".
-
-Split the allocation tracking mechanism out to a separate file,
-from utalloc.c to uttrack.c. This mechanism appears to be only
-useful for application-level code. Kernels may wish to not
-include uttrack.c in distributions.
-
-Removed all remnants of the obsolete ACPI_REPORT_* macros and the
-associated code. (These macros have been replaced by the
-ACPI_ERROR and ACPI_WARNING macros.)
-
-Code and Data Size: These are the sizes for the acpica.lib
-produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
-values do not include any ACPI driver or OSPM code. The debug
-version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values will
-vary depending on the efficiency of the compiler and the compiler
-options used during generation.
+Implemented the use of a cache object for all internal namespace nodes.
+Since there are about 1000 static nodes in a typical system, this will
+decrease memory use for cache implementations that minimize per-allocation
+overhead (such as a slab allocator.)
+
+Removed the reference count mechanism for internal namespace nodes, since it
+was deemed unnecessary. This reduces the size of each namespace node by
+about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case,
+and 32 bytes for the 64-bit case.
+
+Optimized several internal data structures to reduce object size on 64-bit
+platforms by packing data within the 64-bit alignment. This includes the
+frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
+instances corresponding to the namespace objects.
+
+Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1"
+and "Windows 2006".
+
+Split the allocation tracking mechanism out to a separate file, from
+utalloc.c to uttrack.c. This mechanism appears to be only useful for
+application-level code. Kernels may wish to not include uttrack.c in
+distributions.
+
+Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated
+code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
+macros.)
+
+Code and Data Size: These are the sizes for the acpica.lib produced by the
+Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI
+driver or OSPM code. The debug version of the code includes the debug output
+trace mechanism and has a much larger code and data size. Note that these
+values will vary depending on the efficiency of the compiler and the
+compiler options used during generation.
Previous Release:
Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total
@@ -1124,12 +2441,11 @@ options used during generation.
2) iASL Compiler/Disassembler and Tools:
-Implemented an ANSI C version of the acpixtract utility. This
-version will automatically extract the DSDT and all SSDTs from
-the input acpidump text file and dump the binary output to
-separate files. It can also display a summary of the input file
-including the headers for each table found and will extract any
-single ACPI table, with any signature. (See
+Implemented an ANSI C version of the acpixtract utility. This version will
+automatically extract the DSDT and all SSDTs from the input acpidump text
+file and dump the binary output to separate files. It can also display a
+summary of the input file including the headers for each table found and
+will extract any single ACPI table, with any signature. (See
source/tools/acpixtract)
----------------------------------------
@@ -1137,38 +2453,36 @@ source/tools/acpixtract)
1) ACPI CA Core Subsystem:
-Tagged all external interfaces to the subsystem with the new
-ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary
-to assist kernel integration. For Linux, the macro resolves to
-the EXPORT_SYMBOL macro. The default definition is NULL.
-
-Added the ACPI_THREAD_ID type for the return value from
-AcpiOsGetThreadId. This allows the host to define this as
-necessary to simplify kernel integration. The default definition
-is ACPI_NATIVE_UINT.
-
-Fixed two interpreter problems related to error processing, the
-deletion of objects, and placing invalid pointers onto the
-internal operator result stack. BZ 6028, 6151 (Valery Podrezov)
-
-Increased the reference count threshold where a warning is
-emitted for large reference counts in order to eliminate
-unnecessary warnings on systems with large namespaces (especially
-64-bit.) Increased the value from 0x400 to 0x800.
-
-Due to universal disagreement as to the meaning of the 'c' in the
-calloc() function, the ACPI_MEM_CALLOCATE macro has been renamed
-to ACPI_ALLOCATE_ZEROED so that the purpose of the interface is
-'clear'. ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to
-ACPI_ALLOCATE and ACPI_FREE.
-
-Code and Data Size: These are the sizes for the acpica.lib
-produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
-values do not include any ACPI driver or OSPM code. The debug
-version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values will
-vary depending on the efficiency of the compiler and the compiler
-options used during generation.
+Tagged all external interfaces to the subsystem with the new
+ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist
+kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
+macro. The default definition is NULL.
+
+Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId.
+This allows the host to define this as necessary to simplify kernel
+integration. The default definition is ACPI_NATIVE_UINT.
+
+Fixed two interpreter problems related to error processing, the deletion of
+objects, and placing invalid pointers onto the internal operator result
+stack. BZ 6028, 6151 (Valery Podrezov)
+
+Increased the reference count threshold where a warning is emitted for large
+reference counts in order to eliminate unnecessary warnings on systems with
+large namespaces (especially 64-bit.) Increased the value from 0x400 to
+0x800.
+
+Due to universal disagreement as to the meaning of the 'c' in the calloc()
+function, the ACPI_MEM_CALLOCATE macro has been renamed to
+ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
+ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
+ACPI_FREE.
+
+Code and Data Size: These are the sizes for the acpica.lib produced by the
+Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI
+driver or OSPM code. The debug version of the code includes the debug output
+trace mechanism and has a much larger code and data size. Note that these
+values will vary depending on the efficiency of the compiler and the
+compiler options used during generation.
Previous Release:
Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total
@@ -1180,59 +2494,52 @@ options used during generation.
2) iASL Compiler/Disassembler:
-Disassembler: implemented support for symbolic resource
-descriptor references. If a CreateXxxxField operator references a
-fixed offset within a resource descriptor, a name is assigned to
-the descriptor and the offset is translated to the appropriate
-resource tag and pathname. The addition of this support brings
-the disassembled code very close to the original ASL source code
-and helps eliminate run-time errors when the disassembled code is
-modified (and recompiled) in such a way as to invalidate the
-original fixed offsets.
-
-Implemented support for a Descriptor Name as the last parameter
-to the ASL Register() macro. This parameter was inadvertently
-left out of the ACPI specification, and will be added for ACPI
-3.0b.
-
-Fixed a problem where the use of the "_OSI" string (versus the
-full path "\_OSI") caused an internal compiler error. ("No back
-ptr to op")
-
-Fixed a problem with the error message that occurs when an
-invalid string is used for a _HID object (such as one with an
-embedded asterisk: "*PNP010A".) The correct message is now
-displayed.
+Disassembler: implemented support for symbolic resource descriptor
+references. If a CreateXxxxField operator references a fixed offset within a
+resource descriptor, a name is assigned to the descriptor and the offset is
+translated to the appropriate resource tag and pathname. The addition of
+this support brings the disassembled code very close to the original ASL
+source code and helps eliminate run-time errors when the disassembled code
+is modified (and recompiled) in such a way as to invalidate the original
+fixed offsets.
+
+Implemented support for a Descriptor Name as the last parameter to the ASL
+Register() macro. This parameter was inadvertently left out of the ACPI
+specification, and will be added for ACPI 3.0b.
+
+Fixed a problem where the use of the "_OSI" string (versus the full path
+"\_OSI") caused an internal compiler error. ("No back ptr to op")
+
+Fixed a problem with the error message that occurs when an invalid string is
+used for a _HID object (such as one with an embedded asterisk: "*PNP010A".)
+The correct message is now displayed.
----------------------------------------
17 February 2006. Summary of changes for version 20060217:
1) ACPI CA Core Subsystem:
-Implemented a change to the IndexField support to match the
-behavior of the Microsoft AML interpreter. The value written to
-the Index register is now a byte offset, no longer an index based
-upon the width of the Data register. This should fix IndexField
-problems seen on some machines where the Data register is not
-exactly one byte wide. The ACPI specification will be clarified
-on this point.
-
-Fixed a problem where several resource descriptor types could
-overrun the internal descriptor buffer due to size
-miscalculation: VendorShort, VendorLong, and Interrupt. This was
-noticed on IA64 machines, but could affect all platforms.
-
-Fixed a problem where individual resource descriptors were
-misaligned within the internal buffer, causing alignment faults
-on IA64 platforms.
-
-Code and Data Size: These are the sizes for the acpica.lib
-produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
-values do not include any ACPI driver or OSPM code. The debug
-version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values will
-vary depending on the efficiency of the compiler and the compiler
-options used during generation.
+Implemented a change to the IndexField support to match the behavior of the
+Microsoft AML interpreter. The value written to the Index register is now a
+byte offset, no longer an index based upon the width of the Data register.
+This should fix IndexField problems seen on some machines where the Data
+register is not exactly one byte wide. The ACPI specification will be
+clarified on this point.
+
+Fixed a problem where several resource descriptor types could overrun the
+internal descriptor buffer due to size miscalculation: VendorShort,
+VendorLong, and Interrupt. This was noticed on IA64 machines, but could
+affect all platforms.
+
+Fixed a problem where individual resource descriptors were misaligned within
+the internal buffer, causing alignment faults on IA64 platforms.
+
+Code and Data Size: These are the sizes for the acpica.lib produced by the
+Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI
+driver or OSPM code. The debug version of the code includes the debug output
+trace mechanism and has a much larger code and data size. Note that these
+values will vary depending on the efficiency of the compiler and the
+compiler options used during generation.
Previous Release:
Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total
@@ -1244,57 +2551,53 @@ options used during generation.
2) iASL Compiler/Disassembler:
-Implemented support for new reserved names: _WDG and _WED are
-Microsoft extensions for Windows Instrumentation Management, _TDL
-is a new ACPI-defined method (Throttling Depth Limit.)
+Implemented support for new reserved names: _WDG and _WED are Microsoft
+extensions for Windows Instrumentation Management, _TDL is a new ACPI-
+defined method (Throttling Depth Limit.)
-Fixed a problem where a zero-length VendorShort or VendorLong
-resource descriptor was incorrectly emitted as a descriptor of
-length one.
+Fixed a problem where a zero-length VendorShort or VendorLong resource
+descriptor was incorrectly emitted as a descriptor of length one.
----------------------------------------
10 February 2006. Summary of changes for version 20060210:
1) ACPI CA Core Subsystem:
-Removed a couple of extraneous ACPI_ERROR messages that appeared
-during normal execution. These became apparent after the
-conversion from ACPI_DEBUG_PRINT.
+Removed a couple of extraneous ACPI_ERROR messages that appeared during
+normal execution. These became apparent after the conversion from
+ACPI_DEBUG_PRINT.
-Fixed a problem where the CreateField operator could hang if the
-BitIndex or NumBits parameter referred to a named object. (Valery
-Podrezov, BZ 5359)
+Fixed a problem where the CreateField operator could hang if the BitIndex or
+NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
-Fixed a problem where a DeRefOf operation on a buffer object
-incorrectly failed with an exception. This also fixes a couple of
-related RefOf and DeRefOf issues. (Valery Podrezov, BZ
-5360/5392/5387)
+Fixed a problem where a DeRefOf operation on a buffer object incorrectly
+failed with an exception. This also fixes a couple of related RefOf and
+DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
-Fixed a problem where the AE_BUFFER_LIMIT exception was returned
-instead of AE_STRING_LIMIT on an out-of-bounds Index() operation.
-(Valery Podrezov, BZ 5480)
+Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of
+AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ
+5480)
-Implemented a memory cleanup at the end of the execution of each
-iteration of an AML While() loop, preventing the accumulation of
-outstanding objects. (Valery Podrezov, BZ 5427)
+Implemented a memory cleanup at the end of the execution of each iteration
+of an AML While() loop, preventing the accumulation of outstanding objects.
+(Valery Podrezov, BZ 5427)
-Eliminated a chunk of duplicate code in the object resolution
-code. (Valery Podrezov, BZ 5336)
+Eliminated a chunk of duplicate code in the object resolution code. (Valery
+Podrezov, BZ 5336)
Fixed several warnings during the 64-bit code generation.
-The AcpiSrc source code conversion tool now inserts one line of
-whitespace after an if() statement that is followed immediately
-by a comment, improving readability of the Linux code.
+The AcpiSrc source code conversion tool now inserts one line of whitespace
+after an if() statement that is followed immediately by a comment, improving
+readability of the Linux code.
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total
@@ -1306,54 +2609,50 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem with the disassembly of a BankField operator with
-a complex expression for the BankValue parameter.
+Fixed a problem with the disassembly of a BankField operator with a complex
+expression for the BankValue parameter.
----------------------------------------
27 January 2006. Summary of changes for version 20060127:
1) ACPI CA Core Subsystem:
-Implemented support in the Resource Manager to allow unresolved
-namestring references within resource package objects for the
-_PRT method. This support is in addition to the previously
-implemented unresolved reference support within the AML parser.
-If the interpreter slack mode is enabled, these unresolved
-references will be passed through to the caller as a NULL package
+Implemented support in the Resource Manager to allow unresolved namestring
+references within resource package objects for the _PRT method. This support
+is in addition to the previously implemented unresolved reference support
+within the AML parser. If the interpreter slack mode is enabled, these
+unresolved references will be passed through to the caller as a NULL package
entry.
-Implemented and deployed new macros and functions for error and
-warning messages across the subsystem. These macros are simpler
-and generate less code than their predecessors. The new macros
-ACPI_ERROR, ACPI_EXCEPTION, ACPI_WARNING, and ACPI_INFO replace
-the ACPI_REPORT_* macros. The older macros remain defined to
-allow ACPI drivers time to migrate to the new macros.
+Implemented and deployed new macros and functions for error and warning
+messages across the subsystem. These macros are simpler and generate less
+code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
+ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
+macros remain defined to allow ACPI drivers time to migrate to the new
+macros.
-Implemented the ACPI_CPU_FLAGS type to simplify host OS
-integration of the Acquire/Release Lock OSL interfaces.
+Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the
+Acquire/Release Lock OSL interfaces.
-Fixed a problem where Alias ASL operators are sometimes not
-correctly resolved, in both the interpreter and the iASL
-compiler.
+Fixed a problem where Alias ASL operators are sometimes not correctly
+resolved, in both the interpreter and the iASL compiler.
-Fixed several problems with the implementation of the
-ConcatenateResTemplate ASL operator. As per the ACPI
-specification, zero length buffers are now treated as a single
-EndTag. One-length buffers always cause a fatal exception. Non-
-zero length buffers that do not end with a full 2-byte EndTag
+Fixed several problems with the implementation of the ConcatenateResTemplate
+ASL operator. As per the ACPI specification, zero length buffers are now
+treated as a single EndTag. One-length buffers always cause a fatal
+exception. Non-zero length buffers that do not end with a full 2-byte EndTag
cause a fatal exception.
-Fixed a possible structure overwrite in the AcpiGetObjectInfo
-external interface. (With assistance from Thomas Renninger)
+Fixed a possible structure overwrite in the AcpiGetObjectInfo external
+interface. (With assistance from Thomas Renninger)
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total
@@ -1365,46 +2664,42 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed an internal error that was generated for any forward
-references to ASL Alias objects.
+Fixed an internal error that was generated for any forward references to ASL
+Alias objects.
----------------------------------------
13 January 2006. Summary of changes for version 20060113:
1) ACPI CA Core Subsystem:
-Added 2006 copyright to all module headers and signons. This
-affects virtually every file in the ACPICA core subsystem, iASL
-compiler, and the utilities.
-
-Enhanced the ACPICA error reporting in order to simplify user
-migration to the non-debug version of ACPICA. Replaced all
-instances of the ACPI_DEBUG_PRINT macro invoked at the
-ACPI_DB_ERROR and ACPI_DB_WARN debug levels with the
-ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, respectively.
-This preserves all error and warning messages in the non-debug
-version of the ACPICA code (this has been referred to as the
-"debug lite" option.) Over 200 cases were converted to create a
-total of over 380 error/warning messages across the ACPICA code.
-This increases the code and data size of the default non-debug
-version of the code somewhat (about 13K), but all error/warning
-reporting may be disabled if desired (and code eliminated) by
-specifying the ACPI_NO_ERROR_MESSAGES compile-time configuration
-option. The size of the debug version of ACPICA remains about the
-same.
-
-Fixed a memory leak within the AML Debugger "Set" command. One
-object was not properly deleted for every successful invocation
-of the command.
-
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Added 2006 copyright to all module headers and signons. This affects
+virtually every file in the ACPICA core subsystem, iASL compiler, and the
+utilities.
+
+Enhanced the ACPICA error reporting in order to simplify user migration to
+the non-debug version of ACPICA. Replaced all instances of the
+ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug
+levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
+respectively. This preserves all error and warning messages in the non-debug
+version of the ACPICA code (this has been referred to as the "debug lite"
+option.) Over 200 cases were converted to create a total of over 380
+error/warning messages across the ACPICA code. This increases the code and
+data size of the default non-debug version of the code somewhat (about 13K),
+but all error/warning reporting may be disabled if desired (and code
+eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
+configuration option. The size of the debug version of ACPICA remains about
+the same.
+
+Fixed a memory leak within the AML Debugger "Set" command. One object was
+not properly deleted for every successful invocation of the command.
+
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total
@@ -1416,60 +2711,55 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-The compiler now officially supports the ACPI 3.0a specification
-that was released on December 30, 2005. (Specification is
-available at www.acpi.info)
+The compiler now officially supports the ACPI 3.0a specification that was
+released on December 30, 2005. (Specification is available at www.acpi.info)
----------------------------------------
16 December 2005. Summary of changes for version 20051216:
1) ACPI CA Core Subsystem:
-Implemented optional support to allow unresolved names within ASL
-Package objects. A null object is inserted in the package when a
-named reference cannot be located in the current namespace.
-Enabled via the interpreter slack flag, this should eliminate
-AE_NOT_FOUND exceptions seen on machines that contain such code.
-
-Implemented an optimization to the initialization sequence that
-can improve boot time. During ACPI device initialization, the
-_STA method is now run if and only if the _INI method exists. The
-_STA method is used to determine if the device is present; An
-_INI can only be run if _STA returns present, but it is a waste
-of time to run the _STA method if the _INI does not exist.
+Implemented optional support to allow unresolved names within ASL Package
+objects. A null object is inserted in the package when a named reference
+cannot be located in the current namespace. Enabled via the interpreter
+slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines
+that contain such code.
+
+Implemented an optimization to the initialization sequence that can improve
+boot time. During ACPI device initialization, the _STA method is now run if
+and only if the _INI method exists. The _STA method is used to determine if
+the device is present; An _INI can only be run if _STA returns present, but
+it is a waste of time to run the _STA method if the _INI does not exist.
(Prototype and assistance from Dong Wei)
-Implemented use of the C99 uintptr_t for the pointer casting
-macros if it is available in the current compiler. Otherwise, the
-default (void *) cast is used as before.
+Implemented use of the C99 uintptr_t for the pointer casting macros if it is
+available in the current compiler. Otherwise, the default (void *) cast is
+used as before.
-Fixed some possible memory leaks found within the execution path
-of the Break, Continue, If, and CreateField operators. (Valery
-Podrezov)
+Fixed some possible memory leaks found within the execution path of the
+Break, Continue, If, and CreateField operators. (Valery Podrezov)
-Fixed a problem introduced in the 20051202 release where an
-exception is generated during method execution if a control
-method attempts to declare another method.
+Fixed a problem introduced in the 20051202 release where an exception is
+generated during method execution if a control method attempts to declare
+another method.
-Moved resource descriptor string constants that are used by both
-the AML disassembler and AML debugger to the common utilities
-directory so that these components are independent.
+Moved resource descriptor string constants that are used by both the AML
+disassembler and AML debugger to the common utilities directory so that
+these components are independent.
-Implemented support in the AcpiExec utility (-e switch) to
-globally ignore exceptions during control method execution
-(method is not aborted.)
+Implemented support in the AcpiExec utility (-e switch) to globally ignore
+exceptions during control method execution (method is not aborted.)
-Added the rsinfo.c source file to the AcpiExec makefile for
-Linux/Unix generation.
+Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
+generation.
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total
@@ -1481,43 +2771,40 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem where a CPU stack overflow fault could occur if a
-recursive method call was made from within a Return statement.
+Fixed a problem where a CPU stack overflow fault could occur if a recursive
+method call was made from within a Return statement.
----------------------------------------
02 December 2005. Summary of changes for version 20051202:
1) ACPI CA Core Subsystem:
-Modified the parsing of control methods to no longer create
-namespace objects during the first pass of the parse. Objects are
-now created only during the execute phase, at the moment the
-namespace creation operator is encountered in the AML (Name,
-OperationRegion, CreateByteField, etc.) This should eliminate
-ALREADY_EXISTS exceptions seen on some machines where reentrant
-control methods are protected by an AML mutex. The mutex will now
-correctly block multiple threads from attempting to create the
-same object more than once.
-
-Increased the number of available Owner Ids for namespace object
-tracking from 32 to 255. This should eliminate the OWNER_ID_LIMIT
-exceptions seen on some machines with a large number of ACPI
-tables (either static or dynamic).
-
-Fixed a problem with the AcpiExec utility where a fault could
-occur when the -b switch (batch mode) is used.
-
-Enhanced the namespace dump routine to output the owner ID for
-each namespace object.
-
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Modified the parsing of control methods to no longer create namespace
+objects during the first pass of the parse. Objects are now created only
+during the execute phase, at the moment the namespace creation operator is
+encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This
+should eliminate ALREADY_EXISTS exceptions seen on some machines where
+reentrant control methods are protected by an AML mutex. The mutex will now
+correctly block multiple threads from attempting to create the same object
+more than once.
+
+Increased the number of available Owner Ids for namespace object tracking
+from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on
+some machines with a large number of ACPI tables (either static or dynamic).
+
+Fixed a problem with the AcpiExec utility where a fault could occur when the
+-b switch (batch mode) is used.
+
+Enhanced the namespace dump routine to output the owner ID for each
+namespace object.
+
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total
@@ -1529,67 +2816,60 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a parse error during compilation of certain Switch/Case
-constructs. To simplify the parse, the grammar now allows for
-multiple Default statements and this error is now detected and
-flagged during the analysis phase.
+Fixed a parse error during compilation of certain Switch/Case constructs. To
+simplify the parse, the grammar now allows for multiple Default statements
+and this error is now detected and flagged during the analysis phase.
-Disassembler: The disassembly now includes the contents of the
-original table header within a comment at the start of the file.
-This includes the name and version of the original ASL compiler.
+Disassembler: The disassembly now includes the contents of the original
+table header within a comment at the start of the file. This includes the
+name and version of the original ASL compiler.
----------------------------------------
17 November 2005. Summary of changes for version 20051117:
1) ACPI CA Core Subsystem:
-Fixed a problem in the AML parser where the method thread count
-could be decremented below zero if any errors occurred during the
-method parse phase. This should eliminate AE_AML_METHOD_LIMIT
-exceptions seen on some machines. This also fixed a related
-regression with the mechanism that detects and corrects methods
-that cannot properly handle reentrancy (related to the deployment
-of the new OwnerId mechanism.)
-
-Eliminated the pre-parsing of control methods (to detect errors)
-during table load. Related to the problem above, this was causing
-unwind issues if any errors occurred during the parse, and it
-seemed to be overkill. A table load should not be aborted if
-there are problems with any single control method, thus rendering
-this feature rather pointless.
-
-Fixed a problem with the new table-driven resource manager where
-an internal buffer overflow could occur for small resource
-templates.
-
-Implemented a new external interface, AcpiGetVendorResource. This
-interface will find and return a vendor-defined resource
-descriptor within a _CRS or _PRS method via an ACPI 3.0 UUID
-match. With assistance from Bjorn Helgaas.
-
-Removed the length limit (200) on string objects as per the
-upcoming ACPI 3.0A specification. This affects the following
-areas of the interpreter: 1) any implicit conversion of a Buffer
-to a String, 2) a String object result of the ASL Concatentate
-operator, 3) the String object result of the ASL ToString
-operator.
-
-Fixed a problem in the Windows OS interface layer (OSL) where a
-WAIT_FOREVER on a semaphore object would incorrectly timeout.
-This allows the multithreading features of the AcpiExec utility
-to work properly under Windows.
+Fixed a problem in the AML parser where the method thread count could be
+decremented below zero if any errors occurred during the method parse phase.
+This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines.
+This also fixed a related regression with the mechanism that detects and
+corrects methods that cannot properly handle reentrancy (related to the
+deployment of the new OwnerId mechanism.)
+
+Eliminated the pre-parsing of control methods (to detect errors) during
+table load. Related to the problem above, this was causing unwind issues if
+any errors occurred during the parse, and it seemed to be overkill. A table
+load should not be aborted if there are problems with any single control
+method, thus rendering this feature rather pointless.
+
+Fixed a problem with the new table-driven resource manager where an internal
+buffer overflow could occur for small resource templates.
+
+Implemented a new external interface, AcpiGetVendorResource. This interface
+will find and return a vendor-defined resource descriptor within a _CRS or
+_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas.
+
+Removed the length limit (200) on string objects as per the upcoming ACPI
+3.0A specification. This affects the following areas of the interpreter: 1)
+any implicit conversion of a Buffer to a String, 2) a String object result
+of the ASL Concatentate operator, 3) the String object result of the ASL
+ToString operator.
+
+Fixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER
+on a semaphore object would incorrectly timeout. This allows the
+multithreading features of the AcpiExec utility to work properly under
+Windows.
-Updated the Linux makefiles for the iASL compiler and AcpiExec to
-include the recently added file named "utresrc.c".
+Updated the Linux makefiles for the iASL compiler and AcpiExec to include
+the recently added file named "utresrc.c".
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total
@@ -1601,56 +2881,52 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Removed the limit (200) on string objects as per the upcoming
-ACPI 3.0A specification. For the iASL compiler, this means that
-string literals within the source ASL can be of any length.
+Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
+specification. For the iASL compiler, this means that string literals within
+the source ASL can be of any length.
-Enhanced the listing output to dump the AML code for resource
-descriptors immediately after the ASL code for each descriptor,
-instead of in a block at the end of the entire resource template.
+Enhanced the listing output to dump the AML code for resource descriptors
+immediately after the ASL code for each descriptor, instead of in a block at
+the end of the entire resource template.
-Enhanced the compiler debug output to dump the entire original
-parse tree constructed during the parse phase, before any
-transforms are applied to the tree. The transformed tree is
-dumped also.
+Enhanced the compiler debug output to dump the entire original parse tree
+constructed during the parse phase, before any transforms are applied to the
+tree. The transformed tree is dumped also.
----------------------------------------
02 November 2005. Summary of changes for version 20051102:
1) ACPI CA Core Subsystem:
-Modified the subsystem initialization sequence to improve GPE
-support. The GPE initialization has been split into two parts in
-order to defer execution of the _PRW methods (Power Resources for
-Wake) until after the hardware is fully initialized and the SCI
-handler is installed. This allows the _PRW methods to access
-fields protected by the Global Lock. This will fix systems where
-a NO_GLOBAL_LOCK exception has been seen during initialization.
-
-Converted the ACPI internal object disassemble and display code
-within the AML debugger to fully table-driven operation, reducing
-code size and increasing maintainability.
-
-Fixed a regression with the ConcatenateResTemplate() ASL operator
-introduced in the 20051021 release.
-
-Implemented support for "local" internal ACPI object types within
-the debugger "Object" command and the AcpiWalkNamespace external
-interfaces. These local types include RegionFields, BankFields,
-IndexFields, Alias, and reference objects.
-
-Moved common AML resource handling code into a new file,
-"utresrc.c". This code is shared by both the Resource Manager and
-the AML Debugger.
-
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Modified the subsystem initialization sequence to improve GPE support. The
+GPE initialization has been split into two parts in order to defer execution
+of the _PRW methods (Power Resources for Wake) until after the hardware is
+fully initialized and the SCI handler is installed. This allows the _PRW
+methods to access fields protected by the Global Lock. This will fix systems
+where a NO_GLOBAL_LOCK exception has been seen during initialization.
+
+Converted the ACPI internal object disassemble and display code within the
+AML debugger to fully table-driven operation, reducing code size and
+increasing maintainability.
+
+Fixed a regression with the ConcatenateResTemplate() ASL operator introduced
+in the 20051021 release.
+
+Implemented support for "local" internal ACPI object types within the
+debugger "Object" command and the AcpiWalkNamespace external interfaces.
+These local types include RegionFields, BankFields, IndexFields, Alias, and
+reference objects.
+
+Moved common AML resource handling code into a new file, "utresrc.c". This
+code is shared by both the Resource Manager and the AML Debugger.
+
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total
@@ -1662,67 +2938,61 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem with very large initializer lists (more than 4000
-elements) for both Buffer and Package objects where the parse
-stack could overflow.
+Fixed a problem with very large initializer lists (more than 4000 elements)
+for both Buffer and Package objects where the parse stack could overflow.
-Enhanced the pre-compile source code scan for non-ASCII
-characters to ignore characters within comment fields. The scan
-is now always performed and is no longer optional, detecting
-invalid characters within a source file immediately rather than
-during the parse phase or later.
+Enhanced the pre-compile source code scan for non-ASCII characters to ignore
+characters within comment fields. The scan is now always performed and is no
+longer optional, detecting invalid characters within a source file
+immediately rather than during the parse phase or later.
-Enhanced the ASL grammar definition to force early reductions on
-all list-style grammar elements so that the overall parse stack
-usage is greatly reduced. This should improve performance and
-reduce the possibility of parse stack overflow.
+Enhanced the ASL grammar definition to force early reductions on all list-
+style grammar elements so that the overall parse stack usage is greatly
+reduced. This should improve performance and reduce the possibility of parse
+stack overflow.
-Eliminated all reduce/reduce conflicts in the iASL parser
-generation. Also, with the addition of a %expected statement, the
-compiler generates from source with no warnings.
+Eliminated all reduce/reduce conflicts in the iASL parser generation. Also,
+with the addition of a %expected statement, the compiler generates from
+source with no warnings.
-Fixed a possible segment fault in the disassembler if the input
-filename does not contain a "dot" extension (Thomas Renninger).
+Fixed a possible segment fault in the disassembler if the input filename
+does not contain a "dot" extension (Thomas Renninger).
----------------------------------------
21 October 2005. Summary of changes for version 20051021:
1) ACPI CA Core Subsystem:
-Implemented support for the EM64T and other x86-64 processors.
-This essentially entails recognizing that these processors
-support non-aligned memory transfers. Previously, all 64-bit
-processors were assumed to lack hardware support for non-aligned
-transfers.
-
-Completed conversion of the Resource Manager to nearly full table-
-driven operation. Specifically, the resource conversion code
-(convert AML to internal format and the reverse) and the debug
-code to dump internal resource descriptors are fully table-
-driven, reducing code and data size and improving
-maintainability.
-
-The OSL interfaces for Acquire and Release Lock now use a 64-bit
-flag word on 64-bit processors instead of a fixed 32-bit word.
-(With assistance from Alexey Starikovskiy)
-
-Implemented support within the resource conversion code for the
-Type-Specific byte within the various ACPI 3.0 *WordSpace macros.
-
-Fixed some issues within the resource conversion code for the
-type-specific flags for both Memory and I/O address resource
-descriptors. For Memory, implemented support for the MTP and TTP
-flags. For I/O, split the TRS and TTP flags into two separate
-fields.
-
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Implemented support for the EM64T and other x86-64 processors. This
+essentially entails recognizing that these processors support non-aligned
+memory transfers. Previously, all 64-bit processors were assumed to lack
+hardware support for non-aligned transfers.
+
+Completed conversion of the Resource Manager to nearly full table-driven
+operation. Specifically, the resource conversion code (convert AML to
+internal format and the reverse) and the debug code to dump internal
+resource descriptors are fully table-driven, reducing code and data size and
+improving maintainability.
+
+The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word
+on 64-bit processors instead of a fixed 32-bit word. (With assistance from
+Alexey Starikovskiy)
+
+Implemented support within the resource conversion code for the Type-
+Specific byte within the various ACPI 3.0 *WordSpace macros.
+
+Fixed some issues within the resource conversion code for the type-specific
+flags for both Memory and I/O address resource descriptors. For Memory,
+implemented support for the MTP and TTP flags. For I/O, split the TRS and
+TTP flags into two separate fields.
+
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total
@@ -1735,77 +3005,70 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Relaxed a compiler restriction that disallowed a ResourceIndex
-byte if the corresponding ResourceSource string was not also
-present in a resource descriptor declaration. This restriction
-caused problems with existing AML/ASL code that includes the
-Index byte without the string. When such AML was disassembled, it
-could not be compiled without modification. Further, the modified
-code created a resource template with a different size than the
-original, breaking code that used fixed offsets into the resource
-template buffer.
+Relaxed a compiler restriction that disallowed a ResourceIndex byte if the
+corresponding ResourceSource string was not also present in a resource
+descriptor declaration. This restriction caused problems with existing
+AML/ASL code that includes the Index byte without the string. When such AML
+was disassembled, it could not be compiled without modification. Further,
+the modified code created a resource template with a different size than the
+original, breaking code that used fixed offsets into the resource template
+buffer.
-Removed a recent feature of the disassembler to ignore a lone
-ResourceIndex byte. This byte is now emitted if present so that
-the exact AML can be reproduced when the disassembled code is
-recompiled.
+Removed a recent feature of the disassembler to ignore a lone ResourceIndex
+byte. This byte is now emitted if present so that the exact AML can be
+reproduced when the disassembled code is recompiled.
-Improved comments and text alignment for the resource descriptor
-code emitted by the disassembler.
+Improved comments and text alignment for the resource descriptor code
+emitted by the disassembler.
-Implemented disassembler support for the ACPI 3.0 AccessSize
-field within a Register() resource descriptor.
+Implemented disassembler support for the ACPI 3.0 AccessSize field within a
+Register() resource descriptor.
----------------------------------------
30 September 2005. Summary of changes for version 20050930:
1) ACPI CA Core Subsystem:
-Completed a major overhaul of the Resource Manager code -
-specifically, optimizations in the area of the AML/internal
-resource conversion code. The code has been optimized to simplify
-and eliminate duplicated code, CPU stack use has been decreased
-by optimizing function parameters and local variables, and naming
-conventions across the manager have been standardized for clarity
-and ease of maintenance (this includes function, parameter,
-variable, and struct/typedef names.) The update may force changes
-in some driver code, depending on how resources are handled by
-the host OS.
-
-All Resource Manager dispatch and information tables have been
-moved to a single location for clarity and ease of maintenance.
-One new file was created, named "rsinfo.c".
-
-The ACPI return macros (return_ACPI_STATUS, etc.) have been
-modified to guarantee that the argument is not evaluated twice,
-making them less prone to macro side-effects. However, since
-there exists the possibility of additional stack use if a
-particular compiler cannot optimize them (such as in the debug
-generation case), the original macros are optionally available.
-Note that some invocations of the return_VALUE macro may now
-cause size mismatch warnings; the return_UINT8 and return_UINT32
-macros are provided to eliminate these. (From Randy Dunlap)
-
-Implemented a new mechanism to enable debug tracing for
-individual control methods. A new external interface,
-AcpiDebugTrace, is provided to enable this mechanism. The intent
-is to allow the host OS to easily enable and disable tracing for
-problematic control methods. This interface can be easily exposed
-to a user or debugger interface if desired. See the file
+Completed a major overhaul of the Resource Manager code - specifically,
+optimizations in the area of the AML/internal resource conversion code. The
+code has been optimized to simplify and eliminate duplicated code, CPU stack
+use has been decreased by optimizing function parameters and local
+variables, and naming conventions across the manager have been standardized
+for clarity and ease of maintenance (this includes function, parameter,
+variable, and struct/typedef names.) The update may force changes in some
+driver code, depending on how resources are handled by the host OS.
+
+All Resource Manager dispatch and information tables have been moved to a
+single location for clarity and ease of maintenance. One new file was
+created, named "rsinfo.c".
+
+The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
+guarantee that the argument is not evaluated twice, making them less prone
+to macro side-effects. However, since there exists the possibility of
+additional stack use if a particular compiler cannot optimize them (such as
+in the debug generation case), the original macros are optionally available.
+Note that some invocations of the return_VALUE macro may now cause size
+mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to
+eliminate these. (From Randy Dunlap)
+
+Implemented a new mechanism to enable debug tracing for individual control
+methods. A new external interface, AcpiDebugTrace, is provided to enable
+this mechanism. The intent is to allow the host OS to easily enable and
+disable tracing for problematic control methods. This interface can be
+easily exposed to a user or debugger interface if desired. See the file
psxface.c for details.
-AcpiUtCallocate will now return a valid pointer if a length of
-zero is specified - a length of one is used and a warning is
-issued. This matches the behavior of AcpiUtAllocate.
+AcpiUtCallocate will now return a valid pointer if a length of zero is
+specified - a length of one is used and a warning is issued. This matches
+the behavior of AcpiUtAllocate.
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total
@@ -1817,41 +3080,36 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-A remark is issued if the effective compile-time length of a
-package or buffer is zero. Previously, this was a warning.
+A remark is issued if the effective compile-time length of a package or
+buffer is zero. Previously, this was a warning.
----------------------------------------
16 September 2005. Summary of changes for version 20050916:
1) ACPI CA Core Subsystem:
-Fixed a problem within the Resource Manager where support for the
-Generic Register descriptor was not fully implemented. This
-descriptor is now fully recognized, parsed, disassembled, and
-displayed.
-
-Completely restructured the Resource Manager code to utilize
-table-driven dispatch and lookup, eliminating many of the large
-switch() statements. This reduces overall subsystem code size and
-code complexity. Affects the resource parsing and construction,
-disassembly, and debug dump output.
-
-Cleaned up and restructured the debug dump output for all
-resource descriptors. Improved readability of the output and
-reduced code size.
-
-Fixed a problem where changes to internal data structures caused
-the optional ACPI_MUTEX_DEBUG code to fail compilation if
-specified.
-
-Code and Data Size: The current and previous library sizes for
-the core subsystem are shown below. These are the code and data
-sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0
-32-bit compiler. These values do not include any ACPI driver or
-OSPM code. The debug version of the code includes the debug
-output trace mechanism and has a much larger code and data size.
-Note that these values will vary depending on the efficiency of
-the compiler and the compiler options used during generation.
+Fixed a problem within the Resource Manager where support for the Generic
+Register descriptor was not fully implemented. This descriptor is now fully
+recognized, parsed, disassembled, and displayed.
+
+Completely restructured the Resource Manager code to utilize table-driven
+dispatch and lookup, eliminating many of the large switch() statements. This
+reduces overall subsystem code size and code complexity. Affects the
+resource parsing and construction, disassembly, and debug dump output.
+
+Cleaned up and restructured the debug dump output for all resource
+descriptors. Improved readability of the output and reduced code size.
+
+Fixed a problem where changes to internal data structures caused the
+optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
+
+Code and Data Size: The current and previous library sizes for the core
+subsystem are shown below. These are the code and data sizes for the
+acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These
+values do not include any ACPI driver or OSPM code. The debug version of the
+code includes the debug output trace mechanism and has a much larger code
+and data size. Note that these values will vary depending on the efficiency
+of the compiler and the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total
@@ -1863,57 +3121,52 @@ the compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Updated the disassembler to automatically insert an
-EndDependentFn() macro into the ASL stream if this macro is
-missing in the original AML code, simplifying compilation of the
-resulting ASL module.
+Updated the disassembler to automatically insert an EndDependentFn() macro
+into the ASL stream if this macro is missing in the original AML code,
+simplifying compilation of the resulting ASL module.
-Fixed a problem in the disassembler where a disassembled
-ResourceSource string (within a large resource descriptor) was
-not surrounded by quotes and not followed by a comma, causing
-errors when the resulting ASL module was compiled. Also, escape
-sequences within a ResourceSource string are now handled
-correctly (especially "\\")
+Fixed a problem in the disassembler where a disassembled ResourceSource
+string (within a large resource descriptor) was not surrounded by quotes and
+not followed by a comma, causing errors when the resulting ASL module was
+compiled. Also, escape sequences within a ResourceSource string are now
+handled correctly (especially "\\")
----------------------------------------
02 September 2005. Summary of changes for version 20050902:
1) ACPI CA Core Subsystem:
-Fixed a problem with the internal Owner ID allocation and
-deallocation mechanisms for control method execution and
-recursive method invocation. This should eliminate the
-OWNER_ID_LIMIT exceptions and "Invalid OwnerId" messages seen on
-some systems. Recursive method invocation depth is currently
-limited to 255. (Alexey Starikovskiy)
-
-Completely eliminated all vestiges of support for the "module-
-level executable code" until this support is fully implemented
-and debugged. This should eliminate the NO_RETURN_VALUE
-exceptions seen during table load on some systems that invoke
-this support.
-
-Fixed a problem within the resource manager code where the
-transaction flags for a 64-bit address descriptor were handled
-incorrectly in the type-specific flag byte.
-
-Consolidated duplicate code within the address descriptor
-resource manager code, reducing overall subsystem code size.
-
-Fixed a fault when using the AML debugger "disassemble" command
-to disassemble individual control methods.
-
-Removed references to the "release_current" directory within the
-Unix release package.
-
-Code and Data Size: The current and previous core subsystem
-library sizes are shown below. These are the code and data sizes
-for the acpica.lib produced by the Microsoft Visual C++ 6.0
-compiler. These values do not include any ACPI driver or OSPM
-code. The debug version of the code includes the debug output
-trace mechanism and has a much larger code and data size. Note
-that these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Fixed a problem with the internal Owner ID allocation and deallocation
+mechanisms for control method execution and recursive method invocation.
+This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
+messages seen on some systems. Recursive method invocation depth is
+currently limited to 255. (Alexey Starikovskiy)
+
+Completely eliminated all vestiges of support for the "module-level
+executable code" until this support is fully implemented and debugged. This
+should eliminate the NO_RETURN_VALUE exceptions seen during table load on
+some systems that invoke this support.
+
+Fixed a problem within the resource manager code where the transaction flags
+for a 64-bit address descriptor were handled incorrectly in the type-
+specific flag byte.
+
+Consolidated duplicate code within the address descriptor resource manager
+code, reducing overall subsystem code size.
+
+Fixed a fault when using the AML debugger "disassemble" command to
+disassemble individual control methods.
+
+Removed references to the "release_current" directory within the Unix
+release package.
+
+Code and Data Size: The current and previous core subsystem library sizes
+are shown below. These are the code and data sizes for the acpica.lib
+produced by the Microsoft Visual C++ 6.0 compiler. These values do not
+include any ACPI driver or OSPM code. The debug version of the code includes
+the debug output trace mechanism and has a much larger code and data size.
+Note that these values will vary depending on the efficiency of the compiler
+and the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total
@@ -1925,106 +3178,98 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Implemented an error check for illegal duplicate values in the
-interrupt and dma lists for the following ASL macros: Dma(),
-Irq(), IrqNoFlags(), and Interrupt().
+Implemented an error check for illegal duplicate values in the interrupt and
+dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
+Interrupt().
-Implemented error checking for the Irq() and IrqNoFlags() macros
-to detect too many values in the interrupt list (16 max) and
-invalid values in the list (range 0 - 15)
+Implemented error checking for the Irq() and IrqNoFlags() macros to detect
+too many values in the interrupt list (16 max) and invalid values in the
+list (range 0 - 15)
-The maximum length string literal within an ASL file is now
-restricted to 200 characters as per the ACPI specification.
+The maximum length string literal within an ASL file is now restricted to
+200 characters as per the ACPI specification.
-Fixed a fault when using the -ln option (generate namespace
-listing).
+Fixed a fault when using the -ln option (generate namespace listing).
-Implemented an error check to determine if a DescriptorName
-within a resource descriptor has already been used within the
-current scope.
+Implemented an error check to determine if a DescriptorName within a
+resource descriptor has already been used within the current scope.
----------------------------------------
15 August 2005. Summary of changes for version 20050815:
-
+
1) ACPI CA Core Subsystem:
-
-Implemented a full bytewise compare to determine if a table load
-request is attempting to load a duplicate table. The compare is
-performed if the table signatures and table lengths match. This
-will allow different tables with the same OEM Table ID and
-revision to be loaded - probably against the ACPI specification,
-but discovered in the field nonetheless.
-
-Added the changes.txt logfile to each of the zipped release
-packages.
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
-
+
+Implemented a full bytewise compare to determine if a table load request is
+attempting to load a duplicate table. The compare is performed if the table
+signatures and table lengths match. This will allow different tables with
+the same OEM Table ID and revision to be loaded - probably against the ACPI
+specification, but discovered in the field nonetheless.
+
+Added the changes.txt logfile to each of the zipped release packages.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
+
Previous Release:
Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total
Debug Version: 167.0K Code, 69.9K Data, 236.9K Total
Current Release:
Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total
Debug Version: 170.0K Code, 69.9K Data, 239.9K Total
-
-
+
+
2) iASL Compiler/Disassembler:
-
-Fixed a problem where incorrect AML code could be generated for
-Package objects if optimization is disabled (via the -oa switch).
-
-Fixed a problem with where incorrect AML code is generated for
-variable-length packages when the package length is not specified
-and the number of initializer values is greater than 255.
-
+
+Fixed a problem where incorrect AML code could be generated for Package
+objects if optimization is disabled (via the -oa switch).
+
+Fixed a problem with where incorrect AML code is generated for variable-
+length packages when the package length is not specified and the number of
+initializer values is greater than 255.
+
----------------------------------------
29 July 2005. Summary of changes for version 20050729:
1) ACPI CA Core Subsystem:
-Implemented support to ignore an attempt to install/load a
-particular ACPI table more than once. Apparently there exists
-BIOS code that repeatedly attempts to load the same SSDT upon
-certain events. With assistance from Venkatesh Pallipadi.
-
-Restructured the main interface to the AML parser in order to
-correctly handle all exceptional conditions. This will prevent
-leakage of the OwnerId resource and should eliminate the
-AE_OWNER_ID_LIMIT exceptions seen on some machines. With
-assistance from Alexey Starikovskiy.
-
-Support for "module level code" has been disabled in this version
-due to a number of issues that have appeared on various machines.
-The support can be enabled by defining
-ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem compilation. When
-the issues are fully resolved, the code will be enabled by
+Implemented support to ignore an attempt to install/load a particular ACPI
+table more than once. Apparently there exists BIOS code that repeatedly
+attempts to load the same SSDT upon certain events. With assistance from
+Venkatesh Pallipadi.
+
+Restructured the main interface to the AML parser in order to correctly
+handle all exceptional conditions. This will prevent leakage of the OwnerId
+resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some
+machines. With assistance from Alexey Starikovskiy.
+
+Support for "module level code" has been disabled in this version due to a
+number of issues that have appeared on various machines. The support can be
+enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
+compilation. When the issues are fully resolved, the code will be enabled by
default again.
-Modified the internal functions for debug print support to define
-the FunctionName parameter as a (const char *) for compatibility
-with compiler built-in macros such as __FUNCTION__, etc.
+Modified the internal functions for debug print support to define the
+FunctionName parameter as a (const char *) for compatibility with compiler
+built-in macros such as __FUNCTION__, etc.
Linted the entire ACPICA source tree for both 32-bit and 64-bit.
-Implemented support to display an object count summary for the
-AML Debugger commands Object and Methods.
+Implemented support to display an object count summary for the AML Debugger
+commands Object and Methods.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total
@@ -2036,66 +3281,59 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a regression that appeared in the 20050708 version of the
-compiler where an error message was inadvertently emitted for
-invocations of the _OSI reserved control method.
+Fixed a regression that appeared in the 20050708 version of the compiler
+where an error message was inadvertently emitted for invocations of the _OSI
+reserved control method.
----------------------------------------
08 July 2005. Summary of changes for version 20050708:
1) ACPI CA Core Subsystem:
-The use of the CPU stack in the debug version of the subsystem
-has been considerably reduced. Previously, a debug structure was
-declared in every function that used the debug macros. This
-structure has been removed in favor of declaring the individual
-elements as parameters to the debug functions. This reduces the
-cumulative stack use during nested execution of ACPI function
-calls at the cost of a small increase in the code size of the
-debug version of the subsystem. With assistance from Alexey
-Starikovskiy and Len Brown.
-
-Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-
-dependent headers to define a macro that will return the current
-function name at runtime (such as __FUNCTION__ or _func_, etc.)
-The function name is used by the debug trace output. If
-ACPI_GET_FUNCTION_NAME is not defined in the compiler-dependent
-header, the function name is saved on the CPU stack (one pointer
-per function.) This mechanism is used because apparently there
-exists no standard ANSI-C defined macro that that returns the
-function name.
-
-Redesigned and reimplemented the "Owner ID" mechanism used to
-track namespace objects created/deleted by ACPI tables and
-control method execution. A bitmap is now used to allocate and
-free the IDs, thus solving the wraparound problem present in the
-previous implementation. The size of the namespace node
-descriptor was reduced by 2 bytes as a result (Alexey
+The use of the CPU stack in the debug version of the subsystem has been
+considerably reduced. Previously, a debug structure was declared in every
+function that used the debug macros. This structure has been removed in
+favor of declaring the individual elements as parameters to the debug
+functions. This reduces the cumulative stack use during nested execution of
+ACPI function calls at the cost of a small increase in the code size of the
+debug version of the subsystem. With assistance from Alexey Starikovskiy and
+Len Brown.
+
+Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
+headers to define a macro that will return the current function name at
+runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by
+the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
+compiler-dependent header, the function name is saved on the CPU stack (one
+pointer per function.) This mechanism is used because apparently there
+exists no standard ANSI-C defined macro that that returns the function name.
+
+Redesigned and reimplemented the "Owner ID" mechanism used to track
+namespace objects created/deleted by ACPI tables and control method
+execution. A bitmap is now used to allocate and free the IDs, thus solving
+the wraparound problem present in the previous implementation. The size of
+the namespace node descriptor was reduced by 2 bytes as a result (Alexey
Starikovskiy).
-Removed the UINT32_BIT and UINT16_BIT types that were used for
-the bitfield flag definitions within the headers for the
-predefined ACPI tables. These have been replaced by UINT8_BIT in
-order to increase the code portability of the subsystem. If the
-use of UINT8 remains a problem, we may be forced to eliminate
-bitfields entirely because of a lack of portability.
-
-Enhanced the performance of the AcpiUtUpdateObjectReference
-procedure. This is a frequently used function and this
-improvement increases the performance of the entire subsystem
-(Alexey Starikovskiy).
-
-Fixed several possible memory leaks and the inverse - premature
-object deletion (Alexey Starikovskiy).
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield
+flag definitions within the headers for the predefined ACPI tables. These
+have been replaced by UINT8_BIT in order to increase the code portability of
+the subsystem. If the use of UINT8 remains a problem, we may be forced to
+eliminate bitfields entirely because of a lack of portability.
+
+Enhanced the performance of the AcpiUtUpdateObjectReference procedure. This
+is a frequently used function and this improvement increases the performance
+of the entire subsystem (Alexey Starikovskiy).
+
+Fixed several possible memory leaks and the inverse - premature object
+deletion (Alexey Starikovskiy).
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total
@@ -2109,51 +3347,47 @@ compiler and the compiler options used during generation.
1) ACPI CA Core Subsystem:
-Modified the new OSL cache interfaces to use ACPI_CACHE_T as the
-type for the host-defined cache object. This allows the OSL
-implementation to define and type this object in any manner
-desired, simplifying the OSL implementation. For example,
-ACPI_CACHE_T is defined as kmem_cache_t for Linux, and should be
-defined in the OS-specific header file for other operating
-systems as required.
-
-Changed the interface to AcpiOsAcquireObject to directly return
-the requested object as the function return (instead of
-ACPI_STATUS.) This change was made for performance reasons, since
-this is the purpose of the interface in the first place.
-AcpiOsAcquireObject is now similar to the AcpiOsAllocate
-interface.
-
-Implemented a new AML debugger command named Businfo. This
-command displays information about all devices that have an
-associate _PRT object. The _ADR, _HID, _UID, and _CID are
-displayed for these devices.
-
-Modified the initialization sequence in AcpiInitializeSubsystem
-to call the OSL interface AcpiOslInitialize first, before any
-local initialization. This change was required because the global
-initialization now calls OSL interfaces.
+Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
+the host-defined cache object. This allows the OSL implementation to define
+and type this object in any manner desired, simplifying the OSL
+implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
+Linux, and should be defined in the OS-specific header file for other
+operating systems as required.
+
+Changed the interface to AcpiOsAcquireObject to directly return the
+requested object as the function return (instead of ACPI_STATUS.) This
+change was made for performance reasons, since this is the purpose of the
+interface in the first place. AcpiOsAcquireObject is now similar to the
+AcpiOsAllocate interface.
+
+Implemented a new AML debugger command named Businfo. This command displays
+information about all devices that have an associate _PRT object. The _ADR,
+_HID, _UID, and _CID are displayed for these devices.
+
+Modified the initialization sequence in AcpiInitializeSubsystem to call the
+OSL interface AcpiOslInitialize first, before any local initialization. This
+change was required because the global initialization now calls OSL
+interfaces.
-Enhanced the Dump command to display the entire contents of
-Package objects (including all sub-objects and their values.)
+Enhanced the Dump command to display the entire contents of Package objects
+(including all sub-objects and their values.)
-Restructured the code base to split some files because of size
-and/or because the code logically belonged in a separate file.
-New files are listed below. All makefiles and project files
-included in the ACPI CA release have been updated.
+Restructured the code base to split some files because of size and/or
+because the code logically belonged in a separate file. New files are listed
+below. All makefiles and project files included in the ACPI CA release have
+been updated.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
interpreter/parser/psloop.c /* Main AML parse loop */
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total
@@ -2165,72 +3399,67 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a regression introduced in version 20050513 where the use
-of a Package object within a Case() statement caused a compile
-time exception. The original behavior has been restored (a
-Match() operator is emitted.)
+Fixed a regression introduced in version 20050513 where the use of a Package
+object within a Case() statement caused a compile time exception. The
+original behavior has been restored (a Match() operator is emitted.)
----------------------------------------
17 June 2005. Summary of changes for version 20050617:
1) ACPI CA Core Subsystem:
-Moved the object cache operations into the OS interface layer
-(OSL) to allow the host OS to handle these operations if desired
-(for example, the Linux OSL will invoke the slab allocator). This
-support is optional; the compile time define ACPI_USE_LOCAL_CACHE
-may be used to utilize the original cache code in the ACPI CA
-core. The new OSL interfaces are shown below. See utalloc.c for
-an example implementation, and acpiosxf.h for the exact interface
-definitions. With assistance from Alexey Starikovskiy.
+Moved the object cache operations into the OS interface layer (OSL) to allow
+the host OS to handle these operations if desired (for example, the Linux
+OSL will invoke the slab allocator). This support is optional; the compile
+time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache
+code in the ACPI CA core. The new OSL interfaces are shown below. See
+utalloc.c for an example implementation, and acpiosxf.h for the exact
+interface definitions. With assistance from Alexey Starikovskiy.
AcpiOsCreateCache
AcpiOsDeleteCache
AcpiOsPurgeCache
AcpiOsAcquireObject
AcpiOsReleaseObject
-Modified the interfaces to AcpiOsAcquireLock and
-AcpiOsReleaseLock to return and restore a flags parameter. This
-fits better with many OS lock models. Note: the current execution
-state (interrupt handler or not) is no longer passed to these
-interfaces. If necessary, the OSL must determine this state by
-itself, a simple and fast operation. With assistance from Alexey
+Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return
+and restore a flags parameter. This fits better with many OS lock models.
+Note: the current execution state (interrupt handler or not) is no longer
+passed to these interfaces. If necessary, the OSL must determine this state
+by itself, a simple and fast operation. With assistance from Alexey
Starikovskiy.
-Fixed a problem in the ACPI table handling where a valid XSDT was
-assumed present if the revision of the RSDP was 2 or greater.
-According to the ACPI specification, the XSDT is optional in all
-cases, and the table manager therefore now checks for both an
-RSDP >=2 and a valid XSDT pointer. Otherwise, the RSDT pointer is
-used. Some ACPI 2.0 compliant BIOSs contain only the RSDT.
-
-Fixed an interpreter problem with the Mid() operator in the case
-of an input string where the resulting output string is of zero
-length. It now correctly returns a valid, null terminated string
-object instead of a string object with a null pointer.
-
-Fixed a problem with the control method argument handling to
-allow a store to an Arg object that already contains an object of
-type Device. The Device object is now correctly overwritten.
-Previously, an error was returned.
-
-
-Enhanced the debugger Find command to emit object values in
-addition to the found object pathnames. The output format is the
-same as the dump namespace command.
-
-Enhanced the debugger Set command. It now has the ability to set
-the value of any Named integer object in the namespace
-(Previously, only method locals and args could be set.)
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Fixed a problem in the ACPI table handling where a valid XSDT was assumed
+present if the revision of the RSDP was 2 or greater. According to the ACPI
+specification, the XSDT is optional in all cases, and the table manager
+therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
+Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain
+only the RSDT.
+
+Fixed an interpreter problem with the Mid() operator in the case of an input
+string where the resulting output string is of zero length. It now correctly
+returns a valid, null terminated string object instead of a string object
+with a null pointer.
+
+Fixed a problem with the control method argument handling to allow a store
+to an Arg object that already contains an object of type Device. The Device
+object is now correctly overwritten. Previously, an error was returned.
+
+
+Enhanced the debugger Find command to emit object values in addition to the
+found object pathnames. The output format is the same as the dump namespace
+command.
+
+Enhanced the debugger Set command. It now has the ability to set the value
+of any Named integer object in the namespace (Previously, only method locals
+and args could be set.)
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total
@@ -2242,63 +3471,59 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a regression in the disassembler where if/else/while
-constructs were output incorrectly. This problem was introduced
-in the previous release (20050526). This problem also affected
-the single-step disassembly in the debugger.
+Fixed a regression in the disassembler where if/else/while constructs were
+output incorrectly. This problem was introduced in the previous release
+(20050526). This problem also affected the single-step disassembly in the
+debugger.
-Fixed a problem where compiling the reserved _OSI method would
-randomly (but rarely) produce compile errors.
+Fixed a problem where compiling the reserved _OSI method would randomly (but
+rarely) produce compile errors.
-Enhanced the disassembler to emit compilable code in the face of
-incorrect AML resource descriptors. If the optional
-ResourceSourceIndex is present, but the ResourceSource is not, do
-not emit the ResourceSourceIndex in the disassembly. Otherwise,
-the resulting code cannot be compiled without errors.
+Enhanced the disassembler to emit compilable code in the face of incorrect
+AML resource descriptors. If the optional ResourceSourceIndex is present,
+but the ResourceSource is not, do not emit the ResourceSourceIndex in the
+disassembly. Otherwise, the resulting code cannot be compiled without
+errors.
----------------------------------------
26 May 2005. Summary of changes for version 20050526:
1) ACPI CA Core Subsystem:
-Implemented support to execute Type 1 and Type 2 AML opcodes
-appearing at the module level (not within a control method.)
-These opcodes are executed exactly once at the time the table is
-loaded. This type of code was legal up until the release of ACPI
-2.0B (2002) and is now supported within ACPI CA in order to
-provide backwards compatibility with earlier BIOS
-implementations. This eliminates the "Encountered executable code
-at module level" warning that was previously generated upon
-detection of such code.
-
-Fixed a problem in the interpreter where an AE_NOT_FOUND
-exception could inadvertently be generated during the lookup of
-namespace objects in the second pass parse of ACPI tables and
-control methods. It appears that this problem could occur during
-the resolution of forward references to namespace objects.
-
-Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex
-function, corresponding to the same #ifdef in the
-AcpiUtAcquireMutex function. This allows the deadlock detection
-debug code to be compiled out in the normal case, improving mutex
-performance (and overall subsystem performance) considerably.
-
-Implemented a handful of miscellaneous fixes for possible memory
-leaks on error conditions and error handling control paths. These
-fixes were suggested by FreeBSD and the Coverity Prevent source
-code analysis tool.
-
-Added a check for a null RSDT pointer in AcpiGetFirmwareTable
-(tbxfroot.c) to prevent a fault in this error case.
+Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
+the module level (not within a control method.) These opcodes are executed
+exactly once at the time the table is loaded. This type of code was legal up
+until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in
+order to provide backwards compatibility with earlier BIOS implementations.
+This eliminates the "Encountered executable code at module level" warning
+that was previously generated upon detection of such code.
+
+Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
+inadvertently be generated during the lookup of namespace objects in the
+second pass parse of ACPI tables and control methods. It appears that this
+problem could occur during the resolution of forward references to namespace
+objects.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
+corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
+allows the deadlock detection debug code to be compiled out in the normal
+case, improving mutex performance (and overall subsystem performance)
+considerably.
+
+Implemented a handful of miscellaneous fixes for possible memory leaks on
+error conditions and error handling control paths. These fixes were
+suggested by FreeBSD and the Coverity Prevent source code analysis tool.
+
+Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c)
+to prevent a fault in this error case.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total
@@ -2310,72 +3535,65 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Implemented support to allow Type 1 and Type 2 ASL operators to
-appear at the module level (not within a control method.) These
-operators will be executed once at the time the table is loaded.
-This type of code was legal up until the release of ACPI 2.0B
-(2002) and is now supported by the iASL compiler in order to
-provide backwards compatibility with earlier BIOS ASL code.
-
-The ACPI integer width (specified via the table revision ID or
-the -r override, 32 or 64 bits) is now used internally during
-compile-time constant folding to ensure that constants are
-truncated to 32 bits if necessary. Previously, the revision ID
-value was only emitted in the AML table header.
-
-An error message is now generated for the Mutex and Method
-operators if the SyncLevel parameter is outside the legal range
-of 0 through 15.
-
-Fixed a problem with the Method operator ParameterTypes list
-handling (ACPI 3.0). Previously, more than 2 types or 2 arguments
-generated a syntax error. The actual underlying implementation
-of method argument typechecking is still under development,
-however.
+Implemented support to allow Type 1 and Type 2 ASL operators to appear at
+the module level (not within a control method.) These operators will be
+executed once at the time the table is loaded. This type of code was legal
+up until the release of ACPI 2.0B (2002) and is now supported by the iASL
+compiler in order to provide backwards compatibility with earlier BIOS ASL
+code.
+
+The ACPI integer width (specified via the table revision ID or the -r
+override, 32 or 64 bits) is now used internally during compile-time constant
+folding to ensure that constants are truncated to 32 bits if necessary.
+Previously, the revision ID value was only emitted in the AML table header.
+
+An error message is now generated for the Mutex and Method operators if the
+SyncLevel parameter is outside the legal range of 0 through 15.
+
+Fixed a problem with the Method operator ParameterTypes list handling (ACPI
+3.0). Previously, more than 2 types or 2 arguments generated a syntax error.
+The actual underlying implementation of method argument typechecking is
+still under development, however.
----------------------------------------
13 May 2005. Summary of changes for version 20050513:
1) ACPI CA Core Subsystem:
-Implemented support for PCI Express root bridges -- added support
-for device PNP0A08 in the root bridge search within
-AcpiEvPciConfigRegionSetup.
+Implemented support for PCI Express root bridges -- added support for device
+PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
-The interpreter now automatically truncates incoming 64-bit
-constants to 32 bits if currently executing out of a 32-bit ACPI
-table (Revision < 2). This also affects the iASL compiler
-constant folding. (Note: as per below, the iASL compiler no
-longer allows 64-bit constants within 32-bit tables.)
+The interpreter now automatically truncates incoming 64-bit constants to 32
+bits if currently executing out of a 32-bit ACPI table (Revision < 2). This
+also affects the iASL compiler constant folding. (Note: as per below, the
+iASL compiler no longer allows 64-bit constants within 32-bit tables.)
-Fixed a problem where string and buffer objects with "static"
-pointers (pointers to initialization data within an ACPI table)
-were not handled consistently. The internal object copy operation
-now always copies the data to a newly allocated buffer,
-regardless of whether the source object is static or not.
+Fixed a problem where string and buffer objects with "static" pointers
+(pointers to initialization data within an ACPI table) were not handled
+consistently. The internal object copy operation now always copies the data
+to a newly allocated buffer, regardless of whether the source object is
+static or not.
-Fixed a problem with the FromBCD operator where an implicit
-result conversion was improperly performed while storing the
-result to the target operand. Since this is an "explicit
-conversion" operator, the implicit conversion should never be
-performed on the output.
+Fixed a problem with the FromBCD operator where an implicit result
+conversion was improperly performed while storing the result to the target
+operand. Since this is an "explicit conversion" operator, the implicit
+conversion should never be performed on the output.
-Fixed a problem with the CopyObject operator where a copy to an
-existing named object did not always completely overwrite the
-existing object stored at name. Specifically, a buffer-to-buffer
-copy did not delete the existing buffer.
+Fixed a problem with the CopyObject operator where a copy to an existing
+named object did not always completely overwrite the existing object stored
+at name. Specifically, a buffer-to-buffer copy did not delete the existing
+buffer.
-Replaced "InterruptLevel" with "InterruptNumber" in all GPE
-interfaces and structs for consistency.
+Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and
+structs for consistency.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total
@@ -2387,59 +3605,54 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-The compiler now emits a warning if an attempt is made to
-generate a 64-bit integer constant from within a 32-bit ACPI
-table (Revision < 2). The integer is truncated to 32 bits.
+The compiler now emits a warning if an attempt is made to generate a 64-bit
+integer constant from within a 32-bit ACPI table (Revision < 2). The integer
+is truncated to 32 bits.
-Fixed a problem with large package objects: if the static length
-of the package is greater than 255, the "variable length package"
-opcode is emitted. Previously, this caused an error. This
-requires an update to the ACPI spec, since it currently
-(incorrectly) states that packages larger than 255 elements are
-not allowed.
+Fixed a problem with large package objects: if the static length of the
+package is greater than 255, the "variable length package" opcode is
+emitted. Previously, this caused an error. This requires an update to the
+ACPI spec, since it currently (incorrectly) states that packages larger than
+255 elements are not allowed.
-The disassembler now correctly handles variable length packages
-and packages larger than 255 elements.
+The disassembler now correctly handles variable length packages and packages
+larger than 255 elements.
----------------------------------------
08 April 2005. Summary of changes for version 20050408:
1) ACPI CA Core Subsystem:
-Fixed three cases in the interpreter where an "index" argument to
-an ASL function was still (internally) 32 bits instead of the
-required 64 bits. This was the Index argument to the Index, Mid,
-and Match operators.
-
-The "strupr" function is now permanently local (AcpiUtStrupr),
-since this is not a POSIX-defined function and not present in
-most kernel-level C libraries. All references to the C library
-strupr function have been removed from the headers.
-
-Completed the deployment of static functions/prototypes. All
-prototypes with the static attribute have been moved from the
-headers to the owning C file.
-
-Implemented an extract option (-e) for the AcpiBin utility (AML
-binary utility). This option allows the utility to extract
-individual ACPI tables from the output of AcpiDmp. It provides
-the same functionality of the acpixtract.pl perl script without
-the worry of setting the correct perl options. AcpiBin runs on
-Windows and has not yet been generated/validated in the
-Linux/Unix environment (but should be soon).
-
-Updated and fixed the table dump option for AcpiBin (-d). This
-option converts a single ACPI table to a hex/ascii file, similar
-to the output of AcpiDmp.
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Fixed three cases in the interpreter where an "index" argument to an ASL
+function was still (internally) 32 bits instead of the required 64 bits.
+This was the Index argument to the Index, Mid, and Match operators.
+
+The "strupr" function is now permanently local (AcpiUtStrupr), since this is
+not a POSIX-defined function and not present in most kernel-level C
+libraries. All references to the C library strupr function have been removed
+from the headers.
+
+Completed the deployment of static functions/prototypes. All prototypes with
+the static attribute have been moved from the headers to the owning C file.
+
+Implemented an extract option (-e) for the AcpiBin utility (AML binary
+utility). This option allows the utility to extract individual ACPI tables
+from the output of AcpiDmp. It provides the same functionality of the
+acpixtract.pl perl script without the worry of setting the correct perl
+options. AcpiBin runs on Windows and has not yet been generated/validated in
+the Linux/Unix environment (but should be soon).
+
+Updated and fixed the table dump option for AcpiBin (-d). This option
+converts a single ACPI table to a hex/ascii file, similar to the output of
+AcpiDmp.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total
@@ -2451,57 +3664,52 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Disassembler fix: Added a check to ensure that the table length
-found in the ACPI table header within the input file is not
-longer than the actual input file size. This indicates some kind
-of file or table corruption.
+Disassembler fix: Added a check to ensure that the table length found in the
+ACPI table header within the input file is not longer than the actual input
+file size. This indicates some kind of file or table corruption.
----------------------------------------
29 March 2005. Summary of changes for version 20050329:
1) ACPI CA Core Subsystem:
-An error is now generated if an attempt is made to create a
-Buffer Field of length zero (A CreateField with a length operand
-of zero.)
+An error is now generated if an attempt is made to create a Buffer Field of
+length zero (A CreateField with a length operand of zero.)
-The interpreter now issues a warning whenever executable code at
-the module level is detected during ACPI table load. This will
-give some idea of the prevalence of this type of code.
+The interpreter now issues a warning whenever executable code at the module
+level is detected during ACPI table load. This will give some idea of the
+prevalence of this type of code.
-Implemented support for references to named objects (other than
-control methods) within package objects.
+Implemented support for references to named objects (other than control
+methods) within package objects.
-Enhanced package object output for the debug object. Package
-objects are now completely dumped, showing all elements.
+Enhanced package object output for the debug object. Package objects are now
+completely dumped, showing all elements.
-Enhanced miscellaneous object output for the debug object. Any
-object can now be written to the debug object (for example, a
-device object can be written, and the type of the object will be
-displayed.)
+Enhanced miscellaneous object output for the debug object. Any object can
+now be written to the debug object (for example, a device object can be
+written, and the type of the object will be displayed.)
-The "static" qualifier has been added to all local functions
-across both the core subsystem and the iASL compiler.
+The "static" qualifier has been added to all local functions across both the
+core subsystem and the iASL compiler.
-The number of "long" lines (> 80 chars) within the source has
-been significantly reduced, by about 1/3.
+The number of "long" lines (> 80 chars) within the source has been
+significantly reduced, by about 1/3.
-Cleaned up all header files to ensure that all CA/iASL functions
-are prototyped (even static functions) and the formatting is
-consistent.
+Cleaned up all header files to ensure that all CA/iASL functions are
+prototyped (even static functions) and the formatting is consistent.
Two new header files have been added, acopcode.h and acnames.h.
Removed several obsolete functions that were no longer used.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total
@@ -2514,13 +3722,12 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem with the resource descriptor generation/support.
-For the ResourceSourceIndex and the ResourceSource fields, both
-must be present, or both must be not present - can't have one
-without the other.
+Fixed a problem with the resource descriptor generation/support. For the
+ResourceSourceIndex and the ResourceSource fields, both must be present, or
+both must be not present - can't have one without the other.
-The compiler now returns non-zero from the main procedure if any
-errors have occurred during the compilation.
+The compiler now returns non-zero from the main procedure if any errors have
+occurred during the compilation.
----------------------------------------
@@ -2528,63 +3735,57 @@ errors have occurred during the compilation.
1) ACPI CA Core Subsystem:
-The string-to-buffer implicit conversion code has been modified
-again after a change to the ACPI specification. In order to
-match the behavior of the other major ACPI implementation, the
-target buffer is no longer truncated if the source string is
-smaller than an existing target buffer. This change requires an
-update to the ACPI spec, and should eliminate the recent
+The string-to-buffer implicit conversion code has been modified again after
+a change to the ACPI specification. In order to match the behavior of the
+other major ACPI implementation, the target buffer is no longer truncated if
+the source string is smaller than an existing target buffer. This change
+requires an update to the ACPI spec, and should eliminate the recent
AE_AML_BUFFER_LIMIT issues.
-The "implicit return" support was rewritten to a new algorithm
-that solves the general case. Rather than attempt to determine
-when a method is about to exit, the result of every ASL operator
-is saved momentarily until the very next ASL operator is
-executed. Therefore, no matter how the method exits, there will
-always be a saved implicit return value. This feature is only
-enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
-eliminate AE_AML_NO_RETURN_VALUE errors when enabled.
-
-Implemented implicit conversion support for the predicate
-(operand) of the If, Else, and While operators. String and Buffer
-arguments are automatically converted to Integers.
-
-Changed the string-to-integer conversion behavior to match the
-new ACPI errata: "If no integer object exists, a new integer is
-created. The ASCII string is interpreted as a hexadecimal
-constant. Each string character is interpreted as a hexadecimal
-value (`0'-`9', `A'-`F', `a', `f'), starting with the first
-character as the most significant digit, and ending with the
-first non-hexadecimal character or end-of-string." This means
-that the first non-hex character terminates the conversion and
-this is the code that was changed.
-
-Fixed a problem where the ObjectType operator would fail (fault)
-when used on an Index of a Package which pointed to a null
-package element. The operator now properly returns zero
-(Uninitialized) in this case.
-
-Fixed a problem where the While operator used excessive memory by
-not properly popping the result stack during execution. There was
-no memory leak after execution, however. (Code provided by Valery
-Podrezov.)
-
-Fixed a problem where references to control methods within
-Package objects caused the method to be invoked, instead of
-producing a reference object pointing to the method.
-
-Restructured and simplified the pswalk.c module
-(AcpiPsDeleteParseTree) to improve performance and reduce code
-size. (Code provided by Alexey Starikovskiy.)
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+The "implicit return" support was rewritten to a new algorithm that solves
+the general case. Rather than attempt to determine when a method is about to
+exit, the result of every ASL operator is saved momentarily until the very
+next ASL operator is executed. Therefore, no matter how the method exits,
+there will always be a saved implicit return value. This feature is only
+enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate
+AE_AML_NO_RETURN_VALUE errors when enabled.
+
+Implemented implicit conversion support for the predicate (operand) of the
+If, Else, and While operators. String and Buffer arguments are automatically
+converted to Integers.
+
+Changed the string-to-integer conversion behavior to match the new ACPI
+errata: "If no integer object exists, a new integer is created. The ASCII
+string is interpreted as a hexadecimal constant. Each string character is
+interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
+with the first character as the most significant digit, and ending with the
+first non-hexadecimal character or end-of-string." This means that the first
+non-hex character terminates the conversion and this is the code that was
+changed.
+
+Fixed a problem where the ObjectType operator would fail (fault) when used
+on an Index of a Package which pointed to a null package element. The
+operator now properly returns zero (Uninitialized) in this case.
+
+Fixed a problem where the While operator used excessive memory by not
+properly popping the result stack during execution. There was no memory leak
+after execution, however. (Code provided by Valery Podrezov.)
+
+Fixed a problem where references to control methods within Package objects
+caused the method to be invoked, instead of producing a reference object
+pointing to the method.
+
+Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to
+improve performance and reduce code size. (Code provided by Alexey
+Starikovskiy.)
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total
@@ -2596,56 +3797,49 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem with the Return operator with no arguments. Since
-the AML grammar for the byte encoding requires an operand for the
-Return opcode, the compiler now emits a Return(Zero) for this
-case. An ACPI specification update has been written for this
-case.
-
-For tables other than the DSDT, namepath optimization is
-automatically disabled. This is because SSDTs can be loaded
-anywhere in the namespace, the compiler has no knowledge of
-where, and thus cannot optimize namepaths.
-
-Added "ProcessorObj" to the ObjectTypeKeyword list. This object
-type was inadvertently omitted from the ACPI specification, and
-will require an update to the spec.
-
-The source file scan for ASCII characters is now optional (-a).
-This change was made because some vendors place non-ascii
-characters within comments. However, the scan is simply a brute-
-force byte compare to ensure all characters in the file are in
-the range 0x00 to 0x7F.
-
-Fixed a problem with the CondRefOf operator where the compiler
-was inappropriately checking for the existence of the target.
-Since the point of the operator is to check for the existence of
-the target at run-time, the compiler no longer checks for the
-target existence.
-
-Fixed a problem where errors generated from the internal AML
-interpreter during constant folding were not handled properly,
-causing a fault.
-
-Fixed a problem with overly aggressive range checking for the
-Stall operator. The valid range (max 255) is now only checked if
-the operand is of type Integer. All other operand types cannot be
-statically checked.
-
-Fixed a problem where control method references within the RefOf,
-DeRefOf, and ObjectType operators were not treated properly. They
-are now treated as actual references, not method invocations.
-
-Fixed and enhanced the "list namespace" option (-ln). This option
-was broken a number of releases ago.
-
-Improved error handling for the Field, IndexField, and BankField
-operators. The compiler now cleanly reports and recovers from
-errors in the field component (FieldUnit) list.
-
-Fixed a disassembler problem where the optional
-ResourceDescriptor fields TRS and TTP were not always handled
-correctly.
+Fixed a problem with the Return operator with no arguments. Since the AML
+grammar for the byte encoding requires an operand for the Return opcode, the
+compiler now emits a Return(Zero) for this case. An ACPI specification
+update has been written for this case.
+
+For tables other than the DSDT, namepath optimization is automatically
+disabled. This is because SSDTs can be loaded anywhere in the namespace, the
+compiler has no knowledge of where, and thus cannot optimize namepaths.
+
+Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
+inadvertently omitted from the ACPI specification, and will require an
+update to the spec.
+
+The source file scan for ASCII characters is now optional (-a). This change
+was made because some vendors place non-ascii characters within comments.
+However, the scan is simply a brute-force byte compare to ensure all
+characters in the file are in the range 0x00 to 0x7F.
+
+Fixed a problem with the CondRefOf operator where the compiler was
+inappropriately checking for the existence of the target. Since the point of
+the operator is to check for the existence of the target at run-time, the
+compiler no longer checks for the target existence.
+
+Fixed a problem where errors generated from the internal AML interpreter
+during constant folding were not handled properly, causing a fault.
+
+Fixed a problem with overly aggressive range checking for the Stall
+operator. The valid range (max 255) is now only checked if the operand is of
+type Integer. All other operand types cannot be statically checked.
+
+Fixed a problem where control method references within the RefOf, DeRefOf,
+and ObjectType operators were not treated properly. They are now treated as
+actual references, not method invocations.
+
+Fixed and enhanced the "list namespace" option (-ln). This option was broken
+a number of releases ago.
+
+Improved error handling for the Field, IndexField, and BankField operators.
+The compiler now cleanly reports and recovers from errors in the field
+component (FieldUnit) list.
+
+Fixed a disassembler problem where the optional ResourceDescriptor fields
+TRS and TTP were not always handled correctly.
Disassembler - Comments in output now use "//" instead of "/*"
@@ -2654,40 +3848,38 @@ Disassembler - Comments in output now use "//" instead of "/*"
1) ACPI CA Core Subsystem:
-Fixed a problem where the result of an Index() operator (an
-object reference) must increment the reference count on the
-target object for the life of the object reference.
+Fixed a problem where the result of an Index() operator (an object
+reference) must increment the reference count on the target object for the
+life of the object reference.
-Implemented AML Interpreter and Debugger support for the new ACPI
-3.0 Extended Address (IO, Memory, Space), QwordSpace, DwordSpace,
-and WordSpace resource descriptors.
+Implemented AML Interpreter and Debugger support for the new ACPI 3.0
+Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace
+resource descriptors.
-Implemented support in the _OSI method for the ACPI 3.0 "Extended
-Address Space Descriptor" string, indicating interpreter support
-for the descriptors above.
+Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
+Space Descriptor" string, indicating interpreter support for the descriptors
+above.
Implemented header support for the new ACPI 3.0 FADT flag bits.
-Implemented header support for the new ACPI 3.0 PCI Express bits
-for the PM1 status/enable registers.
+Implemented header support for the new ACPI 3.0 PCI Express bits for the PM1
+status/enable registers.
-Updated header support for the MADT processor local Apic struct
-and MADT platform interrupt source struct for new ACPI 3.0
-fields.
+Updated header support for the MADT processor local Apic struct and MADT
+platform interrupt source struct for new ACPI 3.0 fields.
Implemented header support for the SRAT and SLIT ACPI tables.
-Implemented the -s switch in AcpiExec to enable the
-"InterpreterSlack" flag at runtime.
+Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag
+at runtime.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total
@@ -2699,18 +3891,16 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem with the internal 64-bit String-to-integer
-conversion with strings less than two characters long.
+Fixed a problem with the internal 64-bit String-to-integer conversion with
+strings less than two characters long.
-Fixed a problem with constant folding where the result of the
-Index() operator can not be considered a constant. This means
-that Index() cannot be a type3 opcode and this will require an
-update to the ACPI specification.
+Fixed a problem with constant folding where the result of the Index()
+operator can not be considered a constant. This means that Index() cannot be
+a type3 opcode and this will require an update to the ACPI specification.
-Disassembler: Implemented support for the TTP, MTP, and TRS
-resource descriptor fields. These fields were inadvertently
-ignored and not output in the disassembly of the resource
-descriptor.
+Disassembler: Implemented support for the TTP, MTP, and TRS resource
+descriptor fields. These fields were inadvertently ignored and not output in
+the disassembly of the resource descriptor.
----------------------------------------
@@ -2718,55 +3908,46 @@ descriptor.
1) ACPI CA Core Subsystem:
-Implemented ACPI 3.0 support for implicit conversion within the
-Match() operator. MatchObjects can now be of type integer,
-buffer, or string instead of just type integer. Package elements
-are implicitly converted to the type of the MatchObject. This
-change aligns the behavior of Match() with the behavior of the
-other logical operators (LLess(), etc.) It also requires an
-errata change to the ACPI specification as this support was
-intended for ACPI 3.0, but was inadvertently omitted.
-
-Fixed a problem with the internal implicit "to buffer"
-conversion. Strings that are converted to buffers will cause
-buffer truncation if the string is smaller than the target
-buffer. Integers that are converted to buffers will not cause
-buffer truncation, only zero extension (both as per the ACPI
-spec.) The problem was introduced when code was added to truncate
-the buffer, but this should not be performed in all cases, only
-the string case.
-
-Fixed a problem with the Buffer and Package operators where the
-interpreter would get confused if two such operators were used as
-operands to an ASL operator (such as
-LLess(Buffer(1){0},Buffer(1){1}). The internal result stack was
-not being popped after the execution of these operators,
-resulting in an AE_NO_RETURN_VALUE exception.
-
-Fixed a problem with constructs of the form
-Store(Index(...),...). The reference object returned from Index
-was inadvertently resolved to an actual value. This problem was
-introduced in version 20050114 when the behavior of Store() was
-modified to restrict the object types that can be used as the
+Implemented ACPI 3.0 support for implicit conversion within the Match()
+operator. MatchObjects can now be of type integer, buffer, or string instead
+of just type integer. Package elements are implicitly converted to the type
+of the MatchObject. This change aligns the behavior of Match() with the
+behavior of the other logical operators (LLess(), etc.) It also requires an
+errata change to the ACPI specification as this support was intended for
+ACPI 3.0, but was inadvertently omitted.
+
+Fixed a problem with the internal implicit "to buffer" conversion. Strings
+that are converted to buffers will cause buffer truncation if the string is
+smaller than the target buffer. Integers that are converted to buffers will
+not cause buffer truncation, only zero extension (both as per the ACPI
+spec.) The problem was introduced when code was added to truncate the
+buffer, but this should not be performed in all cases, only the string case.
+
+Fixed a problem with the Buffer and Package operators where the interpreter
+would get confused if two such operators were used as operands to an ASL
+operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
+stack was not being popped after the execution of these operators, resulting
+in an AE_NO_RETURN_VALUE exception.
+
+Fixed a problem with constructs of the form Store(Index(...),...). The
+reference object returned from Index was inadvertently resolved to an actual
+value. This problem was introduced in version 20050114 when the behavior of
+Store() was modified to restrict the object types that can be used as the
source operand (to match the ACPI specification.)
-Reduced excessive stack use within the AcpiGetObjectInfo
-procedure.
+Reduced excessive stack use within the AcpiGetObjectInfo procedure.
-Added a fix to aclinux.h to allow generation of AcpiExec on
-Linux.
+Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
-Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS
-struct.
+Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total
@@ -2778,61 +3959,55 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a code generation problem in the constant folding
-optimization code where incorrect code was generated if a
-constant was reduced to a buffer object (i.e., a reduced type 5
-opcode.)
+Fixed a code generation problem in the constant folding optimization code
+where incorrect code was generated if a constant was reduced to a buffer
+object (i.e., a reduced type 5 opcode.)
-Fixed a typechecking problem for the ToBuffer operator. Caused by
-an incorrect return type in the internal opcode information
-table.
+Fixed a typechecking problem for the ToBuffer operator. Caused by an
+incorrect return type in the internal opcode information table.
----------------------------------------
25 January 2005. Summary of changes for version 20050125:
1) ACPI CA Core Subsystem:
-Fixed a recently introduced problem with the Global Lock where
-the underlying semaphore was not created. This problem was
-introduced in version 20050114, and caused an AE_AML_NO_OPERAND
-exception during an Acquire() operation on _GL.
-
-The local object cache is now optional, and is disabled by
-default. Both AcpiExec and the iASL compiler enable the cache
-because they run in user mode and this enhances their
-performance. #define ACPI_ENABLE_OBJECT_CACHE to enable the local
-cache.
-
-Fixed an issue in the internal function AcpiUtEvaluateObject
-concerning the optional "implicit return" support where an error
-was returned if no return object was expected, but one was
-implicitly returned. AE_OK is now returned in this case and the
-implicitly returned object is deleted. AcpiUtEvaluateObject is
-only occasionally used, and only to execute reserved methods such
-as _STA and _INI where the return type is known up front.
-
-Fixed a few issues with the internal convert-to-integer code. It
-now returns an error if an attempt is made to convert a null
-string, a string of only blanks/tabs, or a zero-length buffer.
-This affects both implicit conversion and explicit conversion via
-the ToInteger() operator.
-
-The internal debug code in AcpiUtAcquireMutex has been commented
-out. It is not needed for normal operation and should increase
-the performance of the entire subsystem. The code remains in case
-it is needed for debug purposes again.
-
-The AcpiExec source and makefile are included in the Unix/Linux
-package for the first time.
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Fixed a recently introduced problem with the Global Lock where the
+underlying semaphore was not created. This problem was introduced in
+version 20050114, and caused an AE_AML_NO_OPERAND exception during an
+Acquire() operation on _GL.
+
+The local object cache is now optional, and is disabled by default. Both
+AcpiExec and the iASL compiler enable the cache because they run in user
+mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE
+to enable the local cache.
+
+Fixed an issue in the internal function AcpiUtEvaluateObject concerning the
+optional "implicit return" support where an error was returned if no return
+object was expected, but one was implicitly returned. AE_OK is now returned
+in this case and the implicitly returned object is deleted.
+AcpiUtEvaluateObject is only occasionally used, and only to execute reserved
+methods such as _STA and _INI where the return type is known up front.
+
+Fixed a few issues with the internal convert-to-integer code. It now returns
+an error if an attempt is made to convert a null string, a string of only
+blanks/tabs, or a zero-length buffer. This affects both implicit conversion
+and explicit conversion via the ToInteger() operator.
+
+The internal debug code in AcpiUtAcquireMutex has been commented out. It is
+not needed for normal operation and should increase the performance of the
+entire subsystem. The code remains in case it is needed for debug purposes
+again.
+
+The AcpiExec source and makefile are included in the Unix/Linux package for
+the first time.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total
@@ -2843,88 +4018,81 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Switch/Case support: A warning is now issued if the type of the
-Switch value cannot be determined at compile time. For example,
-Switch(Arg0) will generate the warning, and the type is assumed
-to be an integer. As per the ACPI spec, use a construct such as
-Switch(ToInteger(Arg0)) to eliminate the warning.
+Switch/Case support: A warning is now issued if the type of the Switch value
+cannot be determined at compile time. For example, Switch(Arg0) will
+generate the warning, and the type is assumed to be an integer. As per the
+ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the
+warning.
-Switch/Case support: Implemented support for buffer and string
-objects as the switch value. This is an ACPI 3.0 feature, now
-that LEqual supports buffers and strings.
+Switch/Case support: Implemented support for buffer and string objects as
+the switch value. This is an ACPI 3.0 feature, now that LEqual supports
+buffers and strings.
-Switch/Case support: The emitted code for the LEqual()
-comparisons now uses the switch value as the first operand, not
-the second. The case value is now the second operand, and this
-allows the case value to be implicitly converted to the type of
-the switch value, not the other way around.
+Switch/Case support: The emitted code for the LEqual() comparisons now uses
+the switch value as the first operand, not the second. The case value is now
+the second operand, and this allows the case value to be implicitly
+converted to the type of the switch value, not the other way around.
-Switch/Case support: Temporary variables are now emitted
-immediately within the control method, not at the global level.
-This means that there are now 36 temps available per-method, not
-36 temps per-module as was the case with the earlier
-implementation (_T_0 through _T_9 and _T_A through _T_Z.)
+Switch/Case support: Temporary variables are now emitted immediately within
+the control method, not at the global level. This means that there are now
+36 temps available per-method, not 36 temps per-module as was the case with
+the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
----------------------------------------
14 January 2005. Summary of changes for version 20050114:
-Added 2005 copyright to all module headers. This affects every
-module in the core subsystem, iASL compiler, and the utilities.
+Added 2005 copyright to all module headers. This affects every module in
+the core subsystem, iASL compiler, and the utilities.
1) ACPI CA Core Subsystem:
-Fixed an issue with the String-to-Buffer conversion code where
-the string null terminator was not included in the buffer after
-conversion, but there is existing ASL that assumes the string
-null terminator is included. This is the root of the
-ACPI_AML_BUFFER_LIMIT regression. This problem was introduced in
-the previous version when the code was updated to correctly set
-the converted buffer size as per the ACPI specification. The ACPI
-spec is ambiguous and will be updated to specify that the null
-terminator must be included in the converted buffer. This also
-affects the ToBuffer() ASL operator.
-
-Fixed a problem with the Mid() ASL/AML operator where it did not
-work correctly on Buffer objects. Newly created sub-buffers were
-not being marked as initialized.
-
-
-Fixed a problem in AcpiTbFindTable where incorrect string
-compares were performed on the OemId and OemTableId table header
-fields. These fields are not null terminated, so strncmp is now
-used instead of strcmp.
-
-Implemented a restriction on the Store() ASL/AML operator to
-align the behavior with the ACPI specification. Previously, any
-object could be used as the source operand. Now, the only
-objects that may be used are Integers, Buffers, Strings,
-Packages, Object References, and DDB Handles. If necessary, the
-original behavior can be restored by enabling the
+Fixed an issue with the String-to-Buffer conversion code where the string
+null terminator was not included in the buffer after conversion, but there
+is existing ASL that assumes the string null terminator is included. This is
+the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
+introduced in the previous version when the code was updated to correctly
+set the converted buffer size as per the ACPI specification. The ACPI spec
+is ambiguous and will be updated to specify that the null terminator must be
+included in the converted buffer. This also affects the ToBuffer() ASL
+operator.
+
+Fixed a problem with the Mid() ASL/AML operator where it did not work
+correctly on Buffer objects. Newly created sub-buffers were not being marked
+as initialized.
+
+
+Fixed a problem in AcpiTbFindTable where incorrect string compares were
+performed on the OemId and OemTableId table header fields. These fields are
+not null terminated, so strncmp is now used instead of strcmp.
+
+Implemented a restriction on the Store() ASL/AML operator to align the
+behavior with the ACPI specification. Previously, any object could be used
+as the source operand. Now, the only objects that may be used are Integers,
+Buffers, Strings, Packages, Object References, and DDB Handles. If
+necessary, the original behavior can be restored by enabling the
EnableInterpreterSlack flag.
-Enhanced the optional "implicit return" support to allow an
-implicit return value from methods that are invoked externally
-via the AcpiEvaluateObject interface. This enables implicit
-returns from the _STA and _INI methods, for example.
+Enhanced the optional "implicit return" support to allow an implicit return
+value from methods that are invoked externally via the AcpiEvaluateObject
+interface. This enables implicit returns from the _STA and _INI methods,
+for example.
-Changed the Revision() ASL/AML operator to return the current
-version of the AML interpreter, in the YYYYMMDD format.
-Previously, it incorrectly returned the supported ACPI version
-(This is the function of the _REV method).
+Changed the Revision() ASL/AML operator to return the current version of the
+AML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned
+the supported ACPI version (This is the function of the _REV method).
-Updated the _REV predefined method to return the currently
-supported version of ACPI, now 3.
+Updated the _REV predefined method to return the currently supported version
+of ACPI, now 3.
Implemented batch mode option for the AcpiExec utility (-b).
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total
@@ -2936,32 +4104,29 @@ compiler and the compiler options used during generation.
----------------------------------------
10 December 2004. Summary of changes for version 20041210:
-ACPI 3.0 support is nearing completion in both the iASL compiler
-and the ACPI CA core subsystem.
+ACPI 3.0 support is nearing completion in both the iASL compiler and the
+ACPI CA core subsystem.
1) ACPI CA Core Subsystem:
-Fixed a problem in the ToDecimalString operator where the
-resulting string length was incorrectly calculated. The length is
-now calculated exactly, eliminating incorrect AE_STRING_LIMIT
-exceptions.
+Fixed a problem in the ToDecimalString operator where the resulting string
+length was incorrectly calculated. The length is now calculated exactly,
+eliminating incorrect AE_STRING_LIMIT exceptions.
-Fixed a problem in the ToHexString operator to allow a maximum
-200 character string to be produced.
+Fixed a problem in the ToHexString operator to allow a maximum 200 character
+string to be produced.
-Fixed a problem in the internal string-to-buffer and buffer-to-
-buffer copy routine where the length of the resulting buffer was
-not truncated to the new size (if the target buffer already
-existed).
+Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy
+routine where the length of the resulting buffer was not truncated to the
+new size (if the target buffer already existed).
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total
@@ -2973,67 +4138,62 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Implemented the new ACPI 3.0 resource template macros -
-DWordSpace, ExtendedIO, ExtendedMemory, ExtendedSpace,
-QWordSpace, and WordSpace. Includes support in the disassembler.
+Implemented the new ACPI 3.0 resource template macros - DWordSpace,
+ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
+Includes support in the disassembler.
-Implemented support for the new (ACPI 3.0) parameter to the
-Register macro, AccessSize.
+Implemented support for the new (ACPI 3.0) parameter to the Register macro,
+AccessSize.
-Fixed a problem where the _HE resource name for the Interrupt
-macro was referencing bit 0 instead of bit 1.
+Fixed a problem where the _HE resource name for the Interrupt macro was
+referencing bit 0 instead of bit 1.
-Implemented check for maximum 255 interrupts in the Interrupt
-macro.
+Implemented check for maximum 255 interrupts in the Interrupt macro.
-Fixed a problem with the predefined resource descriptor names
-where incorrect AML code was generated if the offset within the
-resource buffer was 0 or 1. The optimizer shortened the AML code
-to a single byte opcode but did not update the surrounding
-package lengths.
+Fixed a problem with the predefined resource descriptor names where
+incorrect AML code was generated if the offset within the resource buffer
+was 0 or 1. The optimizer shortened the AML code to a single byte opcode
+but did not update the surrounding package lengths.
-Changes to the Dma macro: All channels within the channel list
-must be in the range 0-7. Maximum 8 channels can be specified.
-BusMaster operand is optional (default is BusMaster).
+Changes to the Dma macro: All channels within the channel list must be in
+the range 0-7. Maximum 8 channels can be specified. BusMaster operand is
+optional (default is BusMaster).
-Implemented check for maximum 7 data bytes for the VendorShort
-macro.
+Implemented check for maximum 7 data bytes for the VendorShort macro.
-The ReadWrite parameter is now optional for the Memory32 and
-similar macros.
+The ReadWrite parameter is now optional for the Memory32 and similar macros.
----------------------------------------
03 December 2004. Summary of changes for version 20041203:
1) ACPI CA Core Subsystem:
-The low-level field insertion/extraction code (exfldio) has been
-completely rewritten to eliminate unnecessary complexity, bugs,
-and boundary conditions.
+The low-level field insertion/extraction code (exfldio) has been completely
+rewritten to eliminate unnecessary complexity, bugs, and boundary
+conditions.
-Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
-ToDecimalString operators where the input operand could be
-inadvertently deleted if no conversion was necessary (e.g., if
-the input to ToInteger was an Integer object.)
+Fixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString
+operators where the input operand could be inadvertently deleted if no
+conversion was necessary (e.g., if the input to ToInteger was an Integer
+object.)
-Fixed a problem with the ToDecimalString and ToHexString where an
-incorrect exception code was returned if the resulting string
-would be > 200 chars. AE_STRING_LIMIT is now returned.
+Fixed a problem with the ToDecimalString and ToHexString where an incorrect
+exception code was returned if the resulting string would be > 200 chars.
+AE_STRING_LIMIT is now returned.
-Fixed a problem with the Concatenate operator where AE_OK was
-always returned, even if the operation failed.
+Fixed a problem with the Concatenate operator where AE_OK was always
+returned, even if the operation failed.
-Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow >
-128 semaphores to be allocated.
+Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
+semaphores to be allocated.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total
@@ -3045,47 +4205,43 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed typechecking for the ObjectType and SizeOf operators.
-Problem was recently introduced in 20041119.
+Fixed typechecking for the ObjectType and SizeOf operators. Problem was
+recently introduced in 20041119.
-Fixed a problem with the ToUUID macro where the upper nybble of
-each buffer byte was inadvertently set to zero.
+Fixed a problem with the ToUUID macro where the upper nybble of each buffer
+byte was inadvertently set to zero.
----------------------------------------
19 November 2004. Summary of changes for version 20041119:
1) ACPI CA Core Subsystem:
-Fixed a problem in the internal ConvertToInteger routine where
-new integers were not truncated to 32 bits for 32-bit ACPI
-tables. This routine converts buffers and strings to integers.
-
-Implemented support to store a value to an Index() on a String
-object. This is an ACPI 2.0 feature that had not yet been
-implemented.
-
-Implemented new behavior for storing objects to individual
-package elements (via the Index() operator). The previous
-behavior was to invoke the implicit conversion rules if an object
-was already present at the index. The new behavior is to simply
-delete any existing object and directly store the new object.
-Although the ACPI specification seems unclear on this subject,
-other ACPI implementations behave in this manner. (This is the
-root of the AE_BAD_HEX_CONSTANT issue.)
-
-Modified the RSDP memory scan mechanism to support the extended
-checksum for ACPI 2.0 (and above) RSDPs. Note that the search
-continues until a valid RSDP signature is found with a valid
-checksum.
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Fixed a problem in the internal ConvertToInteger routine where new integers
+were not truncated to 32 bits for 32-bit ACPI tables. This routine converts
+buffers and strings to integers.
+
+Implemented support to store a value to an Index() on a String object. This
+is an ACPI 2.0 feature that had not yet been implemented.
+
+Implemented new behavior for storing objects to individual package elements
+(via the Index() operator). The previous behavior was to invoke the implicit
+conversion rules if an object was already present at the index. The new
+behavior is to simply delete any existing object and directly store the new
+object. Although the ACPI specification seems unclear on this subject, other
+ACPI implementations behave in this manner. (This is the root of the
+AE_BAD_HEX_CONSTANT issue.)
+
+Modified the RSDP memory scan mechanism to support the extended checksum for
+ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
+RSDP signature is found with a valid checksum.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total
@@ -3104,34 +4260,31 @@ Fixed a missing semicolon in the aslcompiler.y file.
1) ACPI CA Core Subsystem:
-Implemented support for FADT revision 2. This was an interim
-table (between ACPI 1.0 and ACPI 2.0) that adds support for the
-FADT reset register.
+Implemented support for FADT revision 2. This was an interim table (between
+ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
-Implemented optional support to allow uninitialized LocalX and
-ArgX variables in a control method. The variables are
-initialized to an Integer object with a value of zero. This
-support is enabled by setting the AcpiGbl_EnableInterpreterSlack
-flag to TRUE.
+Implemented optional support to allow uninitialized LocalX and ArgX
+variables in a control method. The variables are initialized to an Integer
+object with a value of zero. This support is enabled by setting the
+AcpiGbl_EnableInterpreterSlack flag to TRUE.
-Implemented support for Integer objects for the SizeOf operator.
-Either 4 or 8 is returned, depending on the current integer size
-(32-bit or 64-bit, depending on the parent table revision).
+Implemented support for Integer objects for the SizeOf operator. Either 4
+or 8 is returned, depending on the current integer size (32-bit or 64-bit,
+depending on the parent table revision).
-Fixed a problem in the implementation of the SizeOf and
-ObjectType operators where the operand was resolved to a value
-too early, causing incorrect return values for some objects.
+Fixed a problem in the implementation of the SizeOf and ObjectType operators
+where the operand was resolved to a value too early, causing incorrect
+return values for some objects.
Fixed some possible memory leaks during exceptional conditions.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total
@@ -3145,23 +4298,21 @@ compiler and the compiler options used during generation.
Implemented support for all ACPI 3.0 reserved names and methods.
-Implemented all ACPI 3.0 grammar elements in the front-end,
-including support for semicolons.
+Implemented all ACPI 3.0 grammar elements in the front-end, including
+support for semicolons.
Implemented the ACPI 3.0 Function() and ToUUID() macros
-Fixed a problem in the disassembler where a Scope() operator
-would not be emitted properly if the target of the scope was in
-another table.
+Fixed a problem in the disassembler where a Scope() operator would not be
+emitted properly if the target of the scope was in another table.
----------------------------------------
15 October 2004. Summary of changes for version 20041015:
-Note: ACPI CA is currently undergoing an in-depth and complete
-formal evaluation to test/verify the following areas. Other
-suggestions are welcome. This will result in an increase in the
-frequency of releases and the number of bug fixes in the next few
-months.
+Note: ACPI CA is currently undergoing an in-depth and complete formal
+evaluation to test/verify the following areas. Other suggestions are
+welcome. This will result in an increase in the frequency of releases and
+the number of bug fixes in the next few months.
- Functional tests for all ASL/AML operators
- All implicit/explicit type conversions
- Bit fields and operation regions
@@ -3174,40 +4325,36 @@ months.
1) ACPI CA Core Subsystem:
-Fixed two alignment issues on 64-bit platforms - within debug
-statements in AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed
-references to the Address field within the non-aligned ACPI
-generic address structure.
+Fixed two alignment issues on 64-bit platforms - within debug statements in
+AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address
+field within the non-aligned ACPI generic address structure.
-Fixed a problem in the Increment and Decrement operators where
-incorrect operand resolution could result in the inadvertent
-modification of the original integer when the integer is passed
-into another method as an argument and the arg is then
-incremented/decremented.
+Fixed a problem in the Increment and Decrement operators where incorrect
+operand resolution could result in the inadvertent modification of the
+original integer when the integer is passed into another method as an
+argument and the arg is then incremented/decremented.
-Fixed a problem in the FromBCD operator where the upper 32-bits
-of a 64-bit BCD number were truncated during conversion.
+Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit
+BCD number were truncated during conversion.
-Fixed a problem in the ToDecimal operator where the length of the
-resulting string could be set incorrectly too long if the input
-operand was a Buffer object.
+Fixed a problem in the ToDecimal operator where the length of the resulting
+string could be set incorrectly too long if the input operand was a Buffer
+object.
-Fixed a problem in the Logical operators (LLess, etc.) where a
-NULL byte (0) within a buffer would prematurely terminate a
-compare between buffer objects.
+Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0)
+within a buffer would prematurely terminate a compare between buffer
+objects.
-Added a check for string overflow (>200 characters as per the
-ACPI specification) during the Concatenate operator with two
-string operands.
+Added a check for string overflow (>200 characters as per the ACPI
+specification) during the Concatenate operator with two string operands.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total
@@ -3220,17 +4367,15 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Allow the use of the ObjectType operator on uninitialized Locals
-and Args (returns 0 as per the ACPI specification).
+Allow the use of the ObjectType operator on uninitialized Locals and Args
+(returns 0 as per the ACPI specification).
-Fixed a problem where the compiler would fault if there was a
-syntax error in the FieldName of all of the various
-CreateXXXField operators.
+Fixed a problem where the compiler would fault if there was a syntax error
+in the FieldName of all of the various CreateXXXField operators.
-Disallow the use of lower case letters within the EISAID macro,
-as per the ACPI specification. All EISAID strings must be of the
-form "UUUNNNN" Where U is an uppercase letter and N is a hex
-digit.
+Disallow the use of lower case letters within the EISAID macro, as per the
+ACPI specification. All EISAID strings must be of the form "UUUNNNN" Where
+U is an uppercase letter and N is a hex digit.
----------------------------------------
@@ -3238,51 +4383,46 @@ digit.
1) ACPI CA Core Subsystem:
-Implemented support for the ACPI 3.0 Timer operator. This ASL
-function implements a 64-bit timer with 100 nanosecond
-granularity.
-
-Defined a new OSL interface, AcpiOsGetTimer. This interface is
-used to implement the ACPI 3.0 Timer operator. This allows the
-host OS to implement the timer with the best clock available.
-Also, it keeps the core subsystem out of the clock handling
-business, since the host OS (usually) performs this function.
-
-Fixed an alignment issue on 64-bit platforms. The
-HwLowLevelRead(Write) functions use a 64-bit address which is
-part of the packed ACPI Generic Address Structure. Since the
-structure is non-aligned, the alignment macros are now used to
-extract the address to a local variable before use.
-
-Fixed a problem where the ToInteger operator assumed all input
-strings were hexadecimal. The operator now handles both decimal
-strings and hex strings (prefixed with "0x").
-
-Fixed a problem where the string length in the string object
-created as a result of the internal ConvertToString procedure
-could be incorrect. This potentially affected all implicit
-conversions and also the ToDecimalString and ToHexString
-operators.
-
-Fixed two problems in the ToString operator. If the length
-parameter was zero, an incorrect string object was created and
-the value of the input length parameter was inadvertently changed
-from zero to Ones.
-
-Fixed a problem where the optional ResourceSource string in the
-ExtendedIRQ resource macro was ignored.
-
-Simplified the interfaces to the internal division functions,
-reducing code size and complexity.
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Implemented support for the ACPI 3.0 Timer operator. This ASL function
+implements a 64-bit timer with 100 nanosecond granularity.
+
+Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
+implement the ACPI 3.0 Timer operator. This allows the host OS to implement
+the timer with the best clock available. Also, it keeps the core subsystem
+out of the clock handling business, since the host OS (usually) performs
+this function.
+
+Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
+functions use a 64-bit address which is part of the packed ACPI Generic
+Address Structure. Since the structure is non-aligned, the alignment macros
+are now used to extract the address to a local variable before use.
+
+Fixed a problem where the ToInteger operator assumed all input strings were
+hexadecimal. The operator now handles both decimal strings and hex strings
+(prefixed with "0x").
+
+Fixed a problem where the string length in the string object created as a
+result of the internal ConvertToString procedure could be incorrect. This
+potentially affected all implicit conversions and also the ToDecimalString
+and ToHexString operators.
+
+Fixed two problems in the ToString operator. If the length parameter was
+zero, an incorrect string object was created and the value of the input
+length parameter was inadvertently changed from zero to Ones.
+
+Fixed a problem where the optional ResourceSource string in the ExtendedIRQ
+resource macro was ignored.
+
+Simplified the interfaces to the internal division functions, reducing code
+size and complexity.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total
@@ -3296,52 +4436,50 @@ compiler and the compiler options used during generation.
Implemented support for the ACPI 3.0 Timer operator.
-Fixed a problem where the Default() operator was inadvertently
-ignored in a Switch/Case block. This was a problem in the
-translation of the Switch statement to If...Else pairs.
+Fixed a problem where the Default() operator was inadvertently ignored in a
+Switch/Case block. This was a problem in the translation of the Switch
+statement to If...Else pairs.
-Added support to allow a standalone Return operator, with no
-parentheses (or operands).
+Added support to allow a standalone Return operator, with no parentheses (or
+operands).
-Fixed a problem with code generation for the ElseIf operator
-where the translated Else...If parse tree was improperly
-constructed leading to the loss of some code.
+Fixed a problem with code generation for the ElseIf operator where the
+translated Else...If parse tree was improperly constructed leading to the
+loss of some code.
----------------------------------------
22 September 2004. Summary of changes for version 20040922:
1) ACPI CA Core Subsystem:
-Fixed a problem with the implementation of the LNot() operator
-where "Ones" was not returned for the TRUE case. Changed the code
-to return Ones instead of (!Arg) which was usually 1. This change
-affects iASL constant folding for this operator also.
+Fixed a problem with the implementation of the LNot() operator where "Ones"
+was not returned for the TRUE case. Changed the code to return Ones instead
+of (!Arg) which was usually 1. This change affects iASL constant folding for
+this operator also.
-Fixed a problem in AcpiUtInitializeBuffer where an existing
-buffer was not initialized properly -- Now zero the entire buffer
-in this case where the buffer already exists.
+Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not
+initialized properly -- Now zero the entire buffer in this case where the
+buffer already exists.
-Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
-Milliseconds) to simply (ACPI_INTEGER Milliseconds). This
-simplifies all related code considerably. This will require
-changes/updates to all OS interface layers (OSLs.)
+Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
+Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
+related code considerably. This will require changes/updates to all OS
+interface layers (OSLs.)
-Implemented a new external interface,
-AcpiInstallExceptionHandler, to allow a system exception handler
-to be installed. This handler is invoked upon any run-time
-exception that occurs during control method execution.
+Implemented a new external interface, AcpiInstallExceptionHandler, to allow
+a system exception handler to be installed. This handler is invoked upon any
+run-time exception that occurs during control method execution.
-Added support for the DSDT in AcpiTbFindTable. This allows the
+Added support for the DSDT in AcpiTbFindTable. This allows the
DataTableRegion() operator to access the local copy of the DSDT.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total
@@ -3353,19 +4491,18 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem with constant folding and the LNot operator. LNot
-was returning 1 in the TRUE case, not Ones as per the ACPI
-specification. This could result in the generation of an
-incorrect folded/reduced constant.
+Fixed a problem with constant folding and the LNot operator. LNot was
+returning 1 in the TRUE case, not Ones as per the ACPI specification. This
+could result in the generation of an incorrect folded/reduced constant.
-End-Of-File is now allowed within a "//"-style comment. A parse
-error no longer occurs if such a comment is at the very end of
-the input ASL source file.
+End-Of-File is now allowed within a "//"-style comment. A parse error no
+longer occurs if such a comment is at the very end of the input ASL source
+file.
-Implemented the "-r" option to override the Revision in the table
-header. The initial use of this option will be to simplify the
-evaluation of the AML interpreter by allowing a single ASL source
-module to be compiled for either 32-bit or 64-bit integers.
+Implemented the "-r" option to override the Revision in the table header.
+The initial use of this option will be to simplify the evaluation of the AML
+interpreter by allowing a single ASL source module to be compiled for either
+32-bit or 64-bit integers.
----------------------------------------
@@ -3373,47 +4510,43 @@ module to be compiled for either 32-bit or 64-bit integers.
1) ACPI CA Core Subsystem:
-- Implemented support for implicit object conversion in the non-
-numeric logical operators (LEqual, LGreater, LGreaterEqual,
-LLess, LLessEqual, and LNotEqual.) Any combination of
-Integers/Strings/Buffers may now be used; the second operand is
-implicitly converted on the fly to match the type of the first
-operand. For example:
+- Implemented support for implicit object conversion in the non-numeric
+logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and
+LNotEqual.) Any combination of Integers/Strings/Buffers may now be used;
+the second operand is implicitly converted on the fly to match the type of
+the first operand. For example:
LEqual (Source1, Source2)
-Source1 and Source2 must each evaluate to an integer, a string,
-or a buffer. The data type of Source1 dictates the required type
-of Source2. Source2 is implicitly converted if necessary to match
-the type of Source1.
+Source1 and Source2 must each evaluate to an integer, a string, or a buffer.
+The data type of Source1 dictates the required type of Source2. Source2 is
+implicitly converted if necessary to match the type of Source1.
-- Updated and corrected the behavior of the string conversion
-support. The rules concerning conversion of buffers to strings
-(according to the ACPI specification) are as follows:
+- Updated and corrected the behavior of the string conversion support. The
+rules concerning conversion of buffers to strings (according to the ACPI
+specification) are as follows:
-ToDecimalString - explicit byte-wise conversion of buffer to
-string of decimal values (0-255) separated by commas. ToHexString
-- explicit byte-wise conversion of buffer to string of hex values
-(0-FF) separated by commas. ToString - explicit byte-wise
-conversion of buffer to string. Byte-by-byte copy with no
-transform except NULL terminated. Any other implicit buffer-to-
-string conversion - byte-wise conversion of buffer to string of
-hex values (0-FF) separated by spaces.
+ToDecimalString - explicit byte-wise conversion of buffer to string of
+decimal values (0-255) separated by commas. ToHexString - explicit byte-wise
+conversion of buffer to string of hex values (0-FF) separated by commas.
+ToString - explicit byte-wise conversion of buffer to string. Byte-by-byte
+copy with no transform except NULL terminated. Any other implicit buffer-to-
+string conversion - byte-wise conversion of buffer to string of hex values
+(0-FF) separated by spaces.
- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
-- Fixed a problem in AcpiNsGetPathnameLength where the returned
-length was one byte too short in the case of a node in the root
-scope. This could cause a fault during debug output.
+- Fixed a problem in AcpiNsGetPathnameLength where the returned length was
+one byte too short in the case of a node in the root scope. This could
+cause a fault during debug output.
-- Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+- Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total
@@ -3433,30 +4566,27 @@ compiler and the compiler options used during generation.
1) ACPI CA Core Subsystem:
-Designed and implemented support within the AML interpreter for
-the so-called "implicit return". This support returns the result
-of the last ASL operation within a control method, in the absence
-of an explicit Return() operator. A few machines depend on this
-behavior, even though it is not explicitly supported by the ASL
-language. It is optional support that can be enabled at runtime
-via the AcpiGbl_EnableInterpreterSlack flag.
-
-Removed support for the PCI_Config address space from the
-internal low level hardware interfaces (AcpiHwLowLevelRead and
-AcpiHwLowLevelWrite). This support was not used internally, and
-would not work correctly anyway because the PCI bus number and
-segment number were not supported. There are separate interfaces
-for PCI configuration space access because of the unique
+Designed and implemented support within the AML interpreter for the so-
+called "implicit return". This support returns the result of the last ASL
+operation within a control method, in the absence of an explicit Return()
+operator. A few machines depend on this behavior, even though it is not
+explicitly supported by the ASL language. It is optional support that can
+be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
+
+Removed support for the PCI_Config address space from the internal low level
+hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This
+support was not used internally, and would not work correctly anyway because
+the PCI bus number and segment number were not supported. There are
+separate interfaces for PCI configuration space access because of the unique
interface.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total
@@ -3468,10 +4598,9 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a problem where constants in ASL expressions at the root
-level (not within a control method) could be inadvertently
-truncated during code generation. This problem was introduced in
-the 20040715 release.
+Fixed a problem where constants in ASL expressions at the root level (not
+within a control method) could be inadvertently truncated during code
+generation. This problem was introduced in the 20040715 release.
----------------------------------------
@@ -3479,48 +4608,43 @@ the 20040715 release.
1) ACPI CA Core Subsystem:
-Restructured the internal HW GPE interfaces to pass/track the
-current state of interrupts (enabled/disabled) in order to avoid
-possible deadlock and increase flexibility of the interfaces.
-
-Implemented a "lexicographical compare" for String and Buffer
-objects within the logical operators -- LGreater, LLess,
-LGreaterEqual, and LLessEqual -- as per further clarification to
-the ACPI specification. Behavior is similar to C library
-"strcmp".
-
-Completed a major reduction in CPU stack use for the
-AcpiGetFirmwareTable external function. In the 32-bit non-debug
-case, the stack use has been reduced from 168 bytes to 32 bytes.
-
-Deployed a new run-time configuration flag,
-AcpiGbl_EnableInterpreterSlack, whose purpose is to allow the AML
-interpreter to forgive certain bad AML constructs. Default
-setting is FALSE.
-
-Implemented the first use of AcpiGbl_EnableInterpreterSlack in
-the Field IO support code. If enabled, it allows field access to
-go beyond the end of a region definition if the field is within
-the region length rounded up to the next access width boundary (a
-common coding error.)
-
-Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and
-OSD_EXECUTION_CALLBACK to ACPI_OSD_EXEC_CALLBACK for consistency
-with other ACPI symbols. Also, these symbols are lowercased by
-the latest version of the AcpiSrc tool.
-
-The prototypes for the PCI interfaces in acpiosxf.h have been
-updated to rename "Register" to simply "Reg" to prevent certain
-compilers from complaining.
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Restructured the internal HW GPE interfaces to pass/track the current state
+of interrupts (enabled/disabled) in order to avoid possible deadlock and
+increase flexibility of the interfaces.
+
+Implemented a "lexicographical compare" for String and Buffer objects within
+the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual --
+as per further clarification to the ACPI specification. Behavior is similar
+to C library "strcmp".
+
+Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
+external function. In the 32-bit non-debug case, the stack use has been
+reduced from 168 bytes to 32 bytes.
+
+Deployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack,
+whose purpose is to allow the AML interpreter to forgive certain bad AML
+constructs. Default setting is FALSE.
+
+Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO
+support code. If enabled, it allows field access to go beyond the end of a
+region definition if the field is within the region length rounded up to the
+next access width boundary (a common coding error.)
+
+Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
+ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these
+symbols are lowercased by the latest version of the AcpiSrc tool.
+
+The prototypes for the PCI interfaces in acpiosxf.h have been updated to
+rename "Register" to simply "Reg" to prevent certain compilers from
+complaining.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total
@@ -3532,20 +4656,20 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Implemented full support for Package objects within the Case()
-operator. Note: The Break() operator is currently not supported
-within Case blocks (TermLists) as there is some question about
-backward compatibility with ACPI 1.0 interpreters.
+Implemented full support for Package objects within the Case() operator.
+Note: The Break() operator is currently not supported within Case blocks
+(TermLists) as there is some question about backward compatibility with ACPI
+1.0 interpreters.
-Fixed a problem where complex terms were not supported properly
-within the Switch() operator.
+Fixed a problem where complex terms were not supported properly within the
+Switch() operator.
-Eliminated extraneous warning for compiler-emitted reserved names
-of the form "_T_x". (Used in Switch/Case operators.)
+Eliminated extraneous warning for compiler-emitted reserved names of the
+form "_T_x". (Used in Switch/Case operators.)
-Eliminated optimization messages for "_T_x" objects and small
-constants within the DefinitionBlock operator.
+Eliminated optimization messages for "_T_x" objects and small constants
+within the DefinitionBlock operator.
----------------------------------------
@@ -3553,24 +4677,23 @@ constants within the DefinitionBlock operator.
1) ACPI CA Core Subsystem:
-Implemented support for Buffer and String objects (as per ACPI
-2.0) for the following ASL operators: LEqual, LGreater, LLess,
-LGreaterEqual, and LLessEqual.
+Implemented support for Buffer and String objects (as per ACPI 2.0) for the
+following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and
+LLessEqual.
-All directory names in the entire source package are lower case,
-as they were in earlier releases.
+All directory names in the entire source package are lower case, as they
+were in earlier releases.
-Implemented "Disassemble" command in the AML debugger that will
-disassemble a single control method.
+Implemented "Disassemble" command in the AML debugger that will disassemble
+a single control method.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total
@@ -3583,60 +4706,56 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Implemented support for Buffer and String objects (as per ACPI
-2.0) for the following ASL operators: LEqual, LGreater, LLess,
-LGreaterEqual, and LLessEqual.
+Implemented support for Buffer and String objects (as per ACPI 2.0) for the
+following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and
+LLessEqual.
-All directory names in the entire source package are lower case,
-as they were in earlier releases.
+All directory names in the entire source package are lower case, as they
+were in earlier releases.
-Fixed a fault when using the -g or -d<nofilename> options if the
-FADT was not found.
+Fixed a fault when using the -g or -d<nofilename> options if the FADT was
+not found.
-Fixed an issue with the Windows version of the compiler where
-later versions of Windows place the FADT in the registry under
-the name "FADT" and not "FACP" as earlier versions did. This
-applies when using the -g or -d<nofilename> options. The
-compiler now looks for both strings as necessary.
+Fixed an issue with the Windows version of the compiler where later versions
+of Windows place the FADT in the registry under the name "FADT" and not
+"FACP" as earlier versions did. This applies when using the -g or -
+d<nofilename> options. The compiler now looks for both strings as
+necessary.
-Fixed a problem with compiler namepath optimization where a
-namepath within the Scope() operator could not be optimized if
-the namepath was a subpath of the current scope path.
+Fixed a problem with compiler namepath optimization where a namepath within
+the Scope() operator could not be optimized if the namepath was a subpath of
+the current scope path.
----------------------------------------
27 May 2004. Summary of changes for version 20040527:
1) ACPI CA Core Subsystem:
-Completed a new design and implementation for EBDA (Extended BIOS
-Data Area) support in the RSDP scan code. The original code
-improperly scanned for the EBDA by simply scanning from memory
-location 0 to 0x400. The correct method is to first obtain the
-EBDA pointer from within the BIOS data area, then scan 1K of
-memory starting at the EBDA pointer. There appear to be few if
+Completed a new design and implementation for EBDA (Extended BIOS Data Area)
+support in the RSDP scan code. The original code improperly scanned for the
+EBDA by simply scanning from memory location 0 to 0x400. The correct method
+is to first obtain the EBDA pointer from within the BIOS data area, then
+scan 1K of memory starting at the EBDA pointer. There appear to be few if
any machines that place the RSDP in the EBDA, however.
-Integrated a fix for a possible fault during evaluation of
-BufferField arguments. Obsolete code that was causing the
-problem was removed.
+Integrated a fix for a possible fault during evaluation of BufferField
+arguments. Obsolete code that was causing the problem was removed.
-Found and fixed a problem in the Field Support Code where data
-could be corrupted on a bit field read that starts on an aligned
-boundary but does not end on an aligned boundary. Merged the
-read/write "datum length" calculation code into a common
-procedure.
+Found and fixed a problem in the Field Support Code where data could be
+corrupted on a bit field read that starts on an aligned boundary but does
+not end on an aligned boundary. Merged the read/write "datum length"
+calculation code into a common procedure.
Rolled in a couple of changes to the FreeBSD-specific header.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total
@@ -3648,52 +4767,45 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed a generation warning produced by some overly-verbose
-compilers for a 64-bit constant.
+Fixed a generation warning produced by some overly-verbose compilers for a
+64-bit constant.
----------------------------------------
14 May 2004. Summary of changes for version 20040514:
1) ACPI CA Core Subsystem:
-Fixed a problem where hardware GPE enable bits sometimes not set
-properly during and after GPE method execution. Result of 04/27
-changes.
+Fixed a problem where hardware GPE enable bits sometimes not set properly
+during and after GPE method execution. Result of 04/27 changes.
Removed extra "clear all GPEs" when sleeping/waking.
-Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the
-single AcpiHwWriteGpeEnableReg. Changed a couple of calls to the
-functions above to the new AcpiEv* calls as appropriate.
+Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
+AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to
+the new AcpiEv* calls as appropriate.
-ACPI_OS_NAME was removed from the OS-specific headers. The
-default name is now "Microsoft Windows NT" for maximum
-compatibility. However this can be changed by modifying the
-acconfig.h file.
+ACPI_OS_NAME was removed from the OS-specific headers. The default name is
+now "Microsoft Windows NT" for maximum compatibility. However this can be
+changed by modifying the acconfig.h file.
-Allow a single invocation of AcpiInstallNotifyHandler for a
-handler that traps both types of notifies (System, Device). Use
-ACPI_ALL_NOTIFY flag.
+Allow a single invocation of AcpiInstallNotifyHandler for a handler that
+traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag.
-Run _INI methods on ThermalZone objects. This is against the
-ACPI specification, but there is apparently ASL code in the field
-that has these _INI methods, and apparently "other" AML
-interpreters execute them.
+Run _INI methods on ThermalZone objects. This is against the ACPI
+specification, but there is apparently ASL code in the field that has these
+_INI methods, and apparently "other" AML interpreters execute them.
-Performed a full 16/32/64 bit lint that resulted in some small
-changes.
+Performed a full 16/32/64 bit lint that resulted in some small changes.
-Added a sleep simulation command to the AML debugger to test
-sleep code.
+Added a sleep simulation command to the AML debugger to test sleep code.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total
@@ -3707,85 +4819,78 @@ compiler and the compiler options used during generation.
1) ACPI CA Core Subsystem:
-Completed a major overhaul of the GPE handling within ACPI CA.
-There are now three types of GPEs: wake-only, runtime-only, and
-combination wake/run. The only GPEs allowed to be combination
-wake/run are for button-style devices such as a control-method
-power button, control-method sleep button, or a notebook lid
-switch. GPEs that have an _Lxx or _Exx method and are not
-referenced by any _PRW methods are marked for "runtime" and
-hardware enabled. Any GPE that is referenced by a _PRW method is
-marked for "wake" (and disabled at runtime). However, at sleep
-time, only those GPEs that have been specifically enabled for
-wake via the AcpiEnableGpe interface will actually be hardware
-enabled.
-
-A new external interface has been added, AcpiSetGpeType(), that
-is meant to be used by device drivers to force a GPE to a
-particular type. It will be especially useful for the drivers
-for the button devices mentioned above.
-
-Completed restructuring of the ACPI CA initialization sequence so
-that default operation region handlers are installed before GPEs
-are initialized and the _PRW methods are executed. This will
-prevent errors when the _PRW methods attempt to access system
-memory or I/O space.
-
-GPE enable/disable no longer reads the GPE enable register. We
-now keep the enable info for runtime and wake separate and in the
-GPE_EVENT_INFO. We thus no longer depend on the hardware to
-maintain these bits.
-
-Always clear the wake status and fixed/GPE status bits before
-sleep, even for state S5.
-
-Improved the AML debugger output for displaying the GPE blocks
-and their current status.
-
-Added new strings for the _OSI method, of the form "Windows 2001
-SPx" where x = 0,1,2,3,4.
-
-Fixed a problem where the physical address was incorrectly
-calculated when the Load() operator was used to directly load
-from an Operation Region (vs. loading from a Field object.) Also
-added check for minimum table length for this case.
-
-Fix for multiple mutex acquisition. Restore original thread
-SyncLevel on mutex release.
-
-Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
+Completed a major overhaul of the GPE handling within ACPI CA. There are
+now three types of GPEs: wake-only, runtime-only, and combination wake/run.
+The only GPEs allowed to be combination wake/run are for button-style
+devices such as a control-method power button, control-method sleep button,
+or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not
+referenced by any _PRW methods are marked for "runtime" and hardware
+enabled. Any GPE that is referenced by a _PRW method is marked for "wake"
+(and disabled at runtime). However, at sleep time, only those GPEs that
+have been specifically enabled for wake via the AcpiEnableGpe interface will
+actually be hardware enabled.
+
+A new external interface has been added, AcpiSetGpeType(), that is meant to
+be used by device drivers to force a GPE to a particular type. It will be
+especially useful for the drivers for the button devices mentioned above.
+
+Completed restructuring of the ACPI CA initialization sequence so that
+default operation region handlers are installed before GPEs are initialized
+and the _PRW methods are executed. This will prevent errors when the _PRW
+methods attempt to access system memory or I/O space.
+
+GPE enable/disable no longer reads the GPE enable register. We now keep the
+enable info for runtime and wake separate and in the GPE_EVENT_INFO. We
+thus no longer depend on the hardware to maintain these bits.
+
+Always clear the wake status and fixed/GPE status bits before sleep, even
+for state S5.
+
+Improved the AML debugger output for displaying the GPE blocks and their
+current status.
+
+Added new strings for the _OSI method, of the form "Windows 2001 SPx" where
+x = 0,1,2,3,4.
+
+Fixed a problem where the physical address was incorrectly calculated when
+the Load() operator was used to directly load from an Operation Region (vs.
+loading from a Field object.) Also added check for minimum table length for
+this case.
+
+Fix for multiple mutex acquisition. Restore original thread SyncLevel on
+mutex release.
+
+Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
consistency with the other fields returned.
-Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one
-such structure for each GPE in the system, so the size of this
-structure is important.
+Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such
+structure for each GPE in the system, so the size of this structure is
+important.
-CPU stack requirement reduction: Cleaned up the method execution
-and object evaluation paths so that now a parameter structure is
-passed, instead of copying the various method parameters over and
-over again.
+CPU stack requirement reduction: Cleaned up the method execution and object
+evaluation paths so that now a parameter structure is passed, instead of
+copying the various method parameters over and over again.
-In evregion.c: Correctly exit and reenter the interpreter region
-if and only if dispatching an operation region request to a user-
-installed handler. Do not exit/reenter when dispatching to a
-default handler (e.g., default system memory or I/O handlers)
+In evregion.c: Correctly exit and reenter the interpreter region if and
+only if dispatching an operation region request to a user-installed handler.
+Do not exit/reenter when dispatching to a default handler (e.g., default
+system memory or I/O handlers)
-Notes for updating drivers for the new GPE support. The
-following changes must be made to ACPI-related device drivers
-that are attached to one or more GPEs: (This information will be
-added to the ACPI CA Programmer Reference.)
+Notes for updating drivers for the new GPE support. The following changes
+must be made to ACPI-related device drivers that are attached to one or more
+GPEs: (This information will be added to the ACPI CA Programmer Reference.)
-1) AcpiInstallGpeHandler no longer automatically enables the GPE,
-you must explicitly call AcpiEnableGpe.
-2) There is a new interface called AcpiSetGpeType. This should be
-called before enabling the GPE. Also, this interface will
-automatically disable the GPE if it is currently enabled.
+1) AcpiInstallGpeHandler no longer automatically enables the GPE, you must
+explicitly call AcpiEnableGpe.
+2) There is a new interface called AcpiSetGpeType. This should be called
+before enabling the GPE. Also, this interface will automatically disable
+the GPE if it is currently enabled.
3) AcpiEnableGpe no longer supports a GPE type flag.
Specific drivers that must be changed:
1) EC driver:
- AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
+ AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
AeGpeHandler, NULL);
AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
@@ -3797,21 +4902,19 @@ If _PRW exists: /* This is a control-method button */
AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
-For all other devices that have _PRWs, we automatically set the
-GPE type to ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically
-(wake) enabled. This must be done on a selective basis, usually
-requiring some kind of user app to allow the user to pick the
-wake devices.
+For all other devices that have _PRWs, we automatically set the GPE type to
+ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This
+must be done on a selective basis, usually requiring some kind of user app
+to allow the user to pick the wake devices.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total
@@ -3828,30 +4931,28 @@ compiler and the compiler options used during generation.
1) ACPI CA Core Subsystem:
-Fixed an interpreter problem where an indirect store through an
-ArgX parameter was incorrectly applying the "implicit conversion
-rules" during the store. From the ACPI specification: "If the
-target is a method local or argument (LocalX or ArgX), no
-conversion is performed and the result is stored directly to the
-target". The new behavior is to disable implicit conversion
-during ALL stores to an ArgX.
-
-Changed the behavior of the _PRW method scan to ignore any and
-all errors returned by a given _PRW. This prevents the scan from
-aborting from the failure of any single _PRW.
-
-Moved the runtime configuration parameters from the global init
-procedure to static variables in acglobal.h. This will allow the
-host to override the default values easily.
-
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Fixed an interpreter problem where an indirect store through an ArgX
+parameter was incorrectly applying the "implicit conversion rules" during
+the store. From the ACPI specification: "If the target is a method local or
+argument (LocalX or ArgX), no conversion is performed and the result is
+stored directly to the target". The new behavior is to disable implicit
+conversion during ALL stores to an ArgX.
+
+Changed the behavior of the _PRW method scan to ignore any and all errors
+returned by a given _PRW. This prevents the scan from aborting from the
+failure of any single _PRW.
+
+Moved the runtime configuration parameters from the global init procedure to
+static variables in acglobal.h. This will allow the host to override the
+default values easily.
+
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total
@@ -3863,65 +4964,60 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-iASL now fully disassembles SSDTs. However, External()
-statements are not generated automatically for unresolved symbols
-at this time. This is a planned feature for future
-implementation.
+iASL now fully disassembles SSDTs. However, External() statements are not
+generated automatically for unresolved symbols at this time. This is a
+planned feature for future implementation.
-Fixed a scoping problem in the disassembler that occurs when the
-type of the target of a Scope() operator is overridden. This
-problem caused an incorrectly nested internal namespace to be
-constructed.
+Fixed a scoping problem in the disassembler that occurs when the type of the
+target of a Scope() operator is overridden. This problem caused an
+incorrectly nested internal namespace to be constructed.
-Any warnings or errors that are emitted during disassembly are
-now commented out automatically so that the resulting file can be
-recompiled without any hand editing.
+Any warnings or errors that are emitted during disassembly are now commented
+out automatically so that the resulting file can be recompiled without any
+hand editing.
----------------------------------------
26 March 2004. Summary of changes for version 20040326:
1) ACPI CA Core Subsystem:
-Implemented support for "wake" GPEs via interaction between GPEs
-and the _PRW methods. Every GPE that is pointed to by one or
-more _PRWs is identified as a WAKE GPE and by default will no
-longer be enabled at runtime. Previously, we were blindly
-enabling all GPEs with a corresponding _Lxx or _Exx method - but
-most of these turn out to be WAKE GPEs anyway. We believe this
-has been the cause of thousands of "spurious" GPEs on some
+Implemented support for "wake" GPEs via interaction between GPEs and the
+_PRW methods. Every GPE that is pointed to by one or more _PRWs is
+identified as a WAKE GPE and by default will no longer be enabled at
+runtime. Previously, we were blindly enabling all GPEs with a corresponding
+_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We
+believe this has been the cause of thousands of "spurious" GPEs on some
systems.
-This new GPE behavior is can be reverted to the original behavior
-(enable ALL GPEs at runtime) via a runtime flag.
+This new GPE behavior is can be reverted to the original behavior (enable
+ALL GPEs at runtime) via a runtime flag.
-Fixed a problem where aliased control methods could not access
-objects properly. The proper scope within the namespace was not
-initialized (transferred to the target of the aliased method)
-before executing the target method.
+Fixed a problem where aliased control methods could not access objects
+properly. The proper scope within the namespace was not initialized
+(transferred to the target of the aliased method) before executing the
+target method.
-Fixed a potential race condition on internal object deletion on
-the return object in AcpiEvaluateObject.
+Fixed a potential race condition on internal object deletion on the return
+object in AcpiEvaluateObject.
-Integrated a fix for resource descriptors where both _MEM and
-_MTP were being extracted instead of just _MEM. (i.e. bitmask
-was incorrectly too wide, 0x0F instead of 0x03.)
+Integrated a fix for resource descriptors where both _MEM and _MTP were
+being extracted instead of just _MEM. (i.e. bitmask was incorrectly too
+wide, 0x0F instead of 0x03.)
-Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
-preventing a fault in some cases.
+Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a
+fault in some cases.
Updated Notify() values for debug statements in evmisc.c
-Return proper status from AcpiUtMutexInitialize, not just simply
-AE_OK.
+Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
@@ -3936,50 +5032,45 @@ compiler and the compiler options used during generation.
1) ACPI CA Core Subsystem:
-Fixed a problem where errors occurring during the parse phase of
-control method execution did not abort cleanly. For example,
-objects created and installed in the namespace were not deleted.
-This caused all subsequent invocations of the method to return
-the AE_ALREADY_EXISTS exception.
+Fixed a problem where errors occurring during the parse phase of control
+method execution did not abort cleanly. For example, objects created and
+installed in the namespace were not deleted. This caused all subsequent
+invocations of the method to return the AE_ALREADY_EXISTS exception.
-Implemented a mechanism to force a control method to "Serialized"
-execution if the method attempts to create namespace objects.
-(The root of the AE_ALREADY_EXISTS problem.)
+Implemented a mechanism to force a control method to "Serialized" execution
+if the method attempts to create namespace objects. (The root of the
+AE_ALREADY_EXISTS problem.)
-Implemented support for the predefined _OSI "internal" control
-method. Initial supported strings are "Linux", "Windows 2000",
-"Windows 2001", and "Windows 2001.1", and can be easily upgraded
-for new strings as necessary. This feature will allow "other"
-operating systems to execute the fully tested, "Windows" code
-path through the ASL code
+Implemented support for the predefined _OSI "internal" control method.
+Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and
+"Windows 2001.1", and can be easily upgraded for new strings as necessary.
+This feature will allow "other" operating systems to execute the fully
+tested, "Windows" code path through the ASL code
-Global Lock Support: Now allows multiple acquires and releases
-with any internal thread. Removed concept of "owning thread" for
-this special mutex.
+Global Lock Support: Now allows multiple acquires and releases with any
+internal thread. Removed concept of "owning thread" for this special mutex.
-Fixed two functions that were inappropriately declaring large
-objects on the CPU stack: PsParseLoop, NsEvaluateRelative.
-Reduces the stack usage during method execution considerably.
+Fixed two functions that were inappropriately declaring large objects on the
+CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during
+method execution considerably.
-Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where
-the S4Bios_f field was incorrectly defined as UINT32 instead of
-UINT32_BIT.
+Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
+S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
-Fixed a problem where AcpiEvGpeDetect would fault if there were
-no GPEs defined on the machine.
+Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
+defined on the machine.
-Implemented two runtime options: One to force all control method
-execution to "Serialized" to mimic Windows behavior, another to
-disable _OSI support if it causes problems on a given machine.
+Implemented two runtime options: One to force all control method execution
+to "Serialized" to mimic Windows behavior, another to disable _OSI support
+if it causes problems on a given machine.
-Code and Data Size: Current and previous core subsystem library
-sizes are shown below. These are the code and data sizes for the
-acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
-these values do not include any ACPI driver or OSPM code. The
-debug version of the code includes the debug output trace
-mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler and the compiler options used during generation.
+Code and Data Size: Current and previous core subsystem library sizes are
+shown below. These are the code and data sizes for the acpica.lib produced
+by the Microsoft Visual C++ 6.0 compiler, and these values do not include
+any ACPI driver or OSPM code. The debug version of the code includes the
+debug output trace mechanism and has a much larger code and data size. Note
+that these values will vary depending on the efficiency of the compiler and
+the compiler options used during generation.
Previous Release:
Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total
@@ -3990,8 +5081,8 @@ compiler and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Fixed an array size problem for FreeBSD that would cause the
-compiler to fault.
+Fixed an array size problem for FreeBSD that would cause the compiler to
+fault.
----------------------------------------
20 February 2004. Summary of changes for version 20040220:
@@ -3999,23 +5090,22 @@ compiler to fault.
1) ACPI CA Core Subsystem:
-Implemented execution of _SxD methods for Device objects in the
+Implemented execution of _SxD methods for Device objects in the
GetObjectInfo interface.
Fixed calls to _SST method to pass the correct arguments.
Added a call to _SST on wake to restore to "working" state.
-Check for End-Of-Buffer failure case in the WalkResources
-interface.
+Check for End-Of-Buffer failure case in the WalkResources interface.
-Integrated fix for 64-bit alignment issue in acglobal.h by moving
-two structures to the beginning of the file.
+Integrated fix for 64-bit alignment issue in acglobal.h by moving two
+structures to the beginning of the file.
After wake, clear GPE status register(s) before enabling GPEs.
-After wake, clear/enable power button. (Perhaps we should
-clear/enable all fixed events upon wake.)
+After wake, clear/enable power button. (Perhaps we should clear/enable all
+fixed events upon wake.)
Fixed a couple of possible memory leaks in the Namespace manager.
@@ -4027,26 +5117,25 @@ Integrated latest acnetbsd.h file.
1) ACPI CA Core Subsystem:
-Completed investigation and implementation of the call-by-
-reference mechanism for control method arguments.
+Completed investigation and implementation of the call-by-reference
+mechanism for control method arguments.
-Fixed a problem where a store of an object into an indexed
-package could fail if the store occurs within a different method
-than the method that created the package.
+Fixed a problem where a store of an object into an indexed package could
+fail if the store occurs within a different method than the method that
+created the package.
-Fixed a problem where the ToDecimal operator could return
-incorrect results.
+Fixed a problem where the ToDecimal operator could return incorrect results.
-Fixed a problem where the CopyObject operator could fail on some
-of the more obscure objects (e.g., Reference objects.)
+Fixed a problem where the CopyObject operator could fail on some of the more
+obscure objects (e.g., Reference objects.)
-Improved the output of the Debug object to display buffer,
-package, and index objects.
+Improved the output of the Debug object to display buffer, package, and
+index objects.
-Fixed a problem where constructs of the form "RefOf (ArgX)" did
-not return the expected result.
+Fixed a problem where constructs of the form "RefOf (ArgX)" did not return
+the expected result.
-Added permanent ACPI_REPORT_ERROR macros for all instances of the
+Added permanent ACPI_REPORT_ERROR macros for all instances of the
ACPI_AML_INTERNAL exception.
Integrated latest version of acfreebsd.h
@@ -4054,14 +5143,14 @@ Integrated latest version of acfreebsd.h
----------------------------------------
16 January 2004. Summary of changes for version 20040116:
-The purpose of this release is primarily to update the copyright
-years in each module, thus causing a huge number of diffs. There
-are a few small functional changes, however.
+The purpose of this release is primarily to update the copyright years in
+each module, thus causing a huge number of diffs. There are a few small
+functional changes, however.
1) ACPI CA Core Subsystem:
-Improved error messages when there is a problem finding one or
-more of the required base ACPI tables
+Improved error messages when there is a problem finding one or more of the
+required base ACPI tables
Reintroduced the definition of APIC_HEADER in actbl.h
@@ -4071,8 +5160,8 @@ Removed extraneous reference to NewObj in dsmthdat.c
2) iASL compiler
-Fixed a problem introduced in December that disabled the correct
-disassembly of Resource Templates
+Fixed a problem introduced in December that disabled the correct disassembly
+of Resource Templates
----------------------------------------
@@ -4096,8 +5185,7 @@ transitions.
Implemented support to clear the SLP_TYP and SLP_EN bits when
waking up, this is apparently required by some machines.
-When sleeping, clear the wake status only if SleepState is not
-S5.
+When sleeping, clear the wake status only if SleepState is not S5.
Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
pointer arithmetic advanced a string pointer too far.
@@ -4105,8 +5193,7 @@ pointer arithmetic advanced a string pointer too far.
Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
could be returned if the requested table has not been loaded.
-Within the support for IRQ resources, restructured the handling
-of
+Within the support for IRQ resources, restructured the handling of
the active and edge/level bits.
Fixed a few problems in AcpiPsxExecute() where memory could be
@@ -4121,8 +5208,7 @@ acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
these values do not include any ACPI driver or OSPM code. The
debug version of the code includes the debug output trace
mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler
+these values will vary depending on the efficiency of the compiler
and the compiler options used during generation.
Previous Release (20031029):
@@ -4153,14 +5239,12 @@ extends to the very end of the parent region (resulted in an
AE_AML_REGION_LIMIT exception.)
Fixed a problem with ACPI Fixed Events where an RT Clock handler
-would not get invoked on an RTC event. The RTC event bitmasks
-for
+would not get invoked on an RTC event. The RTC event bitmasks for
the PM1 registers were not being initialized properly.
Implemented support for executing _STA and _INI methods for
Processor objects. Although this is currently not part of the
-ACPI specification, there is existing ASL code that depends on
-the
+ACPI specification, there is existing ASL code that depends on the
init-time execution of these methods.
Implemented and deployed a GetDescriptorName function to decode
@@ -4168,10 +5252,8 @@ the various types of internal descriptors. Guards against null
descriptors during debug output also.
Implemented and deployed a GetNodeName function to extract the 4-
-character namespace node name. This function simplifies the
-debug
-and error output, as well as guarding against null pointers
-during
+character namespace node name. This function simplifies the debug
+and error output, as well as guarding against null pointers during
output.
Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
@@ -4192,8 +5274,7 @@ Cleaned up a handful of warnings during 64-bit generation.
Fixed a reported error where and incorrect GPE number was passed
to the GPE dispatch handler. This value is only used for error
-output, however. Used this opportunity to clean up and
-streamline
+output, however. Used this opportunity to clean up and streamline
the GPE dispatch code.
Code and Data Size: Current and previous core subsystem library
@@ -4203,8 +5284,7 @@ these values do not include any ACPI driver or OSPM code. The
debug version of the code includes the debug output trace
mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler
+these values will vary depending on the efficiency of the compiler
and the compiler options used during generation.
Previous Release (20031002):
@@ -4217,8 +5297,7 @@ and the compiler options used during generation.
2) iASL Compiler/Disassembler:
-Updated the iASL compiler to return an error if the operand to
-the
+Updated the iASL compiler to return an error if the operand to the
Stall() operator is larger than 255.
@@ -4235,8 +5314,7 @@ register.)
Fixed a problem with all Field objects where a write could go
beyond the end-of-field if the field was larger than the access
-granularity and therefore required multiple writes to complete
-the
+granularity and therefore required multiple writes to complete the
request. An extra write beyond the end of the field could happen
inadvertently.
@@ -4264,8 +5342,7 @@ acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
these values do not include any ACPI driver or OSPM code. The
debug version of the code includes the debug output trace
mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler
+these values will vary depending on the efficiency of the compiler
and the compiler options used during generation.
Previous Release (20030918):
@@ -4283,8 +5360,7 @@ source ASL file. This catches attempts to compile binary (AML)
files early in the compile, with an informative error message.
Fixed a problem where the disassembler would fault if the output
-filename could not be generated or if the output file could not
-be
+filename could not be generated or if the output file could not be
opened.
----------------------------------------
@@ -4304,8 +5380,7 @@ does not attempt to lookup/create the name a second time in an
incorrect scope. This fixes the "region size computed
incorrectly" problem.
-Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing
-a
+Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
Global Lock AE_BAD_PARAMETER error.
Fixed several 64-bit issues with prototypes, casting and data
@@ -4321,8 +5396,7 @@ acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
these values do not include any ACPI driver or OSPM code. The
debug version of the code includes the debug output trace
mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler
+these values will vary depending on the efficiency of the compiler
and the compiler options used during generation.
Previous Release:
@@ -4368,8 +5442,7 @@ Make it so acpismp=force works (reported by Andrew Morton)
1) ACPI CA Core Subsystem:
-Fix To/FromBCD, eliminating the need for an arch-specific
-#define.
+Fix To/FromBCD, eliminating the need for an arch-specific #define.
Do not acquire a semaphore in the S5 shutdown path.
@@ -4390,8 +5463,7 @@ Mention acpismp=force in config help
Re-add acpitable.c and acpismp=force. This improves backwards
-compatibility and also cleans up the code to a significant
-degree.
+compatibility and also cleans up the code to a significant degree.
Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
@@ -4403,25 +5475,21 @@ Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
Found and fixed a reported problem where an AE_NOT_FOUND error
occurred occasionally during _BST evaluation. This turned out to
be an Owner ID allocation issue where a called method did not get
-a new ID assigned to it. Eventually, (after 64k calls), the
-Owner
-ID UINT16 would wraparound so that the ID would be the same as
-the
+a new ID assigned to it. Eventually, (after 64k calls), the Owner
+ID UINT16 would wraparound so that the ID would be the same as the
caller's and the called method would delete the caller's
namespace.
Implemented extended error reporting for control methods that are
aborted due to a run-time exception. Output includes the exact
-AML instruction that caused the method abort, a dump of the
-method
+AML instruction that caused the method abort, a dump of the method
locals and arguments at the time of the abort, and a trace of all
nested control method calls.
Modified the interpreter to allow the creation of buffers of zero
length from the AML code. Implemented new code to ensure that no
attempt is made to actually allocate a memory buffer (of length
-zero) - instead, a simple buffer object with a NULL buffer
-pointer
+zero) - instead, a simple buffer object with a NULL buffer pointer
and length zero is created. A warning is no longer issued when
the AML attempts to create a zero-length buffer.
@@ -4431,10 +5499,8 @@ asterisk is automatically removed if present in any HID, UID, or
CID strings. The iASL compiler will still flag this asterisk as
an error, however.
-Implemented full support for _CID methods that return a package
-of
-multiple CIDs (Compatible IDs). The AcpiGetObjectInfo()
-interface
+Implemented full support for _CID methods that return a package of
+multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface
now additionally returns a device _CID list if present. This
required a change to the external interface in order to pass an
ACPI_BUFFER object as a parameter since the _CID list is of
@@ -4449,8 +5515,7 @@ acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
these values do not include any ACPI driver or OSPM code. The
debug version of the code includes the debug output trace
mechanism and has a much larger code and data size. Note that
-these values will vary depending on the efficiency of the
-compiler
+these values will vary depending on the efficiency of the compiler
and the compiler options used during generation.
Previous Release (20030509):
@@ -4464,8 +5529,7 @@ and the compiler options used during generation.
2) Linux:
Fixed a bug in which we would reinitialize the ACPI interrupt
-after it was already working, thus disabling all ACPI and the
-IRQs
+after it was already working, thus disabling all ACPI and the IRQs
for any other device sharing the interrupt. (Thanks to Stian
Jordet)
@@ -4485,8 +5549,7 @@ in both the ASL parser and the code generator.
4) Documentation:
-Added changes to existing interfaces, new exception codes, and
-new
+Added changes to existing interfaces, new exception codes, and new
text concerning reference count object management versus garbage
collection.
@@ -4497,17 +5560,13 @@ collection.
1) ACPI CA Core Subsystem:
Changed the subsystem initialization sequence to hold off
-installation of address space handlers until the hardware has
-been
-initialized and the system has entered ACPI mode. This is
-because
+installation of address space handlers until the hardware has been
+initialized and the system has entered ACPI mode. This is because
the installation of space handlers can cause _REG methods to be
-run. Previously, the _REG methods could potentially be run
-before
+run. Previously, the _REG methods could potentially be run before
ACPI mode was enabled.
-Fixed some memory leak issues related to address space handler
-and
+Fixed some memory leak issues related to address space handler and
notify handler installation. There were some problems with the
reference count mechanism caused by the fact that the handler
objects are shared across several namespace objects.
@@ -4521,8 +5580,7 @@ issue during subsystem termination. Restructured the table data
structures to simplify the linked lists and the related code.
Fixed a problem where the table ID associated with secondary
-tables (SSDTs) was not being propagated into the namespace
-objects
+tables (SSDTs) was not being propagated into the namespace objects
created by those tables. This would only present a problem for
tables that are unloaded at run-time, however.
@@ -4540,14 +5598,12 @@ was incorrectly handling the case where a namespace node was the
first in the parent's child list, and had additional peers (not
the only child, but first in the list of children.)
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -4570,8 +5626,7 @@ Kobject fix (Greg KH)
Fixed a problem in the generation of the C source code files (AML
is emitted in C source statements for BIOS inclusion) where the
-Ascii dump that appears within a C comment at the end of each
-line
+Ascii dump that appears within a C comment at the end of each line
could cause a compile time error if the AML sequence happens to
have an open comment or close comment sequence embedded.
@@ -4583,15 +5638,13 @@ have an open comment or close comment sequence embedded.
1) ACPI CA Core Subsystem:
Support for big-endian systems has been implemented. Most of the
-support has been invisibly added behind big-endian versions of
-the
+support has been invisibly added behind big-endian versions of the
ACPI_MOVE_* macros.
Fixed a problem in AcpiHwDisableGpeBlock() and
AcpiHwClearGpeBlock() where an incorrect offset was passed to the
low level hardware write routine. The offset parameter was
-actually eliminated from the low level read/write routines
-because
+actually eliminated from the low level read/write routines because
they had become obsolete.
Fixed a problem where a handler object was deleted twice during
@@ -4605,8 +5658,7 @@ A fix for SMP systems with link devices was contributed by
Compaq's Dan Zink.
(2.5) Return whether we handled the interrupt in our IRQ handler.
-(Linux ISRs no longer return void, so we can propagate the
-handler
+(Linux ISRs no longer return void, so we can propagate the handler
return value from the ACPI CA core back to the OS.)
@@ -4631,14 +5683,12 @@ Fixed a problem where the error message "Failed to acquire
semaphore" would appear during operations on the embedded
controller (EC).
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -4665,11 +5715,9 @@ added, evgpeblk.c
The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
fields that are used to determine the GPE block lengths. The
REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
-structures are ignored. This is per the ACPI specification but
-it
+structures are ignored. This is per the ACPI specification but it
isn't very clear. The full 256 Block 0/1 GPEs are now supported
-(the use of REGISTER_BIT_WIDTH limited the number of GPEs to
-128).
+(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
In the SCI interrupt handler, removed the read of the PM1_CONTROL
register to look at the SCI_EN bit. On some machines, this read
@@ -4677,8 +5725,7 @@ causes an SMI event and greatly slows down SCI events. (This may
in fact be the cause of slow battery status response on some
systems.)
-Fixed a problem where a store of a NULL string to a package
-object
+Fixed a problem where a store of a NULL string to a package object
could cause the premature deletion of the object. This was seen
during execution of the battery _BIF method on some systems,
resulting in no battery data being returned.
@@ -4686,14 +5733,12 @@ resulting in no battery data being returned.
Added AcpiWalkResources interface to simplify parsing of resource
lists.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -4716,8 +5761,7 @@ Add S4BIOS support (Pavel Machek)
Map in entire table before performing checksum (John Stultz)
-Expand the mem= cmdline to allow the specification of reserved
-and
+Expand the mem= cmdline to allow the specification of reserved and
ACPI DATA blocks (Pavel Machek)
Never use ACPI on VISWS
@@ -4748,8 +5792,7 @@ Added support for the _PDC reserved name.
Added a check for constructs of the form: Store (Local0, Local0)
where Local0 is not initialized. Apparently, some BIOS
-programmers believe that this is a NOOP. Since this store
-doesn't
+programmers believe that this is a NOOP. Since this store doesn't
do anything anyway, the new prototype behavior will ignore this
error. This is a case where we can relax the strict checking in
the interpreter in the name of compatibility.
@@ -4759,8 +5802,7 @@ the interpreter in the name of compatibility.
The AcpiSrc Source Conversion Utility has been released with the
Linux package for the first time. This is the utility that is
-used to convert the ACPI CA base source code to the Linux
-version.
+used to convert the ACPI CA base source code to the Linux version.
(Both) Handle P_BLK lengths shorter than 6 more gracefully
@@ -4775,12 +5817,10 @@ header.
(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
the
-former now also includes the latter, acpiphp.h only needs the
-one,
+former now also includes the latter, acpiphp.h only needs the one,
now.
-(2.5) Make it possible to select method of bios restoring after
-S3
+(2.5) Make it possible to select method of bios restoring after S3
resume. [=> no more ugly ifdefs] (Pavel Machek)
(2.5) Make proc write interfaces work (Pavel Machek)
@@ -4810,17 +5850,13 @@ available.
1) ACPI CA Core Subsystem:
Changed the behavior of the internal Buffer-to-String conversion
-function. The current ACPI specification states that the
-contents
+function. The current ACPI specification states that the contents
of the buffer are "converted to a string of two-character
hexadecimal numbers, each separated by a space". Unfortunately,
-this definition is not backwards compatible with existing ACPI
-1.0
-implementations (although the behavior was not defined in the
-ACPI
+this definition is not backwards compatible with existing ACPI 1.0
+implementations (although the behavior was not defined in the ACPI
1.0 specification). The new behavior simply copies data from the
-buffer to the string until a null character is found or the end
-of
+buffer to the string until a null character is found or the end of
the buffer is reached. The new String object is always null
terminated. This problem was seen during the generation of _BIF
battery data where incorrect strings were returned for battery
@@ -4833,14 +5869,12 @@ ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
Copyright in all module headers (both Linux and non-Linux) has be
updated to 2003.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -4902,8 +5936,7 @@ readability and maintainability.
Fixed a problem where the creation of a zero-length AML Buffer
would cause a fault.
-Fixed a problem where a Buffer object that pointed to a static
-AML
+Fixed a problem where a Buffer object that pointed to a static AML
buffer (in an ACPI table) could inadvertently be deleted, causing
memory corruption.
@@ -4918,14 +5951,12 @@ of the input Buffer object.
Removed the NATIVE_CHAR data type across the entire source due to
lack of need and lack of consistent use.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -4949,8 +5980,7 @@ being stored was equal to or smaller than the original (existing)
target object. This was seen to cause corruption of battery _BIF
buffers if the _BIF method modified the buffer on the fly.
-Fixed a problem where an internal error was generated if a
-control
+Fixed a problem where an internal error was generated if a control
method invocation was used in an OperationRegion, Buffer, or
Package declaration. This was caused by the deferred parsing of
the control method and thus the deferred creation of the internal
@@ -4962,14 +5992,12 @@ parse the method invocation. This problem presented itself as an
AE_AML_INTERNAL during the pass 1 parse phase during table load.
Fixed a problem where the internal String object copy routine did
-not always allocate sufficient memory for the target String
-object
+not always allocate sufficient memory for the target String object
and caused memory corruption. This problem was seen to cause
"Allocation already present in list!" errors as memory allocation
became corrupted.
-Implemented a new function for the evaluation of namespace
-objects
+Implemented a new function for the evaluation of namespace objects
that allows the specification of the allowable return object
types. This simplifies a lot of code that checks for a return
object of one or more specific objects returned from the
@@ -4984,19 +6012,16 @@ linking for iASL compiler and AcpiExec. Several files were split
creating new files. New files: nsparse.c dsinit.c evgpe.c
Implemented an abort mechanism to terminate an executing control
-method via the AML debugger. This feature is useful for
-debugging
+method via the AML debugger. This feature is useful for debugging
control methods that depend (wait) for specific hardware
responses.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5016,8 +6041,7 @@ Source Index" and "Resource Source" fields were not inserted into
the correct location within the AML resource descriptor, creating
an invalid descriptor.
-Fixed a disassembler problem for "Interrupt" resource
-descriptors.
+Fixed a disassembler problem for "Interrupt" resource descriptors.
The optional "Resource Source Index" and "Resource Source" fields
were ignored.
@@ -5040,8 +6064,7 @@ was not completed properly if the Local/Arg contained a reference
namespace-node code is now used so that this case is handled
automatically.
-Fixed a problem where the internal object copy routine would
-cause
+Fixed a problem where the internal object copy routine would cause
a protection fault if the object being copied was a Package and
contained either 1) a NULL package element or 2) a nested sub-
package.
@@ -5049,23 +6072,19 @@ package.
Fixed a problem with the GPE initialization that resulted from an
ambiguity in the ACPI specification. One section of the
specification states that both the address and length of the GPE
-block must be zero if the block is not supported. Another
-section
+block must be zero if the block is not supported. Another section
implies that only the address need be zero if the block is not
-supported. The code has been changed so that both the address
-and
+supported. The code has been changed so that both the address and
the length must be non-zero to indicate a valid GPE block (i.e.,
if either the address or the length is zero, the GPE block is
invalid.)
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5118,33 +6137,28 @@ twice during execution of the CondRefOf() operator if the target
did not exist.
Implemented the first of perhaps several internal create object
-functions that create and initialize a specific object type.
-This
+functions that create and initialize a specific object type. This
consolidates duplicated code wherever the object is created, thus
shrinking the size of the subsystem.
Implemented improved debug/error messages for errors that occur
during nested method invocations. All executing method pathnames
-are displayed (with the error) as the call stack is unwound -
-thus
+are displayed (with the error) as the call stack is unwound - thus
simplifying debug.
Fixed a problem introduced in the 10/02 release that caused
premature deletion of a buffer object if a buffer was used as an
ASL operand where an integer operand is required (Thus causing an
-implicit object conversion from Buffer to Integer.) The change
-in
+implicit object conversion from Buffer to Integer.) The change in
the 10/02 release was attempting to fix a memory leak (albeit
incorrectly.)
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5164,8 +6178,7 @@ execution of ACPI control methods not be interrupted by signals.
Methods must run to completion, or the system may be left in an
unknown/unstable state.
-Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not
-set.
+Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
(Shawn Starr)
@@ -5202,18 +6215,15 @@ defined as 32 bits, but must be 16 bits according to the ACPI
specification. This had the side effect of causing ASL
Mutex/Event timeouts even though the ASL code requested a wait
forever. Changed all internal references to the ACPI timeout
-parameter to 16 bits to prevent future problems. Changed the
-name
+parameter to 16 bits to prevent future problems. Changed the name
of WAIT_FOREVER to ACPI_WAIT_FOREVER.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5243,8 +6253,7 @@ keywords (SMBQuick, SMBWord, etc.)
1) ACPI CA Core Subsystem:
-Fixed a problem where platforms that have a GPE1 block but no
-GPE0
+Fixed a problem where platforms that have a GPE1 block but no GPE0
block were not handled correctly. This resulted in a "GPE
overlap" error message. GPE0 is no longer required.
@@ -5260,22 +6269,19 @@ found during control method execution. The full ACPI namepath
(name reference) of the object that was not found is displayed in
this case.
-Note: as a result of the overhaul of the namespace object types
-in
+Note: as a result of the overhaul of the namespace object types in
the previous release, the namespace nodes for the predefined
scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
instead of ACPI_TYPE_ANY. This simplifies the namespace
management code but may affect code that walks the namespace tree
looking for specific object types.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a much larger code and data size. Note that these values
-will
+has a much larger code and data size. Note that these values will
vary depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5290,18 +6296,15 @@ options used during generation.
2) Linux
Fixed a problem introduced in the previous release where the
-Processor and Thermal objects were not recognized and installed
-in
-/proc. This was related to the scope type change described
-above.
+Processor and Thermal objects were not recognized and installed in
+/proc. This was related to the scope type change described above.
3) iASL Compiler/Disassembler
Implemented the -g option to get all of the required ACPI tables
from the registry and save them to files (Windows version of the
-compiler only.) The required tables are the FADT, FACS, and
-DSDT.
+compiler only.) The required tables are the FADT, FACS, and DSDT.
Added ACPI table checksum validation during table disassembly in
order to catch corrupted tables.
@@ -5317,8 +6320,7 @@ must already exist in the namespace at the time the operator is
encountered (during table load or method execution). In other
words, forward references are not allowed and Scope() cannot
create a new object. This changes the previous behavior where the
-interpreter would create the name if not found. This new
-behavior
+interpreter would create the name if not found. This new behavior
correctly enables the search-to-root algorithm during namespace
lookup of the target name. Because of this upsearch, this fixes
the known Compaq _SB_.OKEC problem and makes both the AML
@@ -5341,8 +6343,7 @@ problems.
Cleaned up the namespace dump code, removed obsolete code.
All string output (for all namespace/object dumps) now uses the
-common ACPI string output procedure which handles escapes
-properly
+common ACPI string output procedure which handles escapes properly
and does not emit non-printable characters.
Fixed some issues with constants in the 64-bit version of the
@@ -5357,28 +6358,22 @@ interrupt level.
3) iASL Compiler/Disassembler
-Implemented ACPI 2.0B grammar change that disallows all Type 1
-and
+Implemented ACPI 2.0B grammar change that disallows all Type 1 and
2 opcodes outside of a control method. This means that the
"executable" operators (versus the "namespace" operators) cannot
-be used at the table level; they can only be used within a
-control
+be used at the table level; they can only be used within a control
method.
Implemented the restriction on the Scope() operator where the
target must already exist in the namespace at the time the
operator is encountered (during ASL compilation). In other words,
-forward references are not allowed and Scope() cannot create a
-new
+forward references are not allowed and Scope() cannot create a new
object. This makes the iASL compiler compatible with other ACPI
-implementations and makes the Scope() implementation adhere to
-the
+implementations and makes the Scope() implementation adhere to the
ACPI specification.
-Fixed a problem where namepath optimization for the Alias
-operator
-was optimizing the wrong path (of the two namepaths.) This
-caused
+Fixed a problem where namepath optimization for the Alias operator
+was optimizing the wrong path (of the two namepaths.) This caused
a "Missing alias link" error message.
Fixed a problem where an "unknown reserved name" warning could be
@@ -5398,52 +6393,40 @@ the NamePath was examined instead of the last NameSeg.
1) ACPI CA Core Subsystem version 20021002:
Fixed a problem where a store/copy of a string to an existing
-string did not always set the string length properly in the
-String
+string did not always set the string length properly in the String
object.
Fixed a reported problem with the ToString operator where the
-behavior was identical to the ToHexString operator instead of
-just
+behavior was identical to the ToHexString operator instead of just
simply converting a raw buffer to a string data type.
Fixed a problem where CopyObject and the other "explicit"
-conversion operators were not updating the internal namespace
-node
+conversion operators were not updating the internal namespace node
type as part of the store operation.
Fixed a memory leak during implicit source operand conversion
-where the original object was not deleted if it was converted to
-a
+where the original object was not deleted if it was converted to a
new object of a different type.
-Enhanced error messages for all problems associated with
-namespace
-lookups. Common procedure generates and prints the lookup name
-as
+Enhanced error messages for all problems associated with namespace
+lookups. Common procedure generates and prints the lookup name as
well as the formatted status.
Completed implementation of a new design for the Alias support
-within the namespace. The existing design did not handle the
-case
-where a new object was assigned to one of the two names due to
-the
-use of an explicit conversion operator, resulting in the two
-names
+within the namespace. The existing design did not handle the case
+where a new object was assigned to one of the two names due to the
+use of an explicit conversion operator, resulting in the two names
pointing to two different objects. The new design simply points
the Alias name to the original name node - not to the object.
-This results in a level of indirection that must be handled in
-the
+This results in a level of indirection that must be handled in the
name resolution mechanism.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5486,8 +6469,7 @@ Clarified some warning/error messages.
1) ACPI CA Core Subsystem version 20020918:
Fixed a reported problem with reference chaining (via the Index()
-and RefOf() operators) in the ObjectType() and SizeOf()
-operators.
+and RefOf() operators) in the ObjectType() and SizeOf() operators.
The definition of these operators includes the dereferencing of
all chained references to return information on the base object.
@@ -5502,8 +6484,7 @@ target name to refer to an object of type Integer, String, or
Buffer, in addition to the scoping object types (Device,
predefined Scopes, Processor, PowerResource, and ThermalZone.)
This allows existing AML code that has workarounds for a bug in
-Windows to function properly. A warning is issued, however.
-This
+Windows to function properly. A warning is issued, however. This
affects both the AML interpreter and the iASL compiler. Below is
an example of this type of ASL code:
@@ -5550,8 +6531,7 @@ being dereferenced during typechecking.
If the target of a Scope() operator already exists, it must be an
object type that actually opens a scope -- such as a Device,
-Method, Scope, etc. This is a fatal runtime error. Similar
-error
+Method, Scope, etc. This is a fatal runtime error. Similar error
check has been added to the iASL compiler also.
Tightened up the namespace load to disallow multiple names in the
@@ -5570,8 +6550,7 @@ local_irq_disable is extraneous. (Matthew Wilcox)
Make "acpi=off" actually do what it says, and not use the ACPI
interpreter *or* the tables.
-Added arch-neutral support for parsing SLIT and SRAT tables
-(Kochi
+Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
Takayoshi)
@@ -5595,8 +6574,7 @@ block below a Return() statement.
Fixed a problem where the listing file was not generated if the
compiler aborted if the maximum error count was exceeded (200).
-Fixed a problem where the typechecking of method return values
-was
+Fixed a problem where the typechecking of method return values was
broken. This includes the check for a return value when the
method is invoked as a TermArg (a return value is expected.)
@@ -5610,20 +6588,17 @@ string or comment caused a fault.
1) ACPI CA Core Subsystem Version 20020815:
Fixed a reported problem where a Store to a method argument that
-contains a reference did not perform the indirect store
-correctly.
+contains a reference did not perform the indirect store correctly.
This problem was created during the conversion to the new
reference object model - the indirect store to a method argument
code was not updated to reflect the new model.
Reworked the ACPI mode change code to better conform to ACPI 2.0,
-handle corner cases, and improve code legibility (Kochi
-Takayoshi)
+handle corner cases, and improve code legibility (Kochi Takayoshi)
Fixed a problem with the pathname parsing for the carat (^)
prefix. The heavy use of the carat operator by the new namepath
-optimization in the iASL compiler uncovered a problem with the
-AML
+optimization in the iASL compiler uncovered a problem with the AML
interpreter handling of this prefix. In the case where one or
more carats precede a single nameseg, the nameseg was treated as
standalone and the search rule (to root) was inadvertently
@@ -5632,22 +6607,18 @@ interpreter to find the wrong object or to miss the error that
should occur if the object does not exist at that exact pathname.
Found and fixed the problem where the HP Pavilion DSDT would not
-load. This was a relatively minor tweak to the table loading
-code
+load. This was a relatively minor tweak to the table loading code
(a problem caused by the unexpected encounter with a method
-invocation not within a control method), but it does not solve
-the
+invocation not within a control method), but it does not solve the
overall issue of the execution of AML code at the table level.
This investigation is still ongoing.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5687,8 +6658,7 @@ current options list by invoking the compiler with no parameters.
Completed the design and implementation of the ASL namepath
optimization option for the compiler. This option optimizes all
references to named objects to the shortest possible path. The
-first attempt tries to utilize a single nameseg (4 characters)
-and
+first attempt tries to utilize a single nameseg (4 characters) and
the "search-to-root" algorithm used by the interpreter. If that
cannot be used (because either the name is not in the search path
or there is a conflict with another object with the same name),
@@ -5705,16 +6675,14 @@ independent.
Implemented a new option to disassemble and compile in one step.
When used without an input filename, this option will grab the
-DSDT from the local machine, disassemble it, and compile it in
-one
+DSDT from the local machine, disassemble it, and compile it in one
step.
Added a warning message for invalid escapes (a backslash followed
by any character other than the allowable escapes). This catches
the quoted string error "\_SB_" (which should be "\\_SB_" ).
-Also, there are numerous instances in the ACPI specification
-where
+Also, there are numerous instances in the ACPI specification where
this error occurs.
Added a compiler option to disable all optimizations. This is
@@ -5734,8 +6702,7 @@ the disassembler must know the number of arguments.)
Added an "optimization" message type that is optional (off by
default). This message is used for all optimizations - including
-constant folding, integer optimization, and namepath
-optimization.
+constant folding, integer optimization, and namepath optimization.
----------------------------------------
25 July 2002. Summary of changes for this release.
@@ -5744,8 +6711,7 @@ optimization.
1) ACPI CA Core Subsystem Version 20020725:
The AML Disassembler has been enhanced to produce compilable ASL
-code and has been integrated into the iASL compiler (see below)
-as
+code and has been integrated into the iASL compiler (see below) as
well as the single-step disassembly for the AML debugger and the
disassembler for the AcpiDump utility. All ACPI 2.0A opcodes,
resource templates and macros are fully supported. The
@@ -5761,14 +6727,12 @@ Added the AcpiOsRedirectOutput interface to the OSL to simplify
output redirection for the AcpiOsPrintf and AcpiOsVprintf
interfaces.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5805,8 +6769,7 @@ inadvertently defined twice, allowing invalid syntax to pass and
causing reduction conflicts.
Fixed a problem where the Ones opcode could get converted to a
-value of zero if "Ones" was used where a byte, word or dword
-value
+value of zero if "Ones" was used where a byte, word or dword value
was expected. The 64-bit value is now truncated to the correct
size with the correct value.
@@ -5821,16 +6784,14 @@ size with the correct value.
The Table Manager code has been restructured to add several new
features. Tables that are not required by the core subsystem
(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
-validated in any way and are returned from AcpiGetFirmwareTable
-if
+validated in any way and are returned from AcpiGetFirmwareTable if
requested. The AcpiOsTableOverride interface is now called for
each table that is loaded by the subsystem in order to allow the
host to override any table it chooses. Previously, only the DSDT
could be overridden. Added one new files, tbrsdt.c and
tbgetall.c.
-Fixed a problem with the conversion of internal package objects
-to
+Fixed a problem with the conversion of internal package objects to
external objects (when a package is returned from a control
method.) The return buffer length was set to zero instead of the
proper length of the package object.
@@ -5840,13 +6801,11 @@ operators when passing reference arguments to control methods. A
new type of Reference object is used internally for references
produced by the RefOf operator.
-Added additional error messages in the Resource Manager to
-explain
+Added additional error messages in the Resource Manager to explain
AE_BAD_DATA errors when they occur during resource parsing.
Split the AcpiEnableSubsystem into two primitives to enable a
-finer granularity initialization sequence. These two calls
-should
+finer granularity initialization sequence. These two calls should
be called in this order: AcpiEnableSubsystem (flags),
AcpiInitializeObjects (flags). The flags parameter remains the
same.
@@ -5855,8 +6814,7 @@ same.
2) Linux
Updated the ACPI utilities module to understand the new style of
-fully resolved package objects that are now returned from the
-core
+fully resolved package objects that are now returned from the core
subsystem. This eliminates errors of the form:
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
@@ -5881,8 +6839,7 @@ Eliminated the acpi_evaluate() helper function in utils.c. It is
no longer needed since acpi_evaluate_object can optionally
allocate memory for the return object.
-Implemented fix for keyboard hang when getting battery readings
-on
+Implemented fix for keyboard hang when getting battery readings on
some systems (Stephen White)
PCI IRQ routing update (Dominik Brodowski)
@@ -5900,14 +6857,12 @@ Fixed a reported problem where constants such as Zero and One
appearing within _PRT packages were not handled correctly within
the resource manager code. Originally reported against the ASL
compiler because the code generator now optimizes integers to
-their minimal AML representation (i.e. AML constants if
-possible.)
+their minimal AML representation (i.e. AML constants if possible.)
The _PRT code now handles all AML constant opcodes correctly
(Zero, One, Ones, Revision).
Fixed a problem with the Concatenate operator in the AML
-interpreter where a buffer result object was incorrectly marked
-as
+interpreter where a buffer result object was incorrectly marked as
not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
All package sub-objects are now fully resolved before they are
@@ -5920,21 +6875,17 @@ Implemented immediate resolution of the AML Constant opcodes
within the AML stream. This has simplified and reduced the
generated code size of the subsystem by eliminating about 10
switch statements for these constants (which previously were
-contained in Reference objects.) The complicating issues are
-that
+contained in Reference objects.) The complicating issues are that
the Zero opcode is used as a "placeholder" for unspecified
-optional target operands and stores to constants are defined to
-be
+optional target operands and stores to constants are defined to be
no-ops.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -5955,8 +6906,7 @@ bridges (Bjorn Helgaas).
3) iASL Compiler Version X2046:
-Fixed a problem where the "_DDN" reserved name was defined to be
-a
+Fixed a problem where the "_DDN" reserved name was defined to be a
control method with one argument. There are no arguments, and
_DDN does not have to be a control method.
@@ -5971,8 +6921,7 @@ names within error messages were wrong. This was caused by a
slight difference in the output of the Flex tool on Linux versus
Windows.
-Fixed a problem with the Linux compiler where the hex output
-files
+Fixed a problem with the Linux compiler where the hex output files
contained some garbage data caused by an internal buffer overrun.
@@ -5984,8 +6933,7 @@ contained some garbage data caused by an internal buffer overrun.
Implemented a workaround to an BIOS bug discovered on the HP
OmniBook where the FADT revision number and the table size are
-inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The
-new
+inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new
behavior is to fallback to using only the ACPI 1.0 fields of the
FADT if the table is too small to be a ACPI 2.0 table as claimed
by the revision number. Although this is a BIOS bug, this is a
@@ -5993,8 +6941,7 @@ case where the workaround is simple enough and with no side
effects, so it seemed prudent to add it. A warning message is
issued, however.
-Implemented minimum size checks for the fixed-length ACPI tables
--
+Implemented minimum size checks for the fixed-length ACPI tables -
- the FADT and FACS, as well as consistency checks between the
revision number and the table size.
@@ -6005,19 +6952,16 @@ instead of a logical address.
Eliminated the use of the AE_AML_ERROR exception and replaced it
with more descriptive codes.
-Fixed a problem where an exception would occur if an ASL Field
-was
+Fixed a problem where an exception would occur if an ASL Field was
defined with no named Field Units underneath it (used by some
index fields).
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -6049,10 +6993,8 @@ Moved arch-specific code out of include/platform/aclinux.h
3) iASL Compiler Version X2044:
-Implemented error checking for the string used in the EISAID
-macro
-(Usually used in the definition of the _HID object.) The code
-now
+Implemented error checking for the string used in the EISAID macro
+(Usually used in the definition of the _HID object.) The code now
strictly enforces the PnP format - exactly 7 characters, 3
uppercase letters and 4 hex digits.
@@ -6071,11 +7013,9 @@ error if a reserved name that must be implemented in ASL as a
control method is used. We know that a reserved name must be a
method if it is defined with input arguments.
-The warning emitted when a namespace object reference is not
-found
+The warning emitted when a namespace object reference is not found
during the cross reference phase has been changed into an error.
-The "External" directive should be used for names defined in
-other
+The "External" directive should be used for names defined in other
modules.
@@ -6084,8 +7024,7 @@ modules.
The 16-bit tools (adump16 and aexec16) have been regenerated and
tested.
-Fixed a problem with the output of both acpidump and adump16
-where
+Fixed a problem with the output of both acpidump and adump16 where
the indentation of closing parentheses and brackets was not
aligned properly with the parent block.
@@ -6100,8 +7039,7 @@ aligned properly with the parent block.
Added support a new OSL interface that allows the host operating
system software to override the DSDT found in the firmware -
-AcpiOsTableOverride. With this interface, the OSL can examine
-the
+AcpiOsTableOverride. With this interface, the OSL can examine the
version of the firmware DSDT and replace it with a different one
if desired.
@@ -6117,14 +7055,12 @@ ASL/AML CreateField operator always returned an error,
Extended the maximum time (before failure) to successfully enable
ACPI mode to 3 seconds.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -6139,8 +7075,7 @@ options used during generation.
2) Linux
Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
-free. While 3 out of 4 of our in-house systems work fine, the
-last
+free. While 3 out of 4 of our in-house systems work fine, the last
one still hangs when testing the LAPIC timer.
Renamed many files in 2.5 kernel release to omit "acpi_" from the
@@ -6182,8 +7117,7 @@ Ones opcodes where possible to further reduce the size of integer
constants and thus reduce the overall size of the generated AML
code.
-Implemented error checking for new reserved terms for ACPI
-version
+Implemented error checking for new reserved terms for ACPI version
2.0A.
Implemented the -qr option to display the current list of ACPI
@@ -6191,14 +7125,12 @@ reserved names known to the compiler.
Implemented the -qc option to display the current list of ASL
operators that are allowed within constant expressions and can
-therefore be folded at compile time if the operands are
-constants.
+therefore be folded at compile time if the operands are constants.
4) Documentation
-Updated the Programmer's Reference for new interfaces, data
-types,
+Updated the Programmer's Reference for new interfaces, data types,
and memory allocation model options.
Updated the iASL Compiler User Reference to apply new format and
@@ -6232,20 +7164,16 @@ Fixed a problem where NULL extended fields (X fields) in an ACPI
2.0 ACPI FADT caused the table load to fail. Although the
existing ACPI specification is a bit fuzzy on this topic, the new
behavior is to fall back on a ACPI 1.0 field if the corresponding
-ACPI 2.0 X field is zero (even though the table revision
-indicates
-a full ACPI 2.0 table.) The ACPI specification will be updated
-to
+ACPI 2.0 X field is zero (even though the table revision indicates
+a full ACPI 2.0 table.) The ACPI specification will be updated to
clarify this issue.
Fixed a problem with the SystemMemory operation region handler
where memory was always accessed byte-wise even if the AML-
specified access width was larger than a byte. This caused
problems on systems with memory-mapped I/O. Memory is now
-accessed with the width specified. On systems that do not
-support
-non-aligned transfers, a check is made to guarantee proper
-address
+accessed with the width specified. On systems that do not support
+non-aligned transfers, a check is made to guarantee proper address
alignment before proceeding in order to avoid an AML-caused
alignment fault within the kernel.
@@ -6256,14 +7184,12 @@ of the 4-byte Irq field was extracted.
Fixed the AcpiExDigitsNeeded() procedure to support _UID. This
function was out of date and required a rewrite.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -6298,16 +7224,13 @@ Summary of changes for this release: 03_29_02
1) ACPI CA Core Subsystem Version 20020329:
Implemented support for late evaluation of TermArg operands to
-Buffer and Package objects. This allows complex expressions to
-be
+Buffer and Package objects. This allows complex expressions to be
used in the declarations of these object types.
-Fixed an ACPI 1.0 compatibility issue when reading Fields. In
-ACPI
+Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
1.0, if the field was larger than 32 bits, it was returned as a
buffer - otherwise it was returned as an integer. In ACPI 2.0,
-the field is returned as a buffer only if the field is larger
-than
+the field is returned as a buffer only if the field is larger than
64 bits. The TableRevision is now considered when making this
conversion to avoid incompatibility with existing ASL code.
@@ -6319,10 +7242,8 @@ support to allow a common data type for both physical and logical
pointers internally. This required a change to the
AcpiOsGetRootPointer interface.
-Implemented the use of ACPI 2.0 Generic Address Structures for
-all
-GPE, Fixed Event, and PM Timer I/O. This allows the use of
-memory
+Implemented the use of ACPI 2.0 Generic Address Structures for all
+GPE, Fixed Event, and PM Timer I/O. This allows the use of memory
mapped I/O for these ACPI features.
Initialization now ignores not only non-required tables (All
@@ -6336,17 +7257,14 @@ objects are now supported -- Devices, Processor, Power, and
Thermal.
Removed most verbosity from the ACPI_DB_INFO debug level. Only
-critical information is returned when this debug level is
-enabled.
+critical information is returned when this debug level is enabled.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -6401,12 +7319,10 @@ Can now shut down the system using "magic sysrq" key.
Fixed a problem where conversion errors for hex/octal/decimal
constants were not reported.
-Implemented a fix for the General Register template Address
-field.
+Implemented a fix for the General Register template Address field.
This field was 8 bits when it should be 64.
-Fixed a problem where errors/warnings were no longer being
-emitted
+Fixed a problem where errors/warnings were no longer being emitted
within the listing output file.
Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
@@ -6422,12 +7338,10 @@ Summary of changes for this release: 03_08_02
1) ACPI CA Core Subsystem Version 20020308:
Fixed a problem with AML Fields where the use of the "AccessAny"
-keyword could cause an interpreter error due to attempting to
-read
+keyword could cause an interpreter error due to attempting to read
or write beyond the end of the parent Operation Region.
-Fixed a problem in the SystemMemory Operation Region handler
-where
+Fixed a problem in the SystemMemory Operation Region handler where
an attempt was made to map memory beyond the end of the region.
This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
errors on some Linux systems.
@@ -6440,11 +7354,9 @@ external object types as well as most internal types.
2) Linux:
-We now use safe_halt() macro versus individual calls to sti |
-hlt.
+We now use safe_halt() macro versus individual calls to sti | hlt.
-Writing to the processor limit interface should now work. "echo
-1"
+Writing to the processor limit interface should now work. "echo 1"
will increase the limit, 2 will decrease, and 0 will reset to the
default.
@@ -6464,8 +7376,7 @@ Summary of changes for this release: 02_25_02
Fixed a problem where the GPE bit masks were not initialized
properly, causing erratic GPE behavior.
-Implemented limited support for multiple calling conventions.
-The
+Implemented limited support for multiple calling conventions. The
code can be generated with either the VPL (variable parameter
list, or "C") convention, or the FPL (fixed parameter list, or
"Pascal") convention. The core subsystem is about 3.4% smaller
@@ -6477,12 +7388,10 @@ when generated with FPL.
Re-add some /proc/acpi/event functionality that was lost during
the rewrite
-Resolved issue with /proc events for fixed-feature buttons
-showing
+Resolved issue with /proc events for fixed-feature buttons showing
up as the system device.
-Fixed checks on C2/C3 latencies to be inclusive of maximum
-values.
+Fixed checks on C2/C3 latencies to be inclusive of maximum values.
Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
@@ -6504,17 +7413,14 @@ Implemented support in AcpiLoadTable to allow loading of FACS and
FADT tables.
Suport for the now-obsolete interim 0.71 64-bit ACPI tables has
-been removed. All 64-bit platforms should be migrated to the
-ACPI
-2.0 tables. The actbl71.h header has been removed from the
-source
+been removed. All 64-bit platforms should be migrated to the ACPI
+2.0 tables. The actbl71.h header has been removed from the source
tree.
All C macros defined within the subsystem have been prefixed with
"ACPI_" to avoid collision with other system include files.
-Removed the return value for the two AcpiOsPrint interfaces,
-since
+Removed the return value for the two AcpiOsPrint interfaces, since
it is never used and causes lint warnings for ignoring the return
value.
@@ -6524,14 +7430,11 @@ probably a fatal system error, these checks will cause the
immediate abort of the currently executing method or interface.
Fixed a problem where the AcpiSetCurrentResources interface could
-fault. This was a side effect of the deployment of the new
-memory
+fault. This was a side effect of the deployment of the new memory
allocation model.
-Fixed a couple of problems with the Global Lock support
-introduced
-in the last major build. The "common" (1.0/2.0) internal FACS
-was
+Fixed a couple of problems with the Global Lock support introduced
+in the last major build. The "common" (1.0/2.0) internal FACS was
being overwritten with the FACS signature and clobbering the
Global Lock pointer. Also, the actual firmware FACS was being
unmapped after construction of the "common" FACS, preventing
@@ -6539,14 +7442,12 @@ access to the actual Global Lock field within it. The "common"
internal FACS is no longer installed as an actual ACPI table; it
is used simply as a global.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -6568,8 +7469,7 @@ proper poll functionality.
Fixed and restructured power management (acpi_bus).
-Only create /proc "view by type" when devices of that class
-exist.
+Only create /proc "view by type" when devices of that class exist.
Fixed "charging/discharging" bug (and others) in acpi_battery.
@@ -6580,13 +7480,11 @@ Improved thermal zone code.
Implemented the new compiler restriction on ASL String hex/octal
-escapes to non-null, ASCII values. An error results if an
-invalid
+escapes to non-null, ASCII values. An error results if an invalid
value is used. (This will require an ACPI 2.0 specification
change.)
-AML object labels that are output to the optional C and ASM
-source
+AML object labels that are output to the optional C and ASM source
are now prefixed with both the ACPI table signature and table ID
to help guarantee uniqueness within a large BIOS project.
@@ -6599,8 +7497,7 @@ Summary of changes for this label: 02_01_02
ACPI 2.0 support is complete in the entire Core Subsystem and the
ASL compiler. All new ACPI 2.0 operators are implemented and all
other changes for ACPI 2.0 support are complete. With
-simultaneous code and data optimizations throughout the
-subsystem,
+simultaneous code and data optimizations throughout the subsystem,
ACPI 2.0 support has been implemented with almost no additional
cost in terms of code and data size.
@@ -6608,10 +7505,8 @@ Implemented a new mechanism for allocation of return buffers. If
the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
be allocated on behalf of the caller. Consolidated all return
buffer validation and allocation to a common procedure. Return
-buffers will be allocated via the primary OSL allocation
-interface
-since it appears that a separate pool is not needed by most
-users.
+buffers will be allocated via the primary OSL allocation interface
+since it appears that a separate pool is not needed by most users.
If a separate pool is required for these buffers, the caller can
still use the original mechanism and pre-allocate the buffer(s).
@@ -6628,8 +7523,7 @@ considerably.
Obsoleted the AcpiOsCallocate OSL interface. This interface was
used only a handful of times and didn't have enough critical mass
-for a separate interface. Replaced with a common calloc
-procedure
+for a separate interface. Replaced with a common calloc procedure
in the core.
Fixed a reported problem with the GPE number mapping mechanism
@@ -6658,33 +7552,27 @@ debugger.
Removed obsolete and unnecessary GPE save/restore code.
-Implemented Field support in the ASL Load operator. This allows
-a
+Implemented Field support in the ASL Load operator. This allows a
table to be loaded from a named field, in addition to loading a
table directly from an Operation Region.
-Implemented timeout and handle support in the external Global
-Lock
+Implemented timeout and handle support in the external Global Lock
interfaces.
Fixed a problem in the AcpiDump utility where pathnames were no
-longer being generated correctly during the dump of named
-objects.
+longer being generated correctly during the dump of named objects.
Modified the AML debugger to give a full display of if/while
predicates instead of just one AML opcode at a time. (The
-predicate can have several nested ASL statements.) The old
-method
+predicate can have several nested ASL statements.) The old method
was confusing during single stepping.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -6716,13 +7604,10 @@ Menuconfig options redesigned
3) ASL Compiler, version X2037:
-Implemented several new output features to simplify integration
-of
+Implemented several new output features to simplify integration of
AML code into firmware: 1) Output the AML in C source code with
-labels for each named ASL object. The original ASL source
-code
-is interleaved as C comments. 2) Output the AML in ASM source
-code
+labels for each named ASL object. The original ASL source code
+is interleaved as C comments. 2) Output the AML in ASM source code
with labels and interleaved ASL source. 3) Output the AML in
raw hex table form, in either C or ASM.
@@ -6761,25 +7646,20 @@ Cleaned up busmgr /proc error handling (Andreas Dilger)
2) ACPI CA Core Subsystem:
-Implemented ACPI 2.0 semantics for the "Break" operator (Exit
-from
+Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
while loop)
Completed implementation of the ACPI 2.0 "Continue",
"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
-operators. All new ACPI 2.0 operators are now implemented in
-both
-the ASL compiler and the AML interpreter. The only remaining
-ACPI
+operators. All new ACPI 2.0 operators are now implemented in both
+the ASL compiler and the AML interpreter. The only remaining ACPI
2.0 task is support for the String data type in the DerefOf
-operator. Fixed a problem with AcquireMutex where the status
-code
+operator. Fixed a problem with AcquireMutex where the status code
was lost if the caller had to actually wait for the mutex.
Increased the maximum ASL Field size from 64K bits to 4G bits.
-Completed implementation of the external Global Lock interfaces -
--
+Completed implementation of the external Global Lock interfaces --
AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and
Handler parameters were added.
@@ -6791,15 +7671,13 @@ add and subtract (diff) macros have changed considerably.
Created and deployed a new ACPI_SIZE type that is 64-bits wide on
64-bit platforms, 32-bits on all others. This type is used
-wherever memory allocation and/or the C sizeof() operator is
-used,
+wherever memory allocation and/or the C sizeof() operator is used,
and affects the OSL memory allocation interfaces AcpiOsAllocate
and AcpiOsCallocate.
Implemented sticky user breakpoints in the AML debugger.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
@@ -6831,8 +7709,7 @@ Summary of changes for this label: 12_05_01
The ACPI 2.0 CopyObject operator is fully implemented. This
operator creates a new copy of an object (and is also used to
-bypass the "implicit conversion" mechanism of the Store
-operator.)
+bypass the "implicit conversion" mechanism of the Store operator.)
The ACPI 2.0 semantics for the SizeOf operator are fully
implemented. The change is that performing a SizeOf on a
@@ -6851,10 +7728,8 @@ object (via the AcpiEvaluateObject interface.)
Fixed a problem with the namespace object deletion mechanism for
objects created by control methods. There were two parts to this
-problem: 1) Objects created during the initialization phase
-method
-parse were not being deleted, and 2) The object owner ID
-mechanism
+problem: 1) Objects created during the initialization phase method
+parse were not being deleted, and 2) The object owner ID mechanism
to track objects was broken.
Fixed a problem where the use of the ASL Scope operator within a
@@ -6864,14 +7739,12 @@ Fixed a problem introduced in the previous label where the buffer
length required for the _PRT structure was not being returned
correctly.
-Code and Data Size: Current core subsystem library sizes are
-shown
+Code and Data Size: Current core subsystem library sizes are shown
below. These are the code and data sizes for the acpica.lib
produced by the Microsoft Visual C++ 6.0 compiler, and these
values do not include any ACPI driver or OSPM code. The debug
version of the code includes the debug output trace mechanism and
-has a larger code and data size. Note that these values will
-vary
+has a larger code and data size. Note that these values will vary
depending on the efficiency of the compiler and the compiler
options used during generation.
@@ -6898,8 +7771,7 @@ Changed the initialization sequence to start the ACPI interpreter
(acpi_init) prior to initialization of the PCI driver (pci_init)
in init/main.c. This ordering is required to support PRT and
facilitate other (future) enhancement. A side effect is that the
-ACPI bus driver and certain device drivers can no longer be
-loaded
+ACPI bus driver and certain device drivers can no longer be loaded
as modules.
Modified the 'make menuconfig' options to allow PCI Interrupt
@@ -6919,8 +7791,7 @@ Summary of changes for this label: 11_20_01
1) ACPI CA Core Subsystem:
Updated Index support to match ACPI 2.0 semantics. Storing a
-Integer, String, or Buffer to an Index of a Buffer will store
-only
+Integer, String, or Buffer to an Index of a Buffer will store only
the least-significant byte of the source to the Indexed buffer
byte. Multiple writes are not performed.
@@ -6933,19 +7804,16 @@ signalled state. Events are now created in an unsignalled state.
The internal object cache is now purged after table loading and
initialization to reduce the use of dynamic kernel memory -- on
the assumption that object use is greatest during the parse phase
-of the entire table (versus the run-time use of individual
-control
+of the entire table (versus the run-time use of individual control
methods.)
ACPI 2.0 variable-length packages are now fully operational.
-Code and Data Size: Code and Data optimizations have permitted
-new
+Code and Data Size: Code and Data optimizations have permitted new
feature development with an actual reduction in the library size.
Current core subsystem library sizes are shown below. These are
the code and data sizes for the acpica.lib produced by the
-Microsoft Visual C++ 6.0 compiler, and these values do not
-include
+Microsoft Visual C++ 6.0 compiler, and these values do not include
any ACPI driver or OSPM code. The debug version of the code
includes the debug output trace mechanism and has a larger code
and data size. Note that these values will vary depending on the
@@ -6969,16 +7837,14 @@ near future. This functionality replaces
arch/i386/kernel/acpitables.c, which was introduced in an earlier
2.4.15-preX release. To enable this feature you must add
"acpi_boot=on" to the kernel command line -- see the help entry
-for CONFIG_ACPI_BOOT for more information. An IA-64 release is
-in
+for CONFIG_ACPI_BOOT for more information. An IA-64 release is in
the works...
Restructured the configuration options to allow boot-time table
parsing support without inclusion of the ACPI Interpreter (and
other) code.
-NOTE: This release does not include fixes for the reported
-events,
+NOTE: This release does not include fixes for the reported events,
power-down, and thermal passive cooling issues (coming soon).
3) ASL Compiler:
@@ -7001,8 +7867,7 @@ Summary of changes for this label: 11_09_01
1) ACPI CA Core Subsystem:
Implemented ACPI 2.0-defined support for writes to fields with a
-Buffer, String, or Integer source operand that is smaller than
-the
+Buffer, String, or Integer source operand that is smaller than the
target field. In these cases, the source operand is zero-extended
to fill the target field.
@@ -7022,8 +7887,7 @@ Implemented boot-time ACPI table parsing support
(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code
facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
legacy BIOS interfaces (e.g. MPS) for the configuration of system
-processors, memory, and interrupts during setup_arch(). Note
-that
+processors, memory, and interrupts during setup_arch(). Note that
this patch does not include the required architecture-specific
changes required to apply this information -- subsequent patches
will be posted for both IA32 and IA64 to achieve this.
@@ -7035,8 +7899,7 @@ driver model and power-manageable drivers will prevent its
(successful) use on most systems.
Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
-submenu, unified IA32 and IA64 options, added new "Boot using
-ACPI
+submenu, unified IA32 and IA64 options, added new "Boot using ACPI
tables" option, etc.
Increased the default timeout for the EC driver from 1ms to 10ms
@@ -7054,13 +7917,10 @@ implemented.
OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
changes to support ACPI 2.0 Qword field access. Read/Write
-PciConfiguration(), Read/Write Memory(), and Read/Write Port()
-now
+PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
accept an ACPI_INTEGER (64 bits) as the value parameter. Also,
-the value parameter for the address space handler interface is
-now
-an ACPI_INTEGER. OSL implementations of these interfaces must
-now
+the value parameter for the address space handler interface is now
+an ACPI_INTEGER. OSL implementations of these interfaces must now
handle the case where the Width parameter is 64.
Index Fields: Fixed a problem where unaligned bit assembly and
@@ -7086,8 +7946,7 @@ current access type was wider than a byte (WordAcc, DwordAcc, or
QwordAcc).
Fields: Fixed a problem where forward references to individual
-FieldUnits (individual Field names within a Field definition)
-were
+FieldUnits (individual Field names within a Field definition) were
not resolved during the AML table load.
Fields: Fixed a problem where forward references from a Field
@@ -7097,17 +7956,14 @@ resolved during the AML table load.
Fields: Duplicate FieldUnit names within a scope are now detected
during AML table load.
-Acpi Interfaces: Fixed a problem where the AcpiGetName()
-interface
+Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
returned an incorrect name for the root node.
-Code and Data Size: Code and Data optimizations have permitted
-new
+Code and Data Size: Code and Data optimizations have permitted new
feature development with an actual reduction in the library size.
Current core subsystem library sizes are shown below. These are
the code and data sizes for the acpica.lib produced by the
-Microsoft Visual C++ 6.0 compiler, and these values do not
-include
+Microsoft Visual C++ 6.0 compiler, and these values do not include
any ACPI driver or OSPM code. The debug version of the code
includes the debug output trace mechanism and has a larger code
and data size. Note that these values will vary depending on the
@@ -7142,20 +7998,17 @@ Summary of changes for this label: 10_18_01
ACPI CA Core Subsystem:
-Fixed a problem with the internal object reference count
-mechanism
+Fixed a problem with the internal object reference count mechanism
that occasionally caused premature object deletion. This resolves
all of the outstanding problem reports where an object is deleted
-in the middle of an interpreter evaluation. Although this
-problem
+in the middle of an interpreter evaluation. Although this problem
only showed up in rather obscure cases, the solution to the
problem involved an adjustment of all reference counts involving
objects attached to namespace nodes.
Fixed a problem with Field support in the interpreter where
writing to an aligned field whose length is an exact multiple (2
-or greater) of the field access granularity would cause an
-attempt
+or greater) of the field access granularity would cause an attempt
to write beyond the end of the field.
The top level AML opcode execution functions within the
@@ -7183,8 +8036,7 @@ format specifiers within invocations of ACPI_DEBUG_PRINT
throughout the core subsystem code.
The ASL "Revision" operator now returns the ACPI support level
-implemented in the core - the value "2" since the ACPI 2.0
-support
+implemented in the core - the value "2" since the ACPI 2.0 support
is more than 50% implemented.
Enhanced the output of the AML debugger "dump namespace" command
@@ -7193,8 +8045,7 @@ to output in a more human-readable form.
Current core subsystem library code sizes are shown below. These
are the code and data sizes for the acpica.lib produced by the
-Microsoft Visual C++ 6.0 compiler, and these values do not
-include
+Microsoft Visual C++ 6.0 compiler, and these values do not include
any ACPI driver or OSPM code. The debug version of the code
includes the full debug trace mechanism -- leading to a much
@@ -7216,14 +8067,11 @@ Linux:
Implemented a "Bad BIOS Blacklist" to track machines that have
known ASL/AML problems.
-Enhanced the /proc interface for the thermal zone driver and
-added
+Enhanced the /proc interface for the thermal zone driver and added
support for _HOT (the critical suspend trip point). The 'info'
-file now includes threshold/policy information, and allows
-setting
+file now includes threshold/policy information, and allows setting
of _SCP (cooling preference) and _TZP (polling frequency) values
-to the 'info' file. Examples: "echo tzp=5 > info" sets the
-polling
+to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
preference to the passive/quiet mode (if supported by the ASL).
@@ -7254,11 +8102,9 @@ stack. Originally over 2K, the maximum stack usage is now below
2K at 1860 bytes (1.82k)
Fixed a problem with the AcpiGetFirmwareTable interface where the
-root table pointer was not mapped into a logical address
-properly.
+root table pointer was not mapped into a logical address properly.
-Fixed a problem where a NULL pointer was being dereferenced in
-the
+Fixed a problem where a NULL pointer was being dereferenced in the
interpreter code for the ASL Notify operator.
Fixed a problem where the use of the ASL Revision operator
@@ -7282,14 +8128,12 @@ from the state object instead of extracting the operands to local
variables. This reduces stack use and code size, and improves
performance.
-The module exxface.c was eliminated as it was an unnecessary
-extra
+The module exxface.c was eliminated as it was an unnecessary extra
layer of code.
Current core subsystem library code sizes are shown below. These
are the code and data sizes for the acpica.lib produced by the
-Microsoft Visual C++ 6.0 compiler, and these values do not
-include
+Microsoft Visual C++ 6.0 compiler, and these values do not include
any ACPI driver or OSPM code. The debug version of the code
includes the full debug trace mechanism -- leading to a much
larger code and data size. Note that these values will vary
@@ -7324,14 +8168,12 @@ the quotient. This was a longstanding bug and it fixes several
known outstanding issues on various platforms.
The ACPI_DEBUG_PRINT and function trace entry/exit macros have
-been further optimized for size. There are 700 invocations of
-the
+been further optimized for size. There are 700 invocations of the
DEBUG_PRINT macro alone, so each optimization reduces the size of
the debug version of the subsystem significantly.
A stack trace mechanism has been implemented. The maximum stack
-usage is about 2K on 32-bit platforms. The debugger command
-"stat
+usage is about 2K on 32-bit platforms. The debugger command "stat
stack" will display the current maximum stack usage.
All public symbols and global variables within the subsystem are
@@ -7347,8 +8189,7 @@ reduce the code size and improve performance.
Current core subsystem library code sizes are shown below. These
are the code and data sizes for the acpica.lib produced by the
-Microsoft Visual C++ 6.0 compiler, and these values do not
-include
+Microsoft Visual C++ 6.0 compiler, and these values do not include
any ACPI driver or OSPM code. The debug version of the code
includes the full debug trace mechanism which contains over 700
invocations of the DEBUG_PRINT macro, 500 function entry macro
@@ -7380,8 +8221,7 @@ ACPI CA Core Subsystem:
The following ACPI 2.0 ASL operators have been implemented in the
AML interpreter (These are already supported by the Intel ASL
-compiler): ToDecimalString, ToHexString, ToString, ToInteger,
-and
+compiler): ToDecimalString, ToHexString, ToString, ToInteger, and
ToBuffer. Support for 64-bit AML constants is implemented in the
AML parser, debugger, and disassembler.
@@ -7396,13 +8236,11 @@ memory list data structure and a single group of functions that
implement generic cache management. This has reduced the code
size in both the debug and release versions of the subsystem.
-The DEBUG_PRINT macro(s) have been optimized for size and
-replaced
+The DEBUG_PRINT macro(s) have been optimized for size and replaced
by ACPI_DEBUG_PRINT. The syntax for this macro is slightly
different, because it generates a single call to an internal
function. This results in a savings of about 90 bytes per
-invocation, resulting in an overall code and data savings of
-about
+invocation, resulting in an overall code and data savings of about
16% in the debug version of the subsystem.
Linux:
@@ -7432,11 +8270,9 @@ Summary of changes for this label: 07_17_01
ACPI CA Core Subsystem:
Added a new interface named AcpiGetFirmwareTable to obtain any
-ACPI table via the ACPI signature. The interface can be called
-at
+ACPI table via the ACPI signature. The interface can be called at
any time during kernel initialization, even before the kernel
-virtual memory manager is initialized and paging is enabled.
-This
+virtual memory manager is initialized and paging is enabled. This
allows kernel subsystems to obtain ACPI tables very early, even
before the ACPI CA subsystem is initialized.
@@ -7455,8 +8291,7 @@ ongoing throughout the rest of this year. In this label, The Mod
operator is implemented.
Added a new data type to contain full PCI addresses named
-ACPI_PCI_ID. This structure contains the PCI Segment, Bus,
-Device,
+ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
and Function values.
Linux:
@@ -7469,10 +8304,8 @@ aligns the CA code closer to the Linux coding standard.
OSL Interfaces:
-The interfaces to the PCI configuration space have been changed
-to
-add the PCI Segment number and to split the single 32-bit
-combined
+The interfaces to the PCI configuration space have been changed to
+add the PCI Segment number and to split the single 32-bit combined
DeviceFunction field into two 16-bit fields. This was
accomplished by moving the four values that define an address in
PCI configuration space (segment, bus, device, and function) to
@@ -7482,10 +8315,8 @@ The changes to the PCI configuration space interfaces led to a
reexamination of the complete set of address space access
interfaces for PCI, I/O, and Memory. The previously existing 18
interfaces have proven difficult to maintain (any small change
-must be propagated across at least 6 interfaces) and do not
-easily
-allow for future expansion to 64 bits if necessary. Also, on
-some
+must be propagated across at least 6 interfaces) and do not easily
+allow for future expansion to 64 bits if necessary. Also, on some
systems, it would not be appropriate to demultiplex the access
width (8, 16, 32,or 64) before calling the OSL if the
corresponding native OS interfaces contain a similar access width
@@ -7527,8 +8358,7 @@ buffer.
The ACPI 2.0 Switch/Case/Default operators have been implemented
and are fully functional. They will work with all ACPI 1.0
-interpreters, since the operators are simply translated to
-If/Else
+interpreters, since the operators are simply translated to If/Else
pairs.
The ACPI 2.0 ElseIf operator is implemented and will also work
@@ -7538,8 +8368,7 @@ Implemented support for ACPI 2.0 variable-length packages. These
packages have a separate opcode, and their size is determined by
the interpreter at run-time.
-Documentation The ACPI CA Programmer Reference has been updated
-to
+Documentation The ACPI CA Programmer Reference has been updated to
reflect the new interfaces and changes to existing interfaces.
------------------------------------------
@@ -7565,8 +8394,7 @@ a reference to a named field within a resource descriptor from a
byte offset to a bit offset if required.
Added some missing named fields from the resource descriptor
-support. These are the names that are automatically created by
-the
+support. These are the names that are automatically created by the
compiler to reference fields within a descriptor. They are only
valid at compile time and are not passed through to the AML
interpreter.
@@ -7580,8 +8408,7 @@ Summary of changes for this label: 05_18_01
ACPI CA Core Subsystem:
Fixed a couple of problems in the Field support code where bits
-from adjacent fields could be returned along with the proper
-field
+from adjacent fields could be returned along with the proper field
bits. Restructured the field support code to improve performance,
readability and maintainability.
@@ -7612,8 +8439,7 @@ buffers are now allocated from a large internal compiler buffer.
The temporary .SRC file is deleted unless the "-s" option is
specified
-The "-d" debug output option now sends all output to the .DBG
-file
+The "-d" debug output option now sends all output to the .DBG file
instead of the console.
"External" second parameter is now optional
@@ -7657,19 +8483,16 @@ Removed /proc/sys/acpi. You can still dump your DSDT from
ACPI CA Core Subsystem:
-Fixed a problem introduced in the previous label where some of
-the
+Fixed a problem introduced in the previous label where some of the
"small" resource descriptor types were not recognized.
-Improved error messages for the case where an ASL Field is
-outside
+Improved error messages for the case where an ASL Field is outside
the range of the parent operation region.
ASL Compiler, version X2018:
-Added error detection for ASL Fields that extend beyond the
-length
+Added error detection for ASL Fields that extend beyond the length
of the parent operation region (only if the length of the region
is known at compile time.) This includes fields that have a
minimum access width that is smaller than the parent region, and
@@ -7683,8 +8506,7 @@ Summary of changes for this label: 04_27_01
ACPI CA Core Subsystem:
-Fixed a problem where the namespace mutex could be released at
-the
+Fixed a problem where the namespace mutex could be released at the
wrong time during execution of AcpiRemoveAddressSpaceHandler.
Added optional thread ID output for debug traces, to simplify
@@ -7694,8 +8516,7 @@ executing ACPI code.
Some additional external data types have been prefixed with the
string "ACPI_" for consistency. This may effect existing code.
-The data types affected are the external callback typedefs -
-e.g.,
+The data types affected are the external callback typedefs - e.g.,
WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
@@ -7737,8 +8558,7 @@ Resource support now supports QWORD address and IO resources. The
have been changed to properly handle Source Resource strings.
A ThreadId of -1 is now used to indicate a "mutex not acquired"
-condition internally and must never be returned by
-AcpiOsThreadId.
+condition internally and must never be returned by AcpiOsThreadId.
This reserved value was changed from 0 since Unix systems allow a
thread ID of 0.
@@ -7763,8 +8583,7 @@ Summary of changes for this label: 03_13_01
During ACPI initialization, the _SB_._INI method is now run if
present.
-Notify handler fix - notifies are deferred until the parent
-method
+Notify handler fix - notifies are deferred until the parent method
completes execution. This fixes the "mutex already acquired"
issue seen occasionally.
@@ -7841,13 +8660,11 @@ message.
ACPI CA Core Subsystem:
Added a new OSL Interface, AcpiOsGetThreadId. This was required
-for the deadlock detection code. Defined to return a non-zero,
-32-
+for the deadlock detection code. Defined to return a non-zero, 32-
bit thread ID for the currently executing thread. May be a non-
zero constant integer on single-thread systems.
-Implemented deadlock detection for internal subsystem mutexes.
-We
+Implemented deadlock detection for internal subsystem mutexes. We
may add conditional compilation for this code (debug only) later.
ASL/AML Mutex object semantics are now fully supported. This
@@ -7888,8 +8705,7 @@ from AcpiEvaluateObject.
Added external interfaces (Acpi*) to the ACPI debug memory
manager. This manager keeps a list of all outstanding
-allocations, and can therefore detect memory leaks and attempts
-to
+allocations, and can therefore detect memory leaks and attempts to
free memory blocks more than once. Useful for code such as the
power manager, etc. May not be appropriate for device drivers.
Performance with the debug code enabled is slow.
@@ -7921,8 +8737,7 @@ interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
Summary of changes for this label: 02_08_01
Core ACPI CA Subsystem: Fixed a problem where an error was
-incorrectly returned if the return resource buffer was larger
-than
+incorrectly returned if the return resource buffer was larger than
the actual data (in the resource interfaces).
References to named objects within packages are resolved to the
@@ -7946,8 +8761,7 @@ The compiler tracks initialization of the arguments and issues an
exception if they are used without prior assignment (just like
locals).
-The -o option now specifies a filename prefix that is used for
-all
+The -o option now specifies a filename prefix that is used for all
output files, including the AML output file. Otherwise, the
default behavior is as follows: 1) the AML goes to the file
specified in the DSDT. 2) all other output files use the input
@@ -7979,8 +8793,7 @@ Fixed C2 and C3 latency calculations.
We no longer use the compilation date for the version message on
-initialization, but retrieve the version from
-AcpiGetSystemInfo().
+initialization, but retrieve the version from AcpiGetSystemInfo().
Incorporated for fix Sony VAIO machines.
@@ -8010,8 +8823,7 @@ target type before storing) is not yet implemented.
Support for 32-bit and 64-bit BCD integers is implemented.
-Problem fixed where a field read on an aligned field could cause
-a
+Problem fixed where a field read on an aligned field could cause a
read past the end of the field.
New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
@@ -8022,14 +8834,12 @@ ASL Compiler:
Version X2011:
1. Static typechecking of all operands is implemented. This
-prevents the use of invalid objects (such as using a Package
-where
+prevents the use of invalid objects (such as using a Package where
an Integer is required) at compile time instead of at interpreter
run-time.
2. The ASL source line is printed with ALL errors and warnings.
3. Bug fix for source EOF without final linefeed.
-4. Debug option is split into a parse trace and a namespace
-trace.
+4. Debug option is split into a parse trace and a namespace trace.
5. Namespace output option (-n) includes initial values for
integers and strings.
6. Parse-only option added for quick syntax checking.
@@ -8072,8 +8882,7 @@ years.
------------------------------------------
Summary of changes for this label: 12_01_00
-Fixed a problem where method invocations within the ASL
-definition
+Fixed a problem where method invocations within the ASL definition
of both OperationRegions and CreateXXXFields did not work
properly. The symptom was an AE_AML_OPERAND_TYPE during
initialization of the region/field:
@@ -8104,19 +8913,15 @@ assignment. Subsequent assignments were ignored.
------------------------------------------
Summary of changes for this label: 11_15_00
-ACPI 2.0 table support with backwards support for ACPI 1.0 and
-the
-0.71 extensions. Note: although we can read ACPI 2.0 BIOS
-tables,
+ACPI 2.0 table support with backwards support for ACPI 1.0 and the
+0.71 extensions. Note: although we can read ACPI 2.0 BIOS tables,
the AML interpreter does NOT have support for the new 2.0 ASL
grammar terms at this time.
-All ACPI hardware access is via the GAS structures in the ACPI
-2.0
+All ACPI hardware access is via the GAS structures in the ACPI 2.0
FADT.
-All physical memory addresses across all platforms are now 64
-bits
+All physical memory addresses across all platforms are now 64 bits
wide. Logical address width remains dependent on the platform
(i.e., "void *").
@@ -8168,8 +8973,7 @@ necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
AcpiLoadTables
-Note: These interface changes require changes to all existing
-OSDs
+Note: These interface changes require changes to all existing OSDs
The PCI_Config default address space handler is always installed
at the root namespace object.
@@ -8183,8 +8987,7 @@ AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
(Namespace is automatically loaded when a table is loaded)
-The ACPI_OPERAND_OBJECT has been optimized to shrink its size
-from
+The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
52 bytes to 32 bytes. There is usually one of these for every
namespace object, so the memory savings is significant.
@@ -8194,10 +8997,8 @@ Bug fixes for IA-64 support have been integrated.
Additional code review comments have been implemented
-The so-called "third pass parse" has been replaced by a final
-walk
-through the namespace to initialize all operation regions
-(address
+The so-called "third pass parse" has been replaced by a final walk
+through the namespace to initialize all operation regions (address
spaces) and fields that have not yet been initialized during the
execution of the various _INI and REG methods.
@@ -8206,11 +9007,9 @@ New file - namespace/nsinit.c
-------------------------------------------
Summary of changes for this label: 09_01_00
-Namespace manager data structures have been reworked to change
-the
+Namespace manager data structures have been reworked to change the
primary object from a table to a single object. This has
-resulted in dynamic memory savings of 3X within the namespace
-and
+resulted in dynamic memory savings of 3X within the namespace and
2X overall in the ACPI CA subsystem.
Fixed problem where the call to AcpiEvFindPciRootBuses was
@@ -8239,8 +9038,7 @@ Summary of changes for this label: 08_23_00
Fixed problem where TerminateControlMethod was being called
multiple times per method
-Fixed debugger problem where single stepping caused a semaphore
-to
+Fixed debugger problem where single stepping caused a semaphore to
be oversignalled
Improved performance through additional parse object caching -
@@ -8252,8 +9050,7 @@ Summary of changes for this label: 08_10_00
Parser/Interpreter integration: Eliminated the creation of
complete parse trees for ACPI tables and control methods.
Instead, parse subtrees are created and then deleted as soon as
-they are processed (Either entered into the namespace or
-executed
+they are processed (Either entered into the namespace or executed
by the interpreter). This reduces the use of dynamic kernel
memory significantly. (about 10X)
@@ -8280,8 +9077,7 @@ Summary of changes for this label: 07_28_00
Fixed a problem with the way addresses were calculated in
AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem
manifested itself when a Field was created with WordAccess or
-DwordAccess, but the field unit defined within the Field was
-less
+DwordAccess, but the field unit defined within the Field was less
than a Word or Dword.
@@ -8293,8 +9089,7 @@ accessing an operand stack with two or more operands.
Fixed a problem with the PCI configuration space handlers where
context was getting confused between accesses. This required a
change to the generic address space handler and address space
-setup definitions. Handlers now get both a global handler
-context
+setup definitions. Handlers now get both a global handler context
(this is the one passed in by the user when executing
AcpiInstallAddressSpaceHandler() and a specific region context
that is unique to each region (For example, the _ADR, _SEG and
@@ -8314,8 +9109,7 @@ RegionHandle, UINT32 Function, void *HandlerContext, void
Summary of changes for this label: 07_21_00
Major file consolidation and rename. All files within the
-interpreter have been renamed as well as most header files.
-This
+interpreter have been renamed as well as most header files. This
was done to prevent collisions with existing files in the host
OSs -- filenames such as "config.h" and "global.h" seem to be
quite common. The VC project files have been updated. All
@@ -8363,8 +9157,7 @@ Osd* interfaces renamed to AcpiOs* to eliminate namespace
pollution/confusion within our target kernels. All OSD
interfaces must be modified to match the new naming convention.
-Files merged across the subsystem. A number of the smaller
-source
+Files merged across the subsystem. A number of the smaller source
and header files have been merged to reduce the file count and
increase the density of the existing files. There are too many
to list here. In general, makefiles that call out individual
@@ -8380,8 +9173,7 @@ the acronym "API" since it is somewhat windowsy. The new name is
All manifest constants have been forced to upper case (some were
-mixed case.) Also, the string "ACPI_" has been prepended to
-many
+mixed case.) Also, the string "ACPI_" has been prepended to many
(not all) of the constants, typedefs, and structs.
The globals "DebugLevel" and "DebugLayer" have been renamed
@@ -8390,8 +9182,7 @@ The globals "DebugLevel" and "DebugLayer" have been renamed
All other globals within the subsystem are now prefixed with
"AcpiGbl_" Internal procedures within the subsystem are now
prefixed with "Acpi" (with only a few exceptions). The original
-two-letter abbreviation for the subcomponent remains after
-"Acpi"
+two-letter abbreviation for the subcomponent remains after "Acpi"
- for example, CmCallocate became AcpiCmCallocate.
Added a source code translation/conversion utility. Used to
@@ -8411,8 +9202,7 @@ both types. However, implementers of this call may want to use
different OS primitives depending on the type of semaphore
requested. For example, some operating systems provide separate
-"mutex" and "semaphore" interfaces - where the mutex interface
-is
+"mutex" and "semaphore" interfaces - where the mutex interface is
much faster because it doesn't have all the overhead of a full
semaphore implementation.
@@ -8425,15 +9215,12 @@ Summary of changes for this label: 06_02_00
Support for environments that cannot handle unaligned data
accesses (e.g. firmware and OS environments devoid of alignment
-handler technology namely SAL/EFI and the IA-64 Linux kernel)
-has
+handler technology namely SAL/EFI and the IA-64 Linux kernel) has
been added (via configurable macros) in these three areas: -
Transfer of data from the raw AML byte stream is done via byte
-moves instead of word/dword/qword moves. - External objects
-are
+moves instead of word/dword/qword moves. - External objects are
aligned within the user buffer, including package elements (sub-
-objects). - Conversion of name strings to UINT32 Acpi Names is
-now
+objects). - Conversion of name strings to UINT32 Acpi Names is now
done byte-wise.
The Store operator was modified to mimic Microsoft's
diff --git a/common/adfile.c b/common/adfile.c
index 007cc6e8ed82..1de4b248f8db 100644
--- a/common/adfile.c
+++ b/common/adfile.c
@@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: adfile - Application-level disassembler file support routines
- * $Revision: 1.3 $
*
*****************************************************************************/
@@ -9,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -116,6 +115,7 @@
#include "acpi.h"
+#include "accommon.h"
#include "acapps.h"
#include <stdio.h>
@@ -125,6 +125,13 @@
#define _COMPONENT ACPI_TOOLS
ACPI_MODULE_NAME ("adfile")
+/* Local prototypes */
+
+INT32
+AdWriteBuffer (
+ char *Filename,
+ char *Buffer,
+ UINT32 Length);
char FilenameBuf[20];
@@ -146,8 +153,8 @@ AdGenerateFilename (
char *Prefix,
char *TableId)
{
- ACPI_NATIVE_UINT i;
- ACPI_NATIVE_UINT j;
+ UINT32 i;
+ UINT32 j;
for (i = 0; Prefix[i]; i++)
@@ -183,14 +190,14 @@ AdGenerateFilename (
*
******************************************************************************/
-ACPI_NATIVE_INT
+INT32
AdWriteBuffer (
- char *Filename,
- char *Buffer,
- UINT32 Length)
+ char *Filename,
+ char *Buffer,
+ UINT32 Length)
{
- FILE *fp;
- ACPI_SIZE Actual;
+ FILE *fp;
+ ACPI_SIZE Actual;
fp = fopen (Filename, "wb");
@@ -202,7 +209,7 @@ AdWriteBuffer (
Actual = fwrite (Buffer, (size_t) Length, 1, fp);
fclose (fp);
- return ((ACPI_NATIVE_INT) Actual);
+ return ((INT32) Actual);
}
diff --git a/common/adisasm.c b/common/adisasm.c
index 4cafaeaa5cd5..8aaa3b4bb531 100644
--- a/common/adisasm.c
+++ b/common/adisasm.c
@@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: adisasm - Application-level disassembler routines
- * $Revision: 1.104 $
*
*****************************************************************************/
@@ -9,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -116,6 +115,7 @@
#include "acpi.h"
+#include "accommon.h"
#include "acparser.h"
#include "amlcode.h"
#include "acdebug.h"
@@ -153,7 +153,25 @@ void
AdDisassemblerHeader (
char *Filename);
-ACPI_PARSE_OBJECT *AcpiGbl_ParseOpRoot;
+void
+AdAddExternalsToNamespace (
+ void);
+
+UINT32
+AdMethodExternalCount (
+ void);
+
+ACPI_STATUS
+AdDeferredParse (
+ ACPI_PARSE_OBJECT *Op,
+ UINT8 *Aml,
+ UINT32 AmlLength);
+
+ACPI_STATUS
+AdParseDeferredOps (
+ ACPI_PARSE_OBJECT *Root);
+
+ACPI_PARSE_OBJECT *AcpiGbl_ParseOpRoot;
/* Stubs for ASL compiler */
@@ -179,7 +197,7 @@ AcpiDsMethodError (
ACPI_STATUS
AcpiNsLoadTable (
- ACPI_NATIVE_UINT TableIndex,
+ UINT32 TableIndex,
ACPI_NAMESPACE_NODE *Node)
{
return (AE_NOT_IMPLEMENTED);
@@ -245,18 +263,27 @@ AdInitialize (
/* ACPI CA subsystem initialization */
Status = AcpiOsInitialize ();
- AcpiUtInitGlobals ();
+ if (ACPI_FAILURE (Status))
+ {
+ return (Status);
+ }
+
+ Status = AcpiUtInitGlobals ();
+ if (ACPI_FAILURE (Status))
+ {
+ return (Status);
+ }
Status = AcpiUtMutexInitialize ();
if (ACPI_FAILURE (Status))
{
- return Status;
+ return (Status);
}
Status = AcpiNsRootInitialize ();
if (ACPI_FAILURE (Status))
{
- return Status;
+ return (Status);
}
/* Setup the Table Manager (cheat - there is no RSDT) */
@@ -265,7 +292,7 @@ AdInitialize (
AcpiGbl_RootTableList.Count = 0;
AcpiGbl_RootTableList.Tables = LocalTables;
- return Status;
+ return (Status);
}
@@ -275,7 +302,7 @@ AdInitialize (
*
* PARAMETERS:
*
- * RETURN: Status
+ * RETURN: None
*
* DESCRIPTION:
*
@@ -371,14 +398,17 @@ AdAmlDisassemble (
{
ACPI_STATUS Status;
char *DisasmFilename = NULL;
+ char *ExternalFilename;
FILE *File = NULL;
- ACPI_TABLE_HEADER *Table;
+ ACPI_TABLE_HEADER *Table = NULL;
ACPI_TABLE_HEADER *ExternalTable;
+ ACPI_OWNER_ID OwnerId;
+ ACPI_EXTERNAL_LIST *NextExternal;
/*
- * Input: AML Code from either a file,
- * or via GetTables (memory or registry)
+ * Input: AML Code from either a file,
+ * or via GetTables (memory or registry)
*/
if (Filename)
{
@@ -388,12 +418,56 @@ AdAmlDisassemble (
return Status;
}
+ /*
+ * External filenames separated by commas
+ * Example: iasl -e file1,file2,file3 -d xxx.aml
+ */
if (Gbl_ExternalFilename)
{
- Status = AcpiDbGetTableFromFile (Gbl_ExternalFilename, &ExternalTable);
- if (ACPI_FAILURE (Status))
+ ExternalFilename = strtok (Gbl_ExternalFilename, ",");
+
+ while (ExternalFilename)
{
- return Status;
+ Status = AcpiDbGetTableFromFile (ExternalFilename, &ExternalTable);
+ if (ACPI_FAILURE (Status))
+ {
+ return Status;
+ }
+
+ /* Load external table for symbol resolution */
+
+ if (ExternalTable)
+ {
+ Status = AdParseTable (ExternalTable, &OwnerId, TRUE, TRUE);
+ if (ACPI_FAILURE (Status))
+ {
+ AcpiOsPrintf ("Could not parse external ACPI tables, %s\n",
+ AcpiFormatException (Status));
+ return Status;
+ }
+
+ /*
+ * Load namespace from names created within control methods
+ * Set owner id of nodes in external table
+ */
+ AcpiDmFinishNamespaceLoad (AcpiGbl_ParseOpRoot,
+ AcpiGbl_RootNode, OwnerId);
+ AcpiPsDeleteParseTree (AcpiGbl_ParseOpRoot);
+ }
+
+ /* Next external file name */
+
+ ExternalFilename = strtok (NULL, ",");
+ }
+
+ /* Clear external list generated by Scope in external tables */
+
+ while (AcpiGbl_ExternalList)
+ {
+ NextExternal = AcpiGbl_ExternalList->Next;
+ ACPI_FREE (AcpiGbl_ExternalList->Path);
+ ACPI_FREE (AcpiGbl_ExternalList);
+ AcpiGbl_ExternalList = NextExternal;
}
}
}
@@ -470,7 +544,7 @@ AdAmlDisassemble (
{
/* Always parse the tables, only option is what to display */
- Status = AdParseTable (Table);
+ Status = AdParseTable (Table, &OwnerId, TRUE, FALSE);
if (ACPI_FAILURE (Status))
{
AcpiOsPrintf ("Could not parse ACPI tables, %s\n",
@@ -490,12 +564,12 @@ AdAmlDisassemble (
/*
* Load namespace from names created within control methods
*/
- AcpiDmFinishNamespaceLoad (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode);
+ AcpiDmFinishNamespaceLoad (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId);
/*
* Cross reference the namespace here, in order to generate External() statements
*/
- AcpiDmCrossReferenceNamespace (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode);
+ AcpiDmCrossReferenceNamespace (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId);
if (AslCompilerdebug)
{
@@ -510,14 +584,6 @@ AdAmlDisassemble (
AcpiDmConvertResourceIndexes (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode);
- if (AslCompilerdebug)
- {
- AcpiOsPrintf ("/**** After second load and resource conversion\n");
- LsSetupNsList (File);
- LsDisplayNamespace ();
- AcpiOsPrintf ("*****/\n");
- }
-
/*
* If we found any external control methods, we must reparse the entire
* tree with the new information (namely, the number of arguments per
@@ -547,7 +613,9 @@ AdAmlDisassemble (
Status = AcpiNsRootInitialize ();
AdAddExternalsToNamespace ();
- Status = AdParseTable (Table);
+ /* Parse table. No need to reload it, however (FALSE) */
+
+ Status = AdParseTable (Table, NULL, FALSE, FALSE);
if (ACPI_FAILURE (Status))
{
AcpiOsPrintf ("Could not parse ACPI tables, %s\n",
@@ -557,6 +625,11 @@ AdAmlDisassemble (
if (AslCompilerdebug)
{
+ AcpiOsPrintf ("/**** After second load and resource conversion\n");
+ LsSetupNsList (File);
+ LsDisplayNamespace ();
+ AcpiOsPrintf ("*****/\n");
+
AcpiDmDumpTree (AcpiGbl_ParseOpRoot);
}
}
@@ -573,6 +646,17 @@ AdAmlDisassemble (
}
Cleanup:
+
+ if (Table && !AcpiUtIsAmlTable (Table))
+ {
+ ACPI_FREE (Table);
+ }
+
+ if (DisasmFilename)
+ {
+ ACPI_FREE (DisasmFilename);
+ }
+
if (OutToFile && File)
{
@@ -585,7 +669,8 @@ Cleanup:
}
AcpiPsDeleteParseTree (AcpiGbl_ParseOpRoot);
- return Status;
+ AcpiGbl_ParseOpRoot = NULL;
+ return (Status);
}
@@ -640,19 +725,59 @@ AdCreateTableHeader (
ACPI_TABLE_HEADER *Table)
{
char *NewFilename;
+ UINT8 Checksum;
+ /*
+ * Print file header and dump original table header
+ */
AdDisassemblerHeader (Filename);
AcpiOsPrintf (" *\n * Original Table Header:\n");
AcpiOsPrintf (" * Signature \"%4.4s\"\n", Table->Signature);
AcpiOsPrintf (" * Length 0x%8.8X (%u)\n", Table->Length, Table->Length);
- AcpiOsPrintf (" * Revision 0x%2.2X\n", Table->Revision);
+
+ /* Print and validate the revision */
+
+ AcpiOsPrintf (" * Revision 0x%2.2X", Table->Revision);
+
+ switch (Table->Revision)
+ {
+ case 0:
+ AcpiOsPrintf (" **** Invalid Revision");
+ break;
+
+ case 1:
+ /* Revision of DSDT controls the ACPI integer width */
+
+ if (ACPI_COMPARE_NAME (Table->Signature, ACPI_SIG_DSDT))
+ {
+ AcpiOsPrintf (" **** ACPI 1.0, no 64-bit math support");
+ }
+ break;
+
+ default:
+ break;
+ }
+ AcpiOsPrintf ("\n");
+
+ /* Print and validate the table checksum */
+
+ AcpiOsPrintf (" * Checksum 0x%2.2X", Table->Checksum);
+
+ Checksum = AcpiTbChecksum (ACPI_CAST_PTR (UINT8, Table), Table->Length);
+ if (Checksum)
+ {
+ AcpiOsPrintf (" **** Incorrect checksum, should be 0x%2.2X",
+ (UINT8) (Table->Checksum - Checksum));
+ }
+ AcpiOsPrintf ("\n");
+
AcpiOsPrintf (" * OEM ID \"%.6s\"\n", Table->OemId);
AcpiOsPrintf (" * OEM Table ID \"%.8s\"\n", Table->OemTableId);
AcpiOsPrintf (" * OEM Revision 0x%8.8X (%u)\n", Table->OemRevision, Table->OemRevision);
- AcpiOsPrintf (" * Creator ID \"%.4s\"\n", Table->AslCompilerId);
- AcpiOsPrintf (" * Creator Revision 0x%8.8X (%u)\n", Table->AslCompilerRevision, Table->AslCompilerRevision);
+ AcpiOsPrintf (" * Compiler ID \"%.4s\"\n", Table->AslCompilerId);
+ AcpiOsPrintf (" * Compiler Version 0x%8.8X (%u)\n", Table->AslCompilerRevision, Table->AslCompilerRevision);
AcpiOsPrintf (" */\n");
/* Create AML output filename based on input filename */
@@ -674,6 +799,8 @@ AdCreateTableHeader (
"DefinitionBlock (\"%s\", \"%4.4s\", %hd, \"%.6s\", \"%.8s\", 0x%8.8X)\n",
NewFilename, Table->Signature, Table->Revision,
Table->OemId, Table->OemTableId, Table->OemRevision);
+
+ ACPI_FREE (NewFilename);
}
@@ -904,6 +1031,7 @@ AdParseDeferredOps (
case AML_CREATE_BYTE_FIELD_OP:
case AML_CREATE_BIT_FIELD_OP:
case AML_CREATE_FIELD_OP:
+ case AML_BANK_FIELD_OP:
/* Nothing to do in these cases */
@@ -946,7 +1074,7 @@ AdGetLocalTables (
ACPI_TABLE_HEADER *NewTable;
UINT32 NumTables;
UINT32 PointerSize;
- ACPI_NATIVE_UINT TableIndex;
+ UINT32 TableIndex;
if (GetAllTables)
@@ -958,6 +1086,11 @@ AdGetLocalTables (
fprintf (stderr, "Could not obtain RSDT\n");
return AE_NO_ACPI_TABLES;
}
+ else
+ {
+ AdWriteTable (NewTable, NewTable->Length,
+ ACPI_SIG_RSDT, NewTable->OemTableId);
+ }
if (ACPI_COMPARE_NAME (NewTable->Signature, ACPI_SIG_RSDT))
{
@@ -1037,6 +1170,9 @@ AdGetLocalTables (
* FUNCTION: AdParseTable
*
* PARAMETERS: Table - Pointer to the raw table
+ * OwnerId - Returned OwnerId of the table
+ * LoadTable - If add table to the global table list
+ * External - If this is an external table
*
* RETURN: Status
*
@@ -1046,13 +1182,16 @@ AdGetLocalTables (
ACPI_STATUS
AdParseTable (
- ACPI_TABLE_HEADER *Table)
+ ACPI_TABLE_HEADER *Table,
+ ACPI_OWNER_ID *OwnerId,
+ BOOLEAN LoadTable,
+ BOOLEAN External)
{
ACPI_STATUS Status = AE_OK;
ACPI_WALK_STATE *WalkState;
UINT8 *AmlStart;
UINT32 AmlLength;
- ACPI_NATIVE_UINT TableIndex;
+ UINT32 TableIndex;
if (!Table)
@@ -1100,23 +1239,50 @@ AdParseTable (
return Status;
}
+ /* If LoadTable is FALSE, we are parsing the last loaded table */
+
+ TableIndex = AcpiGbl_RootTableList.Count - 1;
+
/* Pass 2 */
- Status = AcpiTbStoreTable ((ACPI_NATIVE_UINT) Table, Table,
- Table->Length, ACPI_TABLE_ORIGIN_ALLOCATED, &TableIndex);
- if (ACPI_FAILURE (Status))
+ if (LoadTable)
{
- return Status;
+ Status = AcpiTbStoreTable ((ACPI_PHYSICAL_ADDRESS) Table, Table,
+ Table->Length, ACPI_TABLE_ORIGIN_ALLOCATED, &TableIndex);
+ if (ACPI_FAILURE (Status))
+ {
+ return Status;
+ }
+ Status = AcpiTbAllocateOwnerId (TableIndex);
+ if (ACPI_FAILURE (Status))
+ {
+ return Status;
+ }
+ if (OwnerId)
+ {
+ Status = AcpiTbGetOwnerId (TableIndex, OwnerId);
+ if (ACPI_FAILURE (Status))
+ {
+ return Status;
+ }
+ }
}
fprintf (stderr, "Pass 2 parse of [%4.4s]\n", (char *) Table->Signature);
- Status = AcpiNsOneCompleteParse (ACPI_IMODE_LOAD_PASS2, 0);
+ Status = AcpiNsOneCompleteParse (ACPI_IMODE_LOAD_PASS2, TableIndex, NULL);
if (ACPI_FAILURE (Status))
{
return (Status);
}
+ /* No need to parse control methods of external table */
+
+ if (External)
+ {
+ return AE_OK;
+ }
+
/* Pass 3: Parse control methods and link their parse trees into the main parse tree */
Status = AdParseDeferredOps (AcpiGbl_ParseOpRoot);
diff --git a/common/adwalk.c b/common/adwalk.c
index d2717326af5c..67d9b1138946 100644
--- a/common/adwalk.c
+++ b/common/adwalk.c
@@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: adwalk - Application-level disassembler parse tree walk routines
- * $Revision: 1.6 $
*
*****************************************************************************/
@@ -9,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -116,6 +115,7 @@
#include "acpi.h"
+#include "accommon.h"
#include "acparser.h"
#include "amlcode.h"
#include "acdebug.h"
@@ -252,6 +252,7 @@ AcpiDmFindOrphanMethods (
*
* PARAMETERS: ParseTreeRoot - Root of the parse tree
* NamespaceRoot - Root of the internal namespace
+ * OwnerId - OwnerId of the table to be disassembled
*
* RETURN: None
*
@@ -263,7 +264,8 @@ AcpiDmFindOrphanMethods (
void
AcpiDmFinishNamespaceLoad (
ACPI_PARSE_OBJECT *ParseTreeRoot,
- ACPI_NAMESPACE_NODE *NamespaceRoot)
+ ACPI_NAMESPACE_NODE *NamespaceRoot,
+ ACPI_OWNER_ID OwnerId)
{
ACPI_STATUS Status;
ACPI_OP_WALK_INFO Info;
@@ -277,7 +279,7 @@ AcpiDmFinishNamespaceLoad (
/* Create and initialize a new walk state */
- WalkState = AcpiDsCreateWalkState (0, ParseTreeRoot, NULL, NULL);
+ WalkState = AcpiDsCreateWalkState (OwnerId, ParseTreeRoot, NULL, NULL);
if (!WalkState)
{
return;
@@ -304,6 +306,7 @@ AcpiDmFinishNamespaceLoad (
*
* PARAMETERS: ParseTreeRoot - Root of the parse tree
* NamespaceRoot - Root of the internal namespace
+ * OwnerId - OwnerId of the table to be disassembled
*
* RETURN: None
*
@@ -314,7 +317,8 @@ AcpiDmFinishNamespaceLoad (
void
AcpiDmCrossReferenceNamespace (
ACPI_PARSE_OBJECT *ParseTreeRoot,
- ACPI_NAMESPACE_NODE *NamespaceRoot)
+ ACPI_NAMESPACE_NODE *NamespaceRoot,
+ ACPI_OWNER_ID OwnerId)
{
ACPI_STATUS Status;
ACPI_OP_WALK_INFO Info;
@@ -328,7 +332,7 @@ AcpiDmCrossReferenceNamespace (
/* Create and initialize a new walk state */
- WalkState = AcpiDsCreateWalkState (0, ParseTreeRoot, NULL, NULL);
+ WalkState = AcpiDsCreateWalkState (OwnerId, ParseTreeRoot, NULL, NULL);
if (!WalkState)
{
return;
@@ -470,6 +474,9 @@ AcpiDmDumpDescending (
case AML_INT_NAMEDFIELD_OP:
AcpiOsPrintf ("%4.4s", &Op->Named.Name);
break;
+
+ default:
+ break;
}
AcpiOsPrintf ("\n");
@@ -618,6 +625,9 @@ AcpiDmFindOrphanDescending (
}
break;
+
+ default:
+ break;
}
return (AE_OK);
@@ -650,6 +660,9 @@ AcpiDmLoadDescendingOp (
char *Path = NULL;
ACPI_PARSE_OBJECT *NextOp;
ACPI_NAMESPACE_NODE *Node;
+ char FieldPath[5];
+ BOOLEAN PreDefined = FALSE;
+ UINT8 PreDefineIndex = 0;
WalkState = Info->WalkState;
@@ -672,6 +685,13 @@ AcpiDmLoadDescendingOp (
/* For all named operators, get the new name */
Path = (char *) Op->Named.Path;
+
+ if (!Path && Op->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP)
+ {
+ *ACPI_CAST_PTR (UINT32, &FieldPath[0]) = Op->Named.Name;
+ FieldPath[4] = 0;
+ Path = FieldPath;
+ }
}
else if (OpInfo->Flags & AML_CREATE)
{
@@ -699,6 +719,36 @@ AcpiDmLoadDescendingOp (
Op->Common.Node = Node;
+ if (ACPI_SUCCESS (Status))
+ {
+ /* Check if it's a predefined node */
+
+ while (AcpiGbl_PreDefinedNames[PreDefineIndex].Name)
+ {
+ if (!ACPI_STRNCMP (Node->Name.Ascii,
+ AcpiGbl_PreDefinedNames[PreDefineIndex].Name, 4))
+ {
+ PreDefined = TRUE;
+ break;
+ }
+
+ PreDefineIndex++;
+ }
+
+ /*
+ * Set node owner id if it satisfies all the following conditions:
+ * 1) Not a predefined node, _SB_ etc
+ * 2) Not the root node
+ * 3) Not a node created by Scope
+ */
+
+ if (!PreDefined && Node != AcpiGbl_RootNode &&
+ Op->Common.AmlOpcode != AML_SCOPE_OP)
+ {
+ Node->OwnerId = WalkState->OwnerId;
+ }
+ }
+
Exit:
@@ -740,10 +790,12 @@ AcpiDmXrefDescendingOp (
const ACPI_OPCODE_INFO *OpInfo;
ACPI_WALK_STATE *WalkState;
ACPI_OBJECT_TYPE ObjectType;
+ ACPI_OBJECT_TYPE ObjectType2;
ACPI_STATUS Status;
char *Path = NULL;
ACPI_PARSE_OBJECT *NextOp;
ACPI_NAMESPACE_NODE *Node;
+ ACPI_OPERAND_OBJECT *Object;
WalkState = Info->WalkState;
@@ -819,6 +871,33 @@ AcpiDmXrefDescendingOp (
#endif
}
}
+
+ /*
+ * Found the node in external table, add it to external list
+ * Node->OwnerId == 0 indicates built-in ACPI Names, _OS_ etc
+ */
+ else if (Node->OwnerId && WalkState->OwnerId != Node->OwnerId)
+ {
+ ObjectType2 = ObjectType;
+
+ Object = AcpiNsGetAttachedObject (Node);
+ if (Object)
+ {
+ ObjectType2 = Object->Common.Type;
+ }
+
+ if (ObjectType2 == ACPI_TYPE_METHOD)
+ {
+ AcpiDmAddToExternalList (Path, ACPI_TYPE_METHOD,
+ Object->Method.ParamCount);
+ }
+ else
+ {
+ AcpiDmAddToExternalList (Path, (UINT8) ObjectType2, 0);
+ }
+
+ Op->Common.Node = Node;
+ }
else
{
Op->Common.Node = Node;
diff --git a/common/dmrestag.c b/common/dmrestag.c
index f9e899d3ca4d..b46198815292 100644
--- a/common/dmrestag.c
+++ b/common/dmrestag.c
@@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: dmrestag - Add tags to resource descriptors (Application-level)
- * $Revision: 1.11 $
*
*****************************************************************************/
@@ -9,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -116,6 +115,7 @@
#include "acpi.h"
+#include "accommon.h"
#include "acparser.h"
#include "acdisasm.h"
#include "acnamesp.h"
@@ -636,13 +636,22 @@ AcpiGetTagPathname (
/* Get the full pathname to the parent buffer */
RequiredSize = AcpiNsGetPathnameLength (BufferNode);
+ if (!RequiredSize)
+ {
+ return (NULL);
+ }
+
Pathname = ACPI_ALLOCATE_ZEROED (RequiredSize + ACPI_PATH_SEGMENT_LENGTH);
if (!Pathname)
{
return (NULL);
}
- AcpiNsBuildExternalPath (BufferNode, RequiredSize, Pathname);
+ Status = AcpiNsBuildExternalPath (BufferNode, RequiredSize, Pathname);
+ if (ACPI_FAILURE (Status))
+ {
+ return (NULL);
+ }
/*
* Create the full path to the resource and tag by: remove the buffer name,
@@ -720,7 +729,7 @@ AcpiDmUpdateResourceName (
/* Change the resource descriptor name */
- ResourceNode->Name.Integer = *(UINT32 *) Name;
+ ResourceNode->Name.Integer = *ACPI_CAST_PTR (UINT32, &Name[0]);
}
diff --git a/common/dmtable.c b/common/dmtable.c
index 5a35838524bc..73a033891eef 100644
--- a/common/dmtable.c
+++ b/common/dmtable.c
@@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: dmtable - Support for ACPI tables that contain no AML code
- * $Revision: 1.12 $
*
*****************************************************************************/
@@ -9,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -115,6 +114,7 @@
*****************************************************************************/
#include "acpi.h"
+#include "accommon.h"
#include "acdisasm.h"
#include "actables.h"
@@ -134,16 +134,56 @@ AcpiDmCheckAscii (
UINT8 *Target,
UINT32 Count);
+UINT8
+AcpiTbGenerateChecksum (
+ ACPI_TABLE_HEADER *Table);
+
/* These tables map a subtable type to a description string */
+static const char *AcpiDmAsfSubnames[] =
+{
+ "ASF Information",
+ "ASF Alerts",
+ "ASF Remote Control",
+ "ASF RMCP Boot Options",
+ "ASF Address",
+ "Unknown SubTable Type" /* Reserved */
+};
+
static const char *AcpiDmDmarSubnames[] =
{
"Hardware Unit Definition",
"Reserved Memory Region",
+ "Root Port ATS Capability",
+ "Unknown SubTable Type" /* Reserved */
+};
+
+static const char *AcpiDmHestSubnames[] =
+{
+ "XPF Machine Check Exception",
+ "XPF Corrected Machine Check",
+ "NOT USED???",
+ "XPF Non-Maskable Interrupt",
+ "IPF Corrected Machine Check",
+ "IPF Corrected Platform Error",
+ "PCI Express Root Port AER",
+ "PCI Express AER (AER Endpoint)",
+ "PCI Express/PCI-X Bridge AER",
+ "Generic Hardware Error Source",
"Unknown SubTable Type" /* Reserved */
};
+static const char *AcpiDmHestNotifySubnames[] =
+{
+ "Polled",
+ "External Interrupt",
+ "Local Interrupt",
+ "SCI",
+ "NMI",
+ "Unknown Notify Type" /* Reserved */
+};
+
static const char *AcpiDmMadtSubnames[] =
{
"Processor Local APIC", /* ACPI_MADT_TYPE_LOCAL_APIC */
@@ -155,6 +195,8 @@ static const char *AcpiDmMadtSubnames[] =
"I/O SAPIC", /* ACPI_MADT_TYPE_IO_SAPIC */
"Local SAPIC", /* ACPI_MADT_TYPE_LOCAL_SAPIC */
"Platform Interrupt Sources", /* ACPI_MADT_TYPE_INTERRUPT_SOURCE */
+ "Processor Local x2APIC", /* ACPI_MADT_TYPE_LOCAL_X2APIC */
+ "Local x2APIC NMI", /* ACPI_MADT_TYPE_LOCAL_X2APIC_NMI */
"Unknown SubTable Type" /* Reserved */
};
@@ -162,10 +204,27 @@ static const char *AcpiDmSratSubnames[] =
{
"Processor Local APIC/SAPIC Affinity",
"Memory Affinity",
+ "Processor Local x2APIC Affinity",
"Unknown SubTable Type" /* Reserved */
};
+#define ACPI_FADT_PM_RESERVED 8
+
+static const char *AcpiDmFadtProfiles[] =
+{
+ "Unspecified",
+ "Desktop",
+ "Mobile",
+ "Workstation",
+ "Enterprise Server",
+ "SOHO Server",
+ "Appliance PC",
+ "Performance Server",
+ "Unknown Profile Type"
+};
+
+
/*******************************************************************************
*
* ACPI Table Data, indexed by signature.
@@ -180,16 +239,21 @@ static ACPI_DMTABLE_DATA AcpiDmTableData[] =
{
{ACPI_SIG_ASF, NULL, AcpiDmDumpAsf, "Alert Standard Format table"},
{ACPI_SIG_BOOT, AcpiDmTableInfoBoot, NULL, "Simple Boot Flag Table"},
+ {ACPI_SIG_BERT, AcpiDmTableInfoBert, NULL, "Boot Error Record Table"},
{ACPI_SIG_CPEP, NULL, AcpiDmDumpCpep, "Corrected Platform Error Polling table"},
{ACPI_SIG_DBGP, AcpiDmTableInfoDbgp, NULL, "Debug Port table"},
{ACPI_SIG_DMAR, NULL, AcpiDmDumpDmar, "DMA Remapping table"},
{ACPI_SIG_ECDT, AcpiDmTableInfoEcdt, NULL, "Embedded Controller Boot Resources Table"},
+ {ACPI_SIG_EINJ, NULL, AcpiDmDumpEinj, "Error Injection table"},
+ {ACPI_SIG_ERST, NULL, AcpiDmDumpErst, "Error Record Serialization Table"},
{ACPI_SIG_FADT, NULL, AcpiDmDumpFadt, "Fixed ACPI Description Table"},
+ {ACPI_SIG_HEST, NULL, AcpiDmDumpHest, "Hardware Error Source Table"},
{ACPI_SIG_HPET, AcpiDmTableInfoHpet, NULL, "High Precision Event Timer table"},
{ACPI_SIG_MADT, NULL, AcpiDmDumpMadt, "Multiple APIC Description Table"},
{ACPI_SIG_MCFG, NULL, AcpiDmDumpMcfg, "Memory Mapped Configuration table"},
{ACPI_SIG_RSDT, NULL, AcpiDmDumpRsdt, "Root System Description Table"},
{ACPI_SIG_SBST, AcpiDmTableInfoSbst, NULL, "Smart Battery Specification Table"},
+ {ACPI_SIG_SLIC, AcpiDmTableInfoSlic, NULL, "Software Licensing Description Table"},
{ACPI_SIG_SLIT, NULL, AcpiDmDumpSlit, "System Locality Information Table"},
{ACPI_SIG_SPCR, AcpiDmTableInfoSpcr, NULL, "Serial Port Console Redirection table"},
{ACPI_SIG_SPMI, AcpiDmTableInfoSpmi, NULL, "Server Platform Management Interface table"},
@@ -284,6 +348,7 @@ void
AcpiDmDumpDataTable (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
ACPI_DMTABLE_DATA *TableData;
UINT32 Length;
@@ -314,7 +379,11 @@ AcpiDmDumpDataTable (
* All other tables must use the common ACPI table header, dump it now
*/
Length = Table->Length;
- AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHeader);
+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHeader);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
AcpiOsPrintf ("\n");
/* Match signature and dispatch appropriately */
@@ -380,12 +449,12 @@ AcpiDmLineHeader (
if (ByteLength)
{
- AcpiOsPrintf ("[%3.3Xh %3.3d% 3d] %28s : ",
+ AcpiOsPrintf ("[%3.3Xh %4.4d% 3d] %28s : ",
Offset, Offset, ByteLength, Name);
}
else
{
- AcpiOsPrintf ("%42s : ",
+ AcpiOsPrintf ("%43s : ",
Name);
}
}
@@ -400,12 +469,12 @@ AcpiDmLineHeader2 (
if (ByteLength)
{
- AcpiOsPrintf ("[%3.3Xh %3.3d% 3d] %24s % 3d : ",
+ AcpiOsPrintf ("[%3.3Xh %4.4d% 3d] %24s % 3d : ",
Offset, Offset, ByteLength, Name, Value);
}
else
{
- AcpiOsPrintf ("[%3.3Xh %3.3d ] %24s % 3d : ",
+ AcpiOsPrintf ("[%3.3Xh %4.4d ] %24s % 3d : ",
Offset, Offset, Name, Value);
}
}
@@ -419,7 +488,7 @@ AcpiDmLineHeader2 (
* TableOffset - Starting offset within the table for this
* sub-descriptor (0 if main table)
* Table - The ACPI table
- * SubtableLength - Lenghth of this sub-descriptor
+ * SubtableLength - Length of this sub-descriptor
* Info - Info table for this ACPI table
*
* RETURN: None
@@ -428,7 +497,7 @@ AcpiDmLineHeader2 (
*
******************************************************************************/
-void
+ACPI_STATUS
AcpiDmDumpTable (
UINT32 TableLength,
UINT32 TableOffset,
@@ -442,12 +511,13 @@ AcpiDmDumpTable (
UINT8 Temp8;
UINT16 Temp16;
ACPI_DMTABLE_DATA *TableData;
+ BOOLEAN LastOutputBlankLine = FALSE;
if (!Info)
{
AcpiOsPrintf ("Display not implemented\n");
- return;
+ return (AE_NOT_IMPLEMENTED);
}
/* Walk entire Info table; Null name terminates */
@@ -466,7 +536,8 @@ AcpiDmDumpTable (
if ((CurrentOffset >= TableLength) ||
(SubtableLength && (Info->Offset >= SubtableLength)))
{
- return;
+ AcpiOsPrintf ("**** ACPI table terminates in the middle of a data structure!\n");
+ return (AE_BAD_DATA);
}
/* Generate the byte length for this field */
@@ -478,10 +549,14 @@ AcpiDmDumpTable (
case ACPI_DMT_SPACEID:
case ACPI_DMT_MADT:
case ACPI_DMT_SRAT:
+ case ACPI_DMT_ASF:
+ case ACPI_DMT_HESTNTYP:
+ case ACPI_DMT_FADTPM:
ByteLength = 1;
break;
case ACPI_DMT_UINT16:
case ACPI_DMT_DMAR:
+ case ACPI_DMT_HEST:
ByteLength = 2;
break;
case ACPI_DMT_UINT24:
@@ -506,14 +581,32 @@ AcpiDmDumpTable (
ByteLength = ACPI_STRLEN (ACPI_CAST_PTR (char, Target)) + 1;
break;
case ACPI_DMT_GAS:
- AcpiOsPrintf ("\n");
+ if (!LastOutputBlankLine)
+ {
+ AcpiOsPrintf ("\n");
+ LastOutputBlankLine = TRUE;
+ }
ByteLength = sizeof (ACPI_GENERIC_ADDRESS);
break;
+ case ACPI_DMT_HESTNTFY:
+ if (!LastOutputBlankLine)
+ {
+ AcpiOsPrintf ("\n");
+ LastOutputBlankLine = TRUE;
+ }
+ ByteLength = sizeof (ACPI_HEST_NOTIFY);
+ break;
default:
ByteLength = 0;
break;
}
+ if (CurrentOffset + ByteLength > TableLength)
+ {
+ AcpiOsPrintf ("**** ACPI table terminates in the middle of a data structure!\n");
+ return (AE_BAD_DATA);
+ }
+
/* Start a new line and decode the opcode */
AcpiDmLineHeader (CurrentOffset, ByteLength, Info->Name);
@@ -571,9 +664,11 @@ AcpiDmDumpTable (
case ACPI_DMT_UINT56:
- AcpiOsPrintf ("%6.6X%8.8X\n",
- ACPI_HIDWORD (ACPI_GET64 (Target)) & 0x00FFFFFF,
- ACPI_LODWORD (ACPI_GET64 (Target)));
+ for (Temp8 = 0; Temp8 < 7; Temp8++)
+ {
+ AcpiOsPrintf ("%2.2X", Target[Temp8]);
+ }
+ AcpiOsPrintf ("\n");
break;
case ACPI_DMT_UINT64:
@@ -648,22 +743,73 @@ AcpiDmDumpTable (
AcpiOsPrintf ("<Generic Address Structure>\n");
AcpiDmDumpTable (ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Length,
- CurrentOffset, Target, 0, AcpiDmTableInfoGas);
+ CurrentOffset, Target, sizeof (ACPI_GENERIC_ADDRESS), AcpiDmTableInfoGas);
+ AcpiOsPrintf ("\n");
+ LastOutputBlankLine = TRUE;
+ break;
+
+ case ACPI_DMT_ASF:
+
+ /* ASF subtable types */
+
+ Temp16 = (UINT16) ((*Target) & 0x7F); /* Top bit can be zero or one */
+ if (Temp16 > ACPI_ASF_TYPE_RESERVED)
+ {
+ Temp16 = ACPI_ASF_TYPE_RESERVED;
+ }
+
+ AcpiOsPrintf ("%2.2X <%s>\n", *Target, AcpiDmAsfSubnames[Temp16]);
break;
case ACPI_DMT_DMAR:
/* DMAR subtable types */
- Temp16 = *Target;
+ Temp16 = ACPI_GET16 (Target);
if (Temp16 > ACPI_DMAR_TYPE_RESERVED)
{
Temp16 = ACPI_DMAR_TYPE_RESERVED;
}
- AcpiOsPrintf ("%4.4X <%s>\n", *Target, AcpiDmDmarSubnames[Temp16]);
+ AcpiOsPrintf ("%4.4X <%s>\n", ACPI_GET16 (Target), AcpiDmDmarSubnames[Temp16]);
+ break;
+
+ case ACPI_DMT_HEST:
+
+ /* HEST subtable types */
+
+ Temp16 = ACPI_GET16 (Target);
+ if (Temp16 > ACPI_HEST_TYPE_RESERVED)
+ {
+ Temp16 = ACPI_HEST_TYPE_RESERVED;
+ }
+
+ AcpiOsPrintf ("%4.4X (%s)\n", ACPI_GET16 (Target), AcpiDmHestSubnames[Temp16]);
+ break;
+
+ case ACPI_DMT_HESTNTFY:
+
+ AcpiOsPrintf ("<Hardware Error Notification Structure>\n");
+ AcpiDmDumpTable (ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Length,
+ CurrentOffset, Target, sizeof (ACPI_HEST_NOTIFY), AcpiDmTableInfoHestNotify);
+ AcpiOsPrintf ("\n");
+ LastOutputBlankLine = TRUE;
+ break;
+
+ case ACPI_DMT_HESTNTYP:
+
+ /* HEST Notify types */
+
+ Temp8 = *Target;
+ if (Temp8 > ACPI_HEST_NOTIFY_RESERVED)
+ {
+ Temp8 = ACPI_HEST_NOTIFY_RESERVED;
+ }
+
+ AcpiOsPrintf ("%2.2X (%s)\n", *Target, AcpiDmHestNotifySubnames[Temp8]);
break;
+
case ACPI_DMT_MADT:
/* MADT subtable types */
@@ -690,15 +836,38 @@ AcpiDmDumpTable (
AcpiOsPrintf ("%2.2X <%s>\n", *Target, AcpiDmSratSubnames[Temp8]);
break;
+ case ACPI_DMT_FADTPM:
+
+ /* FADT Preferred PM Profile names */
+
+ Temp8 = *Target;
+ if (Temp8 > ACPI_FADT_PM_RESERVED)
+ {
+ Temp8 = ACPI_FADT_PM_RESERVED;
+ }
+
+ AcpiOsPrintf ("%2.2X (%s)\n", *Target, AcpiDmFadtProfiles[Temp8]);
+ break;
+
case ACPI_DMT_EXIT:
- return;
+ return (AE_OK);
default:
ACPI_ERROR ((AE_INFO,
"**** Invalid table opcode [%X] ****\n", Info->Opcode));
- return;
+ return (AE_SUPPORT);
}
}
+
+ if (TableOffset && !SubtableLength)
+ {
+ /* If this table is not the main table, subtable must have valid length */
+
+ AcpiOsPrintf ("Invalid zero length subtable\n");
+ return (AE_BAD_DATA);
+ }
+
+ return (AE_OK);
}
diff --git a/common/dmtbdump.c b/common/dmtbdump.c
index fcae4a0e5dd2..a0b0d965c324 100644
--- a/common/dmtbdump.c
+++ b/common/dmtbdump.c
@@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: dmtbdump - Dump ACPI data tables that contain no AML code
- * $Revision: 1.15 $
*
*****************************************************************************/
@@ -9,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -115,6 +114,7 @@
*****************************************************************************/
#include "acpi.h"
+#include "accommon.h"
#include "acdisasm.h"
#include "actables.h"
@@ -260,13 +260,20 @@ AcpiDmDumpFadt (
AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt1);
- /* Check for ACPI 2.0+ extended data (cannot depend on Revision field) */
+ /* Check for ACPI 1.0B MS extensions (FADT revision 2) */
- if (Table->Length >= sizeof (ACPI_TABLE_FADT))
+ if (Table->Revision == 2)
{
AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt2);
}
+ /* Check for ACPI 2.0+ extended data (FADT revision 3+) */
+
+ else if (Table->Length >= sizeof (ACPI_TABLE_FADT))
+ {
+ AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt3);
+ }
+
/* Validate various fields in the FADT, including length */
AcpiTbCreateLocalFadt (Table, Table->Length);
@@ -289,15 +296,16 @@ void
AcpiDmDumpAsf (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
UINT32 Offset = sizeof (ACPI_TABLE_HEADER);
ACPI_ASF_INFO *SubTable;
ACPI_DMTABLE_INFO *InfoTable;
ACPI_DMTABLE_INFO *DataInfoTable = NULL;
UINT8 *DataTable = NULL;
- ACPI_NATIVE_UINT DataCount = 0;
- ACPI_NATIVE_UINT DataLength = 0;
- ACPI_NATIVE_UINT DataOffset = 0;
- ACPI_NATIVE_UINT i;
+ UINT32 DataCount = 0;
+ UINT32 DataLength = 0;
+ UINT32 DataOffset = 0;
+ UINT32 i;
/* No main table, only sub-tables */
@@ -307,7 +315,12 @@ AcpiDmDumpAsf (
{
/* Common sub-table header */
- AcpiDmDumpTable (Table->Length, Offset, SubTable, 0, AcpiDmTableInfoAsfHdr);
+ Status = AcpiDmDumpTable (Table->Length, Offset, SubTable,
+ SubTable->Header.Length, AcpiDmTableInfoAsfHdr);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
switch (SubTable->Header.Type & 0x7F) /* Mask off top bit */
{
@@ -349,8 +362,12 @@ AcpiDmDumpAsf (
return;
}
- AcpiDmDumpTable (Table->Length, Offset, SubTable, SubTable->Header.Length, InfoTable);
-
+ Status = AcpiDmDumpTable (Table->Length, Offset, SubTable,
+ SubTable->Header.Length, InfoTable);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Dump variable-length extra data */
@@ -362,7 +379,12 @@ AcpiDmDumpAsf (
for (i = 0; i < DataCount; i++)
{
AcpiOsPrintf ("\n");
- AcpiDmDumpTable (Table->Length, DataOffset, DataTable, DataLength, DataInfoTable);
+ Status = AcpiDmDumpTable (Table->Length, DataOffset,
+ DataTable, DataLength, DataInfoTable);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
DataTable = ACPI_ADD_PTR (UINT8, DataTable, DataLength);
DataOffset += DataLength;
@@ -381,16 +403,30 @@ AcpiDmDumpAsf (
AcpiOsPrintf ("%2.2X ", *DataTable);
DataTable++;
DataOffset++;
+ if (DataOffset > Table->Length)
+ {
+ AcpiOsPrintf ("**** ACPI table terminates in the middle of a data structure!\n");
+ return;
+ }
}
AcpiOsPrintf ("\n");
break;
+
+ default:
+ break;
}
AcpiOsPrintf ("\n");
/* Point to next sub-table */
+ if (!SubTable->Header.Length)
+ {
+ AcpiOsPrintf ("Invalid zero subtable header length\n");
+ return;
+ }
+
Offset += SubTable->Header.Length;
SubTable = ACPI_ADD_PTR (ACPI_ASF_INFO, SubTable, SubTable->Header.Length);
}
@@ -414,6 +450,7 @@ void
AcpiDmDumpCpep (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
ACPI_CPEP_POLLING *SubTable;
UINT32 Length = Table->Length;
UINT32 Offset = sizeof (ACPI_TABLE_CPEP);
@@ -421,7 +458,11 @@ AcpiDmDumpCpep (
/* Main table */
- AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoCpep);
+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoCpep);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Sub-tables */
@@ -429,7 +470,12 @@ AcpiDmDumpCpep (
while (Offset < Table->Length)
{
AcpiOsPrintf ("\n");
- AcpiDmDumpTable (Length, Offset, SubTable, SubTable->Length, AcpiDmTableInfoCpep0);
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ SubTable->Length, AcpiDmTableInfoCpep0);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Point to next sub-table */
@@ -456,6 +502,7 @@ void
AcpiDmDumpDmar (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
ACPI_DMAR_HEADER *SubTable;
UINT32 Length = Table->Length;
UINT32 Offset = sizeof (ACPI_TABLE_DMAR);
@@ -468,7 +515,11 @@ AcpiDmDumpDmar (
/* Main table */
- AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDmar);
+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDmar);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Sub-tables */
@@ -478,7 +529,12 @@ AcpiDmDumpDmar (
/* Common sub-table header */
AcpiOsPrintf ("\n");
- AcpiDmDumpTable (Length, Offset, SubTable, 0, AcpiDmTableInfoDmarHdr);
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ SubTable->Length, AcpiDmTableInfoDmarHdr);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
switch (SubTable->Type)
{
@@ -490,52 +546,58 @@ AcpiDmDumpDmar (
InfoTable = AcpiDmTableInfoDmar1;
ScopeOffset = sizeof (ACPI_DMAR_RESERVED_MEMORY);
break;
+ case ACPI_DMAR_TYPE_ATSR:
+ InfoTable = AcpiDmTableInfoDmar2;
+ ScopeOffset = sizeof (ACPI_DMAR_ATSR);
+ break;
default:
AcpiOsPrintf ("\n**** Unknown DMAR sub-table type %X\n\n", SubTable->Type);
return;
}
- AcpiDmDumpTable (Length, Offset, SubTable, SubTable->Length, InfoTable);
-
- /*
- * Currently, a common flag indicates whether there are any
- * device scope entries present at the end of the subtable.
- */
- if ((SubTable->Flags & ACPI_DMAR_INCLUDE_ALL) == 0)
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ SubTable->Length, InfoTable);
+ if (ACPI_FAILURE (Status))
{
- /* Dump the device scope entries */
+ return;
+ }
- ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE, SubTable, ScopeOffset);
- while (ScopeOffset < SubTable->Length)
+ /* Dump the device scope entries (if any) */
+
+ ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE, SubTable, ScopeOffset);
+ while (ScopeOffset < SubTable->Length)
+ {
+ AcpiOsPrintf ("\n");
+ Status = AcpiDmDumpTable (Length, Offset + ScopeOffset, ScopeTable,
+ ScopeTable->Length, AcpiDmTableInfoDmarScope);
+ if (ACPI_FAILURE (Status))
{
- AcpiOsPrintf ("\n");
- AcpiDmDumpTable (Length, Offset + ScopeOffset, ScopeTable,
- ScopeTable->Length, AcpiDmTableInfoDmarScope);
+ return;
+ }
- /* Dump the PCI Path entries for this device scope */
+ /* Dump the PCI Path entries for this device scope */
- PathOffset = sizeof (ACPI_DMAR_DEVICE_SCOPE); /* Path entries start at this offset */
+ PathOffset = sizeof (ACPI_DMAR_DEVICE_SCOPE); /* Path entries start at this offset */
- PciPath = ACPI_ADD_PTR (UINT8, ScopeTable,
- sizeof (ACPI_DMAR_DEVICE_SCOPE));
+ PciPath = ACPI_ADD_PTR (UINT8, ScopeTable,
+ sizeof (ACPI_DMAR_DEVICE_SCOPE));
- while (PathOffset < ScopeTable->Length)
- {
- AcpiDmLineHeader ((PathOffset + ScopeOffset + Offset), 2, "PCI Path");
- AcpiOsPrintf ("[%2.2X, %2.2X]\n", PciPath[0], PciPath[1]);
+ while (PathOffset < ScopeTable->Length)
+ {
+ AcpiDmLineHeader ((PathOffset + ScopeOffset + Offset), 2, "PCI Path");
+ AcpiOsPrintf ("[%2.2X, %2.2X]\n", PciPath[0], PciPath[1]);
- /* Point to next PCI Path entry */
+ /* Point to next PCI Path entry */
- PathOffset += 2;
- PciPath += 2;
- }
+ PathOffset += 2;
+ PciPath += 2;
+ }
- /* Point to next device scope entry */
+ /* Point to next device scope entry */
- ScopeOffset += ScopeTable->Length;
- ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE,
- ScopeTable, ScopeTable->Length);
- }
+ ScopeOffset += ScopeTable->Length;
+ ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE,
+ ScopeTable, ScopeTable->Length);
}
/* Point to next sub-table */
@@ -548,6 +610,220 @@ AcpiDmDumpDmar (
/*******************************************************************************
*
+ * FUNCTION: AcpiDmDumpEinj
+ *
+ * PARAMETERS: Table - A EINJ table
+ *
+ * RETURN: None
+ *
+ * DESCRIPTION: Format the contents of a EINJ. This table type consists
+ * of an open-ended number of subtables.
+ *
+ ******************************************************************************/
+
+void
+AcpiDmDumpEinj (
+ ACPI_TABLE_HEADER *Table)
+{
+ ACPI_STATUS Status;
+ ACPI_WHEA_HEADER *SubTable;
+ UINT32 Length = Table->Length;
+ UINT32 Offset = sizeof (ACPI_TABLE_EINJ);
+
+
+ /* Main table */
+
+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoEinj);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+
+ /* Sub-tables */
+
+ SubTable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset);
+ while (Offset < Table->Length)
+ {
+ AcpiOsPrintf ("\n");
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ sizeof (ACPI_WHEA_HEADER), AcpiDmTableInfoEinj0);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+
+ /* Point to next sub-table (each subtable is of fixed length) */
+
+ Offset += sizeof (ACPI_WHEA_HEADER);
+ SubTable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, SubTable,
+ sizeof (ACPI_WHEA_HEADER));
+ }
+}
+
+
+/*******************************************************************************
+ *
+ * FUNCTION: AcpiDmDumpErst
+ *
+ * PARAMETERS: Table - A ERST table
+ *
+ * RETURN: None
+ *
+ * DESCRIPTION: Format the contents of a ERST. This table type consists
+ * of an open-ended number of subtables.
+ *
+ ******************************************************************************/
+
+void
+AcpiDmDumpErst (
+ ACPI_TABLE_HEADER *Table)
+{
+ ACPI_STATUS Status;
+ ACPI_WHEA_HEADER *SubTable;
+ UINT32 Length = Table->Length;
+ UINT32 Offset = sizeof (ACPI_TABLE_ERST);
+
+
+ /* Main table */
+
+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoErst);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+
+ /* Sub-tables */
+
+ SubTable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset);
+ while (Offset < Table->Length)
+ {
+ AcpiOsPrintf ("\n");
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ sizeof (ACPI_WHEA_HEADER), AcpiDmTableInfoEinj0);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+
+ /* Point to next sub-table (each subtable is of fixed length) */
+
+ Offset += sizeof (ACPI_WHEA_HEADER);
+ SubTable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, SubTable,
+ sizeof (ACPI_WHEA_HEADER));
+ }
+}
+
+
+/*******************************************************************************
+ *
+ * FUNCTION: AcpiDmDumpHest
+ *
+ * PARAMETERS: Table - A HEST table
+ *
+ * RETURN: None
+ *
+ * DESCRIPTION: Format the contents of a HEST. This table type consists
+ * of an open-ended number of subtables.
+ *
+ ******************************************************************************/
+
+void
+AcpiDmDumpHest (
+ ACPI_TABLE_HEADER *Table)
+{
+ ACPI_STATUS Status;
+ ACPI_HEST_HEADER *SubTable;
+ UINT32 Length = Table->Length;
+ UINT32 Offset = sizeof (ACPI_TABLE_HEST);
+ ACPI_DMTABLE_INFO *InfoTable;
+ UINT32 SubTableLength;
+
+
+ /* Main table */
+
+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHest);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+
+ /* Sub-tables */
+
+ SubTable = ACPI_ADD_PTR (ACPI_HEST_HEADER, Table, Offset);
+ while (Offset < Table->Length)
+ {
+ switch (SubTable->Type)
+ {
+ case ACPI_HEST_TYPE_XPF_MACHINE_CHECK:
+ InfoTable = AcpiDmTableInfoHest0;
+ SubTableLength = sizeof (ACPI_HEST_XPF_MACHINE_CHECK);
+ break;
+
+ case ACPI_HEST_TYPE_XPF_CORRECTED_MACHINE_CHECK:
+ InfoTable = AcpiDmTableInfoHest1;
+ SubTableLength = sizeof (ACPI_HEST_XPF_CORRECTED);
+ break;
+
+ case ACPI_HEST_TYPE_XPF_NON_MASKABLE_INTERRUPT:
+ InfoTable = AcpiDmTableInfoHest3;
+ SubTableLength = sizeof (ACPI_HEST_XPF_NMI);
+ break;
+
+ case ACPI_HEST_TYPE_IPF_CORRECTED_MACHINE_CHECK:
+ InfoTable = AcpiDmTableInfoHest4;
+ SubTableLength = sizeof (ACPI_HEST_IPF_CORRECTED);
+ break;
+
+ case ACPI_HEST_TYPE_IPF_CORRECTED_PLATFORM_ERROR:
+ InfoTable = AcpiDmTableInfoHest5;
+ SubTableLength = sizeof (ACPI_HEST_IPF_CORRECTED_PLATFORM);
+ break;
+
+ case ACPI_HEST_TYPE_AER_ROOT_PORT:
+ InfoTable = AcpiDmTableInfoHest6;
+ SubTableLength = sizeof (ACPI_HEST_AER_ROOT);
+ break;
+
+ case ACPI_HEST_TYPE_AER_ENDPOINT:
+ InfoTable = AcpiDmTableInfoHest7;
+ SubTableLength = sizeof (ACPI_HEST_AER);
+ break;
+
+ case ACPI_HEST_TYPE_AER_BRIDGE:
+ InfoTable = AcpiDmTableInfoHest8;
+ SubTableLength = sizeof (ACPI_HEST_AER_BRIDGE);
+ break;
+
+ case ACPI_HEST_TYPE_GENERIC_HARDWARE_ERROR_SOURCE:
+ InfoTable = AcpiDmTableInfoHest9;
+ SubTableLength = sizeof (ACPI_HEST_GENERIC);
+ break;
+
+ default:
+ /* Cannot continue on unknown type - no length */
+
+ AcpiOsPrintf ("\n**** Unknown HEST sub-table type %X\n", SubTable->Type);
+ return;
+ }
+
+ AcpiOsPrintf ("\n");
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ SubTableLength, InfoTable);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+
+ /* Point to next sub-table (each subtable is of fixed length) */
+
+ Offset += SubTableLength;
+ SubTable = ACPI_ADD_PTR (ACPI_HEST_HEADER, SubTable, SubTableLength);
+ }
+}
+
+
+/*******************************************************************************
+ *
* FUNCTION: AcpiDmDumpMadt
*
* PARAMETERS: Table - A MADT table
@@ -563,6 +839,7 @@ void
AcpiDmDumpMadt (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
ACPI_SUBTABLE_HEADER *SubTable;
UINT32 Length = Table->Length;
UINT32 Offset = sizeof (ACPI_TABLE_MADT);
@@ -571,7 +848,11 @@ AcpiDmDumpMadt (
/* Main table */
- AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt);
+ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Sub-tables */
@@ -581,7 +862,12 @@ AcpiDmDumpMadt (
/* Common sub-table header */
AcpiOsPrintf ("\n");
- AcpiDmDumpTable (Length, Offset, SubTable, 0, AcpiDmTableInfoMadtHdr);
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ SubTable->Length, AcpiDmTableInfoMadtHdr);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
switch (SubTable->Type)
{
@@ -612,13 +898,33 @@ AcpiDmDumpMadt (
case ACPI_MADT_TYPE_INTERRUPT_SOURCE:
InfoTable = AcpiDmTableInfoMadt8;
break;
+ case ACPI_MADT_TYPE_LOCAL_X2APIC:
+ InfoTable = AcpiDmTableInfoMadt9;
+ break;
+ case ACPI_MADT_TYPE_LOCAL_X2APIC_NMI:
+ InfoTable = AcpiDmTableInfoMadt10;
+ break;
default:
AcpiOsPrintf ("\n**** Unknown MADT sub-table type %X\n\n", SubTable->Type);
- return;
+
+ /* Attempt to continue */
+
+ if (!SubTable->Length)
+ {
+ AcpiOsPrintf ("Invalid zero length subtable\n");
+ return;
+ }
+ goto NextSubTable;
}
- AcpiDmDumpTable (Length, Offset, SubTable, SubTable->Length, InfoTable);
+ Status = AcpiDmDumpTable (Length, Offset, SubTable,
+ SubTable->Length, InfoTable);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+NextSubTable:
/* Point to next sub-table */
Offset += SubTable->Length;
@@ -643,13 +949,18 @@ void
AcpiDmDumpMcfg (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
UINT32 Offset = sizeof (ACPI_TABLE_MCFG);
ACPI_MCFG_ALLOCATION *SubTable;
/* Main table */
- AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMcfg);
+ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMcfg);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Sub-tables */
@@ -664,7 +975,12 @@ AcpiDmDumpMcfg (
}
AcpiOsPrintf ("\n");
- AcpiDmDumpTable (Table->Length, Offset, SubTable, 0, AcpiDmTableInfoMcfg0);
+ Status = AcpiDmDumpTable (Table->Length, Offset, SubTable,
+ sizeof (ACPI_MCFG_ALLOCATION), AcpiDmTableInfoMcfg0);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Point to next sub-table (each subtable is of fixed length) */
@@ -691,6 +1007,7 @@ void
AcpiDmDumpSlit (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
UINT32 Offset;
UINT8 *Row;
UINT32 Localities;
@@ -700,7 +1017,11 @@ AcpiDmDumpSlit (
/* Main table */
- AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSlit);
+ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSlit);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Display the Locality NxN Matrix */
@@ -759,6 +1080,7 @@ void
AcpiDmDumpSrat (
ACPI_TABLE_HEADER *Table)
{
+ ACPI_STATUS Status;
UINT32 Offset = sizeof (ACPI_TABLE_SRAT);
ACPI_SUBTABLE_HEADER *SubTable;
ACPI_DMTABLE_INFO *InfoTable;
@@ -766,13 +1088,27 @@ AcpiDmDumpSrat (
/* Main table */
- AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSrat);
+ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSrat);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Sub-tables */
SubTable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset);
while (Offset < Table->Length)
{
+ /* Common sub-table header */
+
+ AcpiOsPrintf ("\n");
+ Status = AcpiDmDumpTable (Table->Length, Offset, SubTable,
+ SubTable->Length, AcpiDmTableInfoSratHdr);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+
switch (SubTable->Type)
{
case ACPI_SRAT_TYPE_CPU_AFFINITY:
@@ -781,14 +1117,31 @@ AcpiDmDumpSrat (
case ACPI_SRAT_TYPE_MEMORY_AFFINITY:
InfoTable = AcpiDmTableInfoSrat1;
break;
+ case ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY:
+ InfoTable = AcpiDmTableInfoSrat2;
+ break;
default:
AcpiOsPrintf ("\n**** Unknown SRAT sub-table type %X\n", SubTable->Type);
- return;
+
+ /* Attempt to continue */
+
+ if (!SubTable->Length)
+ {
+ AcpiOsPrintf ("Invalid zero length subtable\n");
+ return;
+ }
+ goto NextSubTable;
}
AcpiOsPrintf ("\n");
- AcpiDmDumpTable (Table->Length, Offset, SubTable, SubTable->Length, InfoTable);
+ Status = AcpiDmDumpTable (Table->Length, Offset, SubTable,
+ SubTable->Length, InfoTable);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
+NextSubTable:
/* Point to next sub-table */
Offset += SubTable->Length;
diff --git a/common/dmtbinfo.c b/common/dmtbinfo.c
index cfd50a230138..3574a2a71131 100644
--- a/common/dmtbinfo.c
+++ b/common/dmtbinfo.c
@@ -1,7 +1,6 @@
/******************************************************************************
*
* Module Name: dmtbinfo - Table info for non-AML tables
- * $Revision: 1.13 $
*
*****************************************************************************/
@@ -9,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -115,6 +114,7 @@
*****************************************************************************/
#include "acpi.h"
+#include "accommon.h"
#include "acdisasm.h"
/* This module used for application-level code only */
@@ -130,10 +130,14 @@
#define ACPI_HDR_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_HEADER,f)
#define ACPI_RSDP_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_RSDP,f)
#define ACPI_BOOT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_BOOT,f)
+#define ACPI_BERT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_BERT,f)
#define ACPI_CPEP_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_CPEP,f)
#define ACPI_DBGP_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_DBGP,f)
#define ACPI_DMAR_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_DMAR,f)
#define ACPI_ECDT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_ECDT,f)
+#define ACPI_EINJ_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_EINJ,f)
+#define ACPI_ERST_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_ERST,f)
+#define ACPI_HEST_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_HEST,f)
#define ACPI_HPET_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_HPET,f)
#define ACPI_MADT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_MADT,f)
#define ACPI_MCFG_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_MCFG,f)
@@ -145,7 +149,7 @@
#define ACPI_TCPA_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_TCPA,f)
#define ACPI_WDRT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_WDRT,f)
-/* Sub-tables */
+/* Subtables */
#define ACPI_ASF0_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_ASF_INFO,f)
#define ACPI_ASF1_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_ASF_ALERT,f)
@@ -158,6 +162,18 @@
#define ACPI_DMARS_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_DMAR_DEVICE_SCOPE,f)
#define ACPI_DMAR0_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_DMAR_HARDWARE_UNIT,f)
#define ACPI_DMAR1_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_DMAR_RESERVED_MEMORY,f)
+#define ACPI_DMAR2_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_DMAR_ATSR,f)
+#define ACPI_EINJ0_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_WHEA_HEADER,f)
+#define ACPI_HEST0_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_XPF_MACHINE_CHECK,f)
+#define ACPI_HEST1_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_XPF_CORRECTED,f)
+#define ACPI_HEST3_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_XPF_NMI,f)
+#define ACPI_HEST4_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_IPF_CORRECTED,f)
+#define ACPI_HEST5_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_IPF_CORRECTED_PLATFORM,f)
+#define ACPI_HEST6_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_AER_ROOT,f)
+#define ACPI_HEST7_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_AER,f)
+#define ACPI_HEST8_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_AER_BRIDGE,f)
+#define ACPI_HEST9_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_GENERIC,f)
+#define ACPI_HESTN_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_HEST_NOTIFY,f)
#define ACPI_MADT0_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_LOCAL_APIC,f)
#define ACPI_MADT1_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_IO_APIC,f)
#define ACPI_MADT2_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_INTERRUPT_OVERRIDE,f)
@@ -167,10 +183,14 @@
#define ACPI_MADT6_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_IO_SAPIC,f)
#define ACPI_MADT7_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_LOCAL_SAPIC,f)
#define ACPI_MADT8_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_INTERRUPT_SOURCE,f)
+#define ACPI_MADT9_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_LOCAL_X2APIC,f)
+#define ACPI_MADT10_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MADT_LOCAL_X2APIC_NMI,f)
#define ACPI_MADTH_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f)
#define ACPI_MCFG0_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_MCFG_ALLOCATION,f)
+#define ACPI_SRATH_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f)
#define ACPI_SRAT0_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_SRAT_CPU_AFFINITY,f)
#define ACPI_SRAT1_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_SRAT_MEM_AFFINITY,f)
+#define ACPI_SRAT2_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_SRAT_X2APIC_CPU_AFFINITY,f)
/*
* Simplify access to flag fields by breaking them up into bytes
@@ -184,6 +204,7 @@
#define ACPI_HPET_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_HPET,f,o)
#define ACPI_SRAT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_CPU_AFFINITY,f,o)
#define ACPI_SRAT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_MEM_AFFINITY,f,o)
+#define ACPI_SRAT2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_X2APIC_CPU_AFFINITY,f,o)
#define ACPI_MADT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_MADT,f,o)
#define ACPI_MADT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_APIC,f,o)
#define ACPI_MADT2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_INTERRUPT_OVERRIDE,f,o)
@@ -191,6 +212,8 @@
#define ACPI_MADT4_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_APIC_NMI,f,o)
#define ACPI_MADT7_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_SAPIC,f,o)
#define ACPI_MADT8_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_INTERRUPT_SOURCE,f,o)
+#define ACPI_MADT9_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_X2APIC,f,o)
+#define ACPI_MADT10_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_X2APIC_NMI,f,o)
/*
@@ -292,12 +315,14 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[] =
*
******************************************************************************/
+/* ACPI 1.0 FADT (Version 1) */
+
ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[] =
{
{ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Facs), "FACS Address"},
{ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Dsdt), "DSDT Address"},
{ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Model), "Model"},
- {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (PreferredProfile), "PM Profile"},
+ {ACPI_DMT_FADTPM, ACPI_FADT_OFFSET (PreferredProfile), "PM Profile"},
{ACPI_DMT_UINT16, ACPI_FADT_OFFSET (SciInterrupt), "SCI Interrupt"},
{ACPI_DMT_UINT32, ACPI_FADT_OFFSET (SmiCommand), "SMI Command Port"},
{ACPI_DMT_UINT8, ACPI_FADT_OFFSET (AcpiEnable), "ACPI Enable Value"},
@@ -329,46 +354,64 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[] =
{ACPI_DMT_UINT8, ACPI_FADT_OFFSET (DayAlarm), "RTC Day Alarm Index"},
{ACPI_DMT_UINT8, ACPI_FADT_OFFSET (MonthAlarm), "RTC Month Alarm Index"},
{ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Century), "RTC Century Index"},
- {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (BootFlags), "Boot Architecture Flags"},
+ {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (BootFlags), "Boot Flags (decoded below)"},
+
+ /* Boot Architecture Flags byte 0 */
+
+ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "Legacy Devices Supported (V2)"},
+ {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "8042 Present on ports 60/64 (V2)"},
+ {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "VGA Not Present (V4)"},
+ {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "MSI Not Supported (V4)"},
+ {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "PCIe ASPM Not Supported (V4)"},
+
{ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Reserved), "Reserved"},
{ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Flags), "Flags (decoded below)"},
/* Flags byte 0 */
- {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,0), "WBINVD is operational"},
- {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,0), "WBINVD does not invalidate"},
- {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,0), "All CPUs support C1"},
- {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,0), "C2 works on MP system"},
- {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (Flags,0), "Power button is generic"},
- {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (Flags,0), "Sleep button is generic"},
- {ACPI_DMT_FLAG6, ACPI_FADT_FLAG_OFFSET (Flags,0), "RTC wakeup not fixed"},
- {ACPI_DMT_FLAG7, ACPI_FADT_FLAG_OFFSET (Flags,0), "RTC wakeup/S4 not possible"},
+ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,0), "WBINVD instruction is operational (V1)"},
+ {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,0), "WBINVD flushes all caches (V1)"},
+ {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,0), "All CPUs support C1 (V1)"},
+ {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,0), "C2 works on MP system (V1)"},
+ {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (Flags,0), "Control Method Power Button (V1)"},
+ {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (Flags,0), "Control Method Sleep Button (V1)"},
+ {ACPI_DMT_FLAG6, ACPI_FADT_FLAG_OFFSET (Flags,0), "RTC wake not in fixed reg space (V1)"},
+ {ACPI_DMT_FLAG7, ACPI_FADT_FLAG_OFFSET (Flags,0), "RTC can wake system from S4 (V1)"},
/* Flags byte 1 */
- {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,1), "32-bit PM Timer"},
- {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,1), "Docking Supported"},
+ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,1), "32-bit PM Timer (V1)"},
+ {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,1), "Docking Supported (V1)"},
+ {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,1), "Reset Register Supported (V2)"},
+ {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,1), "Sealed Case (V3)"},
+ {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (Flags,1), "Headless - No Video (V3)"},
+ {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (Flags,1), "Use native instr after SLP_TYPx (V3)"},
+ {ACPI_DMT_FLAG6, ACPI_FADT_FLAG_OFFSET (Flags,1), "PCIEXP_WAK Bits Supported (V4)"},
+ {ACPI_DMT_FLAG7, ACPI_FADT_FLAG_OFFSET (Flags,1), "Use Platform Timer (V4)"},
+
+ /* Flags byte 2 */
+
+ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,2), "RTC_STS valid on S4 wake (V4)"},
+ {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,2), "Remote Power-on capable (V4)"},
+ {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,2), "Use APIC Cluster Model (V4)"},
+ {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,2), "Use APIC Physical Destination Mode (V4)"},
{ACPI_DMT_EXIT, 0, NULL}
};
-/* ACPI 2.0+ Extensions */
+/* ACPI 1.0 MS Extensions (FADT version 2) */
ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[] =
{
- {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,1), "Reset Register Supported"},
- {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,1), "Sealed Case"},
- {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (Flags,1), "Headless - No Video"},
- {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (Flags,1), "Native instr after SLP_TYP"},
- {ACPI_DMT_FLAG6, ACPI_FADT_FLAG_OFFSET (Flags,1), "PCIEXP_WAK Supported"},
- {ACPI_DMT_FLAG7, ACPI_FADT_FLAG_OFFSET (Flags,1), "Use Platform Timer"},
-
- /* Flags byte 2 */
+ {ACPI_DMT_GAS, ACPI_FADT_OFFSET (ResetRegister), "Reset Register"},
+ {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (ResetValue), "Value to cause reset"},
+ {ACPI_DMT_UINT24, ACPI_FADT_OFFSET (Reserved4[0]), "Reserved"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
- {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,2), "RTC_STS valid after S4"},
- {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,2), "Remote Power-on capable"},
- {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,2), "APIC Cluster Model"},
- {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,2), "APIC Physical Dest Mode"},
+/* ACPI 2.0+ Extensions (FADT version 3+) */
+ACPI_DMTABLE_INFO AcpiDmTableInfoFadt3[] =
+{
{ACPI_DMT_GAS, ACPI_FADT_OFFSET (ResetRegister), "Reset Register"},
{ACPI_DMT_UINT8, ACPI_FADT_OFFSET (ResetValue), "Value to cause reset"},
{ACPI_DMT_UINT24, ACPI_FADT_OFFSET (Reserved4[0]), "Reserved"},
@@ -396,11 +439,11 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[] =
*
******************************************************************************/
-/* Common sub-table header (one per sub-table) */
+/* Common Subtable header (one per Subtable) */
ACPI_DMTABLE_INFO AcpiDmTableInfoAsfHdr[] =
{
- {ACPI_DMT_UINT8, ACPI_ASF0_OFFSET (Header.Type), "Sub-Table Type"},
+ {ACPI_DMT_ASF, ACPI_ASF0_OFFSET (Header.Type), "Subtable Type"},
{ACPI_DMT_UINT8, ACPI_ASF0_OFFSET (Header.Reserved), "Reserved"},
{ACPI_DMT_UINT16, ACPI_ASF0_OFFSET (Header.Length), "Length"},
{ACPI_DMT_EXIT, 0, NULL}
@@ -496,6 +539,20 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf4[] =
/*******************************************************************************
*
+ * BERT - Boot Error Record table
+ *
+ ******************************************************************************/
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoBert[] =
+{
+ {ACPI_DMT_UINT32, ACPI_BERT_OFFSET (RegionLength), "Boot Error Region Length"},
+ {ACPI_DMT_UINT64, ACPI_BERT_OFFSET (Address), "Boot Error Region Address"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+
+/*******************************************************************************
+ *
* BOOT - Simple Boot Flag Table
*
******************************************************************************/
@@ -522,7 +579,7 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoCpep[] =
ACPI_DMTABLE_INFO AcpiDmTableInfoCpep0[] =
{
- {ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Type), "Sub-Table Type"},
+ {ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Type), "Subtable Type"},
{ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Length), "Length"},
{ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Id), "Processor ID"},
{ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Eid), "Processor EID"},
@@ -555,17 +612,16 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoDbgp[] =
ACPI_DMTABLE_INFO AcpiDmTableInfoDmar[] =
{
{ACPI_DMT_UINT8, ACPI_DMAR_OFFSET (Width), "Host Address Width"},
+ {ACPI_DMT_UINT8, ACPI_DMAR_OFFSET (Flags), "Flags"},
{ACPI_DMT_EXIT, 0, NULL}
};
-/* Common sub-table header (one per sub-table) */
+/* Common Subtable header (one per Subtable) */
ACPI_DMTABLE_INFO AcpiDmTableInfoDmarHdr[] =
{
- {ACPI_DMT_DMAR, ACPI_DMAR0_OFFSET (Header.Type), "Sub-Table Type"},
+ {ACPI_DMT_DMAR, ACPI_DMAR0_OFFSET (Header.Type), "Subtable Type"},
{ACPI_DMT_UINT16, ACPI_DMAR0_OFFSET (Header.Length), "Length"},
- {ACPI_DMT_UINT8, ACPI_DMAR0_OFFSET (Header.Flags), "Flags"},
- {ACPI_DMT_UINT24, ACPI_DMAR0_OFFSET (Header.Reserved[0]), "Reserved"},
{ACPI_DMT_EXIT, 0, NULL}
};
@@ -575,30 +631,46 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoDmarScope[] =
{
{ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (EntryType), "Device Scope Entry Type"},
{ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (Length), "Entry Length"},
- {ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (Segment), "PCI Segment Number"},
+ {ACPI_DMT_UINT16, ACPI_DMARS_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (EnumerationId), "Enumeration ID"},
{ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (Bus), "PCI Bus Number"},
{ACPI_DMT_EXIT, 0, NULL}
};
-/* DMAR sub-tables */
+/* DMAR Subtables */
/* 0: Hardware Unit Definition */
ACPI_DMTABLE_INFO AcpiDmTableInfoDmar0[] =
{
+ {ACPI_DMT_UINT8, ACPI_DMAR0_OFFSET (Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_DMAR0_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT16, ACPI_DMAR0_OFFSET (Segment), "PCI Segment Number"},
{ACPI_DMT_UINT64, ACPI_DMAR0_OFFSET (Address), "Register Base Address"},
{ACPI_DMT_EXIT, 0, NULL}
};
-/* 1: Reserved Memory Defininition */
+/* 1: Reserved Memory Definition */
ACPI_DMTABLE_INFO AcpiDmTableInfoDmar1[] =
{
- {ACPI_DMT_UINT64, ACPI_DMAR1_OFFSET (Address), "Base Address"},
+ {ACPI_DMT_UINT16, ACPI_DMAR1_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT16, ACPI_DMAR1_OFFSET (Segment), "PCI Segment Number"},
+ {ACPI_DMT_UINT64, ACPI_DMAR1_OFFSET (BaseAddress), "Base Address"},
{ACPI_DMT_UINT64, ACPI_DMAR1_OFFSET (EndAddress), "End Address (limit)"},
{ACPI_DMT_EXIT, 0, NULL}
};
+/* 2: Root Port ATS Capability Definition */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoDmar2[] =
+{
+ {ACPI_DMT_UINT8, ACPI_DMAR2_OFFSET (Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_DMAR2_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT16, ACPI_DMAR2_OFFSET (Segment), "PCI Segment Number"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
/*******************************************************************************
*
@@ -619,6 +691,236 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoEcdt[] =
/*******************************************************************************
*
+ * EINJ - Error Injection table
+ *
+ ******************************************************************************/
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoEinj[] =
+{
+ {ACPI_DMT_UINT32, ACPI_EINJ_OFFSET (HeaderLength), "Injection Header Length"},
+ {ACPI_DMT_UINT32, ACPI_EINJ_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_EINJ_OFFSET (Entries), "Injection Entry Count"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoEinj0[] =
+{
+ {ACPI_DMT_UINT8, ACPI_EINJ0_OFFSET (Action), "Action"},
+ {ACPI_DMT_UINT8, ACPI_EINJ0_OFFSET (Instruction), "Instruction"},
+ {ACPI_DMT_UINT8, ACPI_EINJ0_OFFSET (Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_EINJ0_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_GAS, ACPI_EINJ0_OFFSET (RegisterRegion), "Register Region"},
+ {ACPI_DMT_UINT64, ACPI_EINJ0_OFFSET (Value), "Value"},
+ {ACPI_DMT_UINT64, ACPI_EINJ0_OFFSET (Mask), "Mask"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+
+/*******************************************************************************
+ *
+ * ERST - Error Record Serialization table
+ *
+ ******************************************************************************/
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoErst[] =
+{
+ {ACPI_DMT_UINT32, ACPI_ERST_OFFSET (HeaderLength), "Serialization Header Length"},
+ {ACPI_DMT_UINT32, ACPI_ERST_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_ERST_OFFSET (Entries), "Instruction Entry Count"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+
+/*******************************************************************************
+ *
+ * HEST - Hardware Error Source table
+ *
+ ******************************************************************************/
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest[] =
+{
+ {ACPI_DMT_UINT32, ACPI_HEST_OFFSET (ErrorSourceCount), "Error Source Count"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* HEST Subtables */
+
+/* 0: XPF Machine Check Exception */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest0[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST0_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT16, ACPI_HEST0_OFFSET (SourceId), "Source Id"},
+ {ACPI_DMT_UINT16, ACPI_HEST0_OFFSET (ConfigWriteEnable), "Configuration Write Enable"},
+ {ACPI_DMT_UINT8, ACPI_HEST0_OFFSET (Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_HEST0_OFFSET (Reserved1), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_HEST0_OFFSET (RecordsToPreAllocate), "Records To Preallocate"},
+ {ACPI_DMT_UINT32, ACPI_HEST0_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record"},
+ {ACPI_DMT_UINT64, ACPI_HEST0_OFFSET (GlobalCapabilityData), "Global Capability Data"},
+ {ACPI_DMT_UINT64, ACPI_HEST0_OFFSET (GlobalControlData), "Global Control Data"},
+ {ACPI_DMT_UINT8, ACPI_HEST0_OFFSET (NumHardwareBanks), "Num Hardware Banks"},
+ {ACPI_DMT_UINT56, ACPI_HEST0_OFFSET (Reserved2), "Reserved"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 1: XPF Corrected Machine Check */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest1[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST1_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT16, ACPI_HEST1_OFFSET (SourceId), "Source Id"},
+ {ACPI_DMT_UINT16, ACPI_HEST1_OFFSET (ConfigWriteEnable), "Configuration Write Enable"},
+ {ACPI_DMT_UINT8, ACPI_HEST1_OFFSET (Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_HEST1_OFFSET (Enabled), "Enabled"},
+ {ACPI_DMT_UINT32, ACPI_HEST1_OFFSET (RecordsToPreAllocate), "Records To Preallocate"},
+ {ACPI_DMT_UINT32, ACPI_HEST1_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record"},
+ {ACPI_DMT_HESTNTFY, ACPI_HEST1_OFFSET (Notify), "Notify"},
+ {ACPI_DMT_UINT8, ACPI_HEST1_OFFSET (NumHardwareBanks), "Num Hardware Banks"},
+ {ACPI_DMT_UINT24, ACPI_HEST1_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 3: XPF Non-Maskable Interrupt */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest3[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST3_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT16, ACPI_HEST3_OFFSET (SourceId), "Source Id"},
+ {ACPI_DMT_UINT32, ACPI_HEST3_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_HEST3_OFFSET (RecordsToPreAllocate), "Records To Preallocate"},
+ {ACPI_DMT_UINT32, ACPI_HEST3_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record"},
+ {ACPI_DMT_UINT32, ACPI_HEST3_OFFSET (MaxRawDataLength), "Max Raw Data Length"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 4: IPF Corrected Machine Check */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest4[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST4_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT8, ACPI_HEST4_OFFSET (Enabled), "Enabled"},
+ {ACPI_DMT_UINT8, ACPI_HEST4_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 5: IPF Corrected Platform Error */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest5[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST5_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT8, ACPI_HEST5_OFFSET (Enabled), "Enabled"},
+ {ACPI_DMT_UINT8, ACPI_HEST5_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 6: PCI Express Root Port AER */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest6[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST6_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.SourceId), "Source Id"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.ConfigWriteEnable), "Configuration Write Enable"},
+ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Enabled), "Enabled"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.RecordsToPreAllocate), "Records To Preallocate"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.MaxSectionsPerRecord), "Max Sections Per Record"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.Bus), "Bus"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Device), "Device"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Function), "Function"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.DeviceControl), "DeviceControl"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableErrorMask), "Uncorrectable Error Mask"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableErrorSeverity), "Uncorrectable Error Severity"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.CorrectableErrorMask), "Correctable Error Mask"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.AdvancedErrorCapabilities), "Advanced Error Capabilities"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (RootErrorCommand), "Root Error Command"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 7: PCI Express AER (AER Endpoint) */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest7[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST6_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.SourceId), "Source Id"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.ConfigWriteEnable), "Configuration Write Enable"},
+ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Enabled), "Enabled"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.RecordsToPreAllocate), "Records To Preallocate"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.MaxSectionsPerRecord), "Max Sections Per Record"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.Bus), "Bus"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Device), "Device"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Function), "Function"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.DeviceControl), "DeviceControl"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableErrorMask), "Uncorrectable Error Mask"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableErrorSeverity), "Uncorrectable Error Severity"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.CorrectableErrorMask), "Correctable Error Mask"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.AdvancedErrorCapabilities), "Advanced Error Capabilities"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 8: PCI Express/PCI-X Bridge AER */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest8[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST6_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.SourceId), "Source Id"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.ConfigWriteEnable), "Configuration Write Enable"},
+ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Flags), "Flags"},
+ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Enabled), "Enabled"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.RecordsToPreAllocate), "Records To Preallocate"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.MaxSectionsPerRecord), "Max Sections Per Record"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.Bus), "Bus"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Device), "Device"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Function), "Function"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.DeviceControl), "DeviceControl"},
+ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableErrorMask), "Uncorrectable Error Mask"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableErrorSeverity), "Uncorrectable Error Severity"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.CorrectableErrorMask), "Correctable Error Mask"},
+ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.AdvancedErrorCapabilities), "Advanced Error Capabilities"},
+ {ACPI_DMT_UINT32, ACPI_HEST8_OFFSET (SecondaryUncorrectableErrorMask), "2nd Uncorrectable Err Mask"},
+ {ACPI_DMT_UINT32, ACPI_HEST8_OFFSET (SecondaryUncorrectableErrorSeverity), "2nd Uncorrectable Err Severity"},
+ {ACPI_DMT_UINT32, ACPI_HEST8_OFFSET (SecondaryAdvancedCapabilities), "2nd Advanced Capabilities"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 9: Generic Hardware Error Source */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHest9[] =
+{
+ {ACPI_DMT_HEST, ACPI_HEST9_OFFSET (Header.Type), "Subtable Type"},
+ {ACPI_DMT_UINT16, ACPI_HEST9_OFFSET (SourceId), "Source Id"},
+ {ACPI_DMT_UINT16, ACPI_HEST9_OFFSET (RelatedSourceId), "Related Source Id"},
+ {ACPI_DMT_UINT8, ACPI_HEST9_OFFSET (ConfigWriteEnable), "Configuration Write Enable"},
+ {ACPI_DMT_UINT8, ACPI_HEST9_OFFSET (Enabled), "Enabled"},
+ {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (RecordsToPreAllocate), "Records To Preallocate"},
+ {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record"},
+ {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (MaxRawDataLength), "Max Raw Data Length"},
+ {ACPI_DMT_GAS, ACPI_HEST9_OFFSET (ErrorStatusAddress), "Error Status Address"},
+ {ACPI_DMT_HESTNTFY, ACPI_HEST9_OFFSET (Notify), "Notify"},
+ {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (ErrorStatusBlockLength), "Error Status Block Length"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoHestNotify[10] =
+{
+ {ACPI_DMT_HESTNTYP, ACPI_HESTN_OFFSET (Type), "Notify Type"},
+ {ACPI_DMT_UINT8, ACPI_HESTN_OFFSET (Length), "Notify Length"},
+ {ACPI_DMT_UINT16, ACPI_HESTN_OFFSET (ConfigWriteEnable), "Configuration Write Enable"},
+ {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (PollInterval), "PollInterval"},
+ {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (Vector), "Vector"},
+ {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (PollingThresholdValue), "Polling Threshold Value"},
+ {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (PollingThresholdWindow), "Polling Threshold Window"},
+ {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (ErrorThresholdValue), "Error Threshold Value"},
+ {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (ErrorThresholdWindow), "Error Threshold Window"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+
+/*******************************************************************************
+ *
* HPET - High Precision Event Timer table
*
******************************************************************************/
@@ -651,16 +953,16 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[] =
{ACPI_DMT_EXIT, 0, NULL}
};
-/* Common sub-table header (one per sub-table) */
+/* Common Subtable header (one per Subtable) */
ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[] =
{
- {ACPI_DMT_MADT, ACPI_MADTH_OFFSET (Type), "Sub-Table Type"},
+ {ACPI_DMT_MADT, ACPI_MADTH_OFFSET (Type), "Subtable Type"},
{ACPI_DMT_UINT8, ACPI_MADTH_OFFSET (Length), "Length"},
{ACPI_DMT_EXIT, 0, NULL}
};
-/* MADT sub-tables */
+/* MADT Subtables */
/* 0: processor APIC */
@@ -772,10 +1074,35 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[] =
{ACPI_DMT_EXIT, 0, NULL}
};
+/* 9: Processor Local X2_APIC (07/2008) */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoMadt9[] =
+{
+ {ACPI_DMT_UINT16, ACPI_MADT9_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_MADT9_OFFSET (LocalApicId), "Processor x2Apic ID"},
+ {ACPI_DMT_UINT32, ACPI_MADT9_OFFSET (LapicFlags), "Flags (decoded below)"},
+ {ACPI_DMT_FLAG0, ACPI_MADT9_FLAG_OFFSET (LapicFlags,0), "Processor Enabled"},
+ {ACPI_DMT_UINT32, ACPI_MADT9_OFFSET (Uid), "Processor UID"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 10: Local X2_APIC NMI (07/2008) */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoMadt10[] =
+{
+ {ACPI_DMT_UINT16, ACPI_MADT10_OFFSET (IntiFlags), "Flags (decoded below)"},
+ {ACPI_DMT_FLAGS0, ACPI_MADT10_FLAG_OFFSET (IntiFlags,0), "Polarity"},
+ {ACPI_DMT_FLAGS2, ACPI_MADT10_FLAG_OFFSET (IntiFlags,0), "Trigger Mode"},
+ {ACPI_DMT_UINT32, ACPI_MADT10_OFFSET (Uid), "Processor UID"},
+ {ACPI_DMT_UINT8, ACPI_MADT10_OFFSET (Lint), "Interrupt Input LINT"},
+ {ACPI_DMT_UINT24, ACPI_MADT10_OFFSET (Reserved[0]), "Reserved"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
/*******************************************************************************
*
- * MCFG - PCI Memory Mapped Configuration table and sub-table
+ * MCFG - PCI Memory Mapped Configuration table and Subtable
*
******************************************************************************/
@@ -813,6 +1140,18 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[] =
/*******************************************************************************
*
+ * SLIC - Software Licensing Description Table. NOT FULLY IMPLEMENTED
+ *
+ ******************************************************************************/
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[] =
+{
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+
+/*******************************************************************************
+ *
* SLIT - System Locality Information Table
*
******************************************************************************/
@@ -883,7 +1222,7 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[] =
/*******************************************************************************
*
- * SRAT - System Resource Affinity Table and sub-tables
+ * SRAT - System Resource Affinity Table and Subtables
*
******************************************************************************/
@@ -894,10 +1233,21 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[] =
{ACPI_DMT_EXIT, 0, NULL}
};
+/* Common Subtable header (one per Subtable) */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoSratHdr[] =
+{
+ {ACPI_DMT_SRAT, ACPI_SRATH_OFFSET (Type), "Subtable Type"},
+ {ACPI_DMT_UINT8, ACPI_SRATH_OFFSET (Length), "Length"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* SRAT Subtables */
+
+/* 0: Processor Local APIC/SAPIC Affinity */
+
ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[] =
{
- {ACPI_DMT_SRAT, ACPI_SRAT0_OFFSET (Header.Type), "Sub-Table Type"},
- {ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (Header.Length), "Length"},
{ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (ProximityDomainLo), "Proximity Domain Low(8)"},
{ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (ApicId), "Apic ID"},
{ACPI_DMT_UINT32, ACPI_SRAT0_OFFSET (Flags), "Flags (decoded below)"},
@@ -908,20 +1258,32 @@ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[] =
{ACPI_DMT_EXIT, 0, NULL}
};
+/* 1: Memory Affinity */
+
ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[] =
{
- {ACPI_DMT_SRAT, ACPI_SRAT1_OFFSET (Header.Type), "Sub-Table Type"},
- {ACPI_DMT_UINT8, ACPI_SRAT1_OFFSET (Header.Length), "Length"},
{ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (ProximityDomain), "Proximity Domain"},
{ACPI_DMT_UINT16, ACPI_SRAT1_OFFSET (Reserved), "Reserved"},
{ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (BaseAddress), "Base Address"},
{ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (Length), "Address Length"},
- {ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (MemoryType), "Memory Type"},
+ {ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (Reserved1), "Reserved"},
{ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (Flags), "Flags (decoded below)"},
{ACPI_DMT_FLAG0, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Enabled"},
{ACPI_DMT_FLAG1, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Hot Pluggable"},
{ACPI_DMT_FLAG2, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Non-Volatile"},
- {ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (Reserved1), "Reserved"},
+ {ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (Reserved2), "Reserved"},
+ {ACPI_DMT_EXIT, 0, NULL}
+};
+
+/* 2: Processor Local X2_APIC Affinity (07/2008) */
+
+ACPI_DMTABLE_INFO AcpiDmTableInfoSrat2[] =
+{
+ {ACPI_DMT_UINT16, ACPI_SRAT2_OFFSET (Reserved), "Reserved"},
+ {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ProximityDomain), "Proximity Domain"},
+ {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ApicId), "Apic ID"},
+ {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (Flags), "Flags (decoded below)"},
+ {ACPI_DMT_FLAG0, ACPI_SRAT2_FLAG_OFFSET (Flags,0), "Enabled"},
{ACPI_DMT_EXIT, 0, NULL}
};
diff --git a/common/getopt.c b/common/getopt.c
index 2c6157596f51..54cff3ec2db4 100644
--- a/common/getopt.c
+++ b/common/getopt.c
@@ -2,7 +2,6 @@
/******************************************************************************
*
* Module Name: getopt
- * $Revision: 1.10 $
*
*****************************************************************************/
@@ -10,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -118,6 +117,9 @@
#include <stdio.h>
#include <string.h>
+#include "acpi.h"
+#include "accommon.h"
+#include "acapps.h"
#define ERR(szz,czz) if(AcpiGbl_Opterr){fprintf(stderr,"%s%s%c\n",argv[0],szz,czz);}
diff --git a/compiler/Makefile b/compiler/Makefile
new file mode 100644
index 000000000000..740842c02313
--- /dev/null
+++ b/compiler/Makefile
@@ -0,0 +1,128 @@
+
+
+PROG= iasl
+SRCS= aslcompilerparse.c aslcompilerlex.c aslanalyze.c aslcodegen.c \
+ aslcompile.c aslerror.c aslfiles.c asllength.c \
+ asllisting.c aslload.c asllookup.c aslmain.c aslmap.c aslopcodes.c \
+ asloperands.c aslresource.c aslrestype1.c aslrestype2.c aslstartup.c \
+ asltree.c aslutils.c asltransform.c aslfold.c aslstubs.c aslopt.c \
+ ../common/getopt.c \
+ ../utilities/utalloc.c \
+ ../utilities/utcache.c \
+ ../utilities/utcopy.c \
+ ../utilities/utdebug.c \
+ ../utilities/utdelete.c \
+ ../utilities/utglobal.c \
+ ../utilities/utinit.c \
+ ../utilities/utlock.c \
+ ../utilities/utobject.c \
+ ../utilities/utmisc.c \
+ ../utilities/utmath.c \
+ ../utilities/utmutex.c \
+ ../utilities/utresrc.c \
+ ../utilities/utstate.c \
+ ../utilities/utxface.c \
+ ../namespace/nsaccess.c \
+ ../namespace/nsalloc.c \
+ ../namespace/nsdump.c \
+ ../namespace/nsnames.c \
+ ../namespace/nsobject.c \
+ ../namespace/nsparse.c \
+ ../namespace/nssearch.c \
+ ../namespace/nsutils.c \
+ ../namespace/nswalk.c \
+ ../namespace/nsxfobj.c \
+ ../parser/psargs.c \
+ ../parser/psloop.c \
+ ../parser/psopcode.c \
+ ../parser/psparse.c \
+ ../parser/psscope.c \
+ ../parser/pstree.c \
+ ../parser/psutils.c \
+ ../parser/pswalk.c \
+ ../dispatcher/dswscope.c \
+ ../dispatcher/dswstate.c \
+ ../dispatcher/dsfield.c \
+ ../dispatcher/dsobject.c \
+ ../dispatcher/dsopcode.c \
+ ../dispatcher/dsutils.c \
+ ../dispatcher/dswexec.c \
+ ../dispatcher/dswload.c \
+ ../executer/exconvrt.c \
+ ../executer/excreate.c \
+ ../executer/exdump.c \
+ ../executer/exmisc.c \
+ ../executer/exmutex.c \
+ ../executer/exnames.c \
+ ../executer/exoparg1.c \
+ ../executer/exoparg2.c \
+ ../executer/exoparg3.c \
+ ../executer/exoparg6.c \
+ ../executer/exprep.c \
+ ../executer/exregion.c \
+ ../executer/exresnte.c \
+ ../executer/exresolv.c \
+ ../executer/exresop.c \
+ ../executer/exstore.c \
+ ../executer/exstoren.c \
+ ../executer/exstorob.c \
+ ../executer/exsystem.c \
+ ../executer/exutils.c \
+ ../common/adfile.c \
+ ../common/adisasm.c \
+ ../common/adwalk.c \
+ ../common/dmrestag.c \
+ ../common/dmtable.c \
+ ../common/dmtbinfo.c \
+ ../common/dmtbdump.c \
+ ../debugger/dbfileio.c \
+ ../disassembler/dmbuffer.c \
+ ../disassembler/dmnames.c \
+ ../disassembler/dmopcode.c \
+ ../disassembler/dmobject.c \
+ ../disassembler/dmresrc.c \
+ ../disassembler/dmresrcl.c \
+ ../disassembler/dmresrcs.c \
+ ../disassembler/dmutils.c \
+ ../disassembler/dmwalk.c \
+ ../tables/tbfadt.c \
+ ../tables/tbinstal.c \
+ ../tables/tbutils.c \
+ ../tables/tbxface.c \
+ ../osunixxf.c
+
+NOMAN= YES
+CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -I../include
+
+#YACC= yacc
+YACC= bison
+YFLAGS+= -v -d
+LEX= flex
+LFLAGS+= -i
+
+#.if $(YACC) == "bison"
+YFLAGS+= -y -pAslCompiler
+#.else
+#CFLAGS+= -D_USE_BERKELEY_YACC
+#.endif
+
+LDLIBS = -lpthread -lrt
+
+aslmain : $(patsubst %.c,%.o, $(SRCS))
+ $(CC) $(LDFLAGS) $(patsubst %.c,%.o, $(SRCS)) \
+ $(LOADLIBES) $(LDLIBS) -o iasl
+
+CLEANFILES= y.output y.tab.c y.tab.h aslcompiler.y.h \
+ aslcompilerparse.c aslcompilerlex.c iasl
+
+aslcompilerparse.c: aslcompiler.y
+ ${YACC} ${YFLAGS} aslcompiler.y
+ cp y.tab.c aslcompilerparse.c
+ cp y.tab.h aslcompiler.y.h
+
+aslcompilerlex.c: aslcompiler.l
+ ${LEX} ${LFLAGS} -PAslCompiler -oaslcompilerlex.c aslcompiler.l
+
+clean :
+ rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS))
+
diff --git a/compiler/aslanalyze.c b/compiler/aslanalyze.c
index a64f0baf546e..d44adda8ff00 100644
--- a/compiler/aslanalyze.c
+++ b/compiler/aslanalyze.c
@@ -2,7 +2,6 @@
/******************************************************************************
*
* Module Name: aslanalyze.c - check for semantic errors
- * $Revision: 1.115 $
*
*****************************************************************************/
@@ -10,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -121,8 +120,6 @@
#include "acparser.h"
#include "amlcode.h"
-#include <ctype.h>
-
#define _COMPONENT ACPI_COMPILER
ACPI_MODULE_NAME ("aslanalyze")
@@ -179,6 +176,10 @@ static UINT32
AnGetInternalMethodReturnType (
ACPI_PARSE_OBJECT *Op);
+BOOLEAN
+AnIsResultUsed (
+ ACPI_PARSE_OBJECT *Op);
+
/*******************************************************************************
*
@@ -272,7 +273,11 @@ AnMapArgTypeToBtype (
return (ACPI_BTYPE_MUTEX);
case ARGI_DDBHANDLE:
- return (ACPI_BTYPE_DDB_HANDLE);
+ /*
+ * DDBHandleObject := SuperName
+ * ACPI_BTYPE_REFERENCE: Index reference as parameter of Load/Unload
+ */
+ return (ACPI_BTYPE_DDB_HANDLE | ACPI_BTYPE_REFERENCE);
/* Interchangeable types */
/*
@@ -682,7 +687,15 @@ AnCheckForReservedName (
return (ACPI_NOT_RESERVED_NAME);
}
- AslError (ASL_ERROR, ASL_MSG_RESERVED_WORD, Op, Op->Asl.ExternalName);
+ /*
+ * Was not actually emitted by the compiler. This is a special case,
+ * however. If the ASL code being compiled was the result of a
+ * dissasembly, it may possibly contain valid compiler-emitted names
+ * of the form "_T_x". We don't want to issue an error or even a
+ * warning and force the user to manually change the names. So, we
+ * will issue a remark instead.
+ */
+ AslError (ASL_REMARK, ASL_MSG_COMPILER_RESERVED, Op, Op->Asl.ExternalName);
return (ACPI_COMPILER_RESERVED_NAME);
}
@@ -718,6 +731,8 @@ AnCheckForReservedMethod (
ASL_METHOD_INFO *MethodInfo)
{
UINT32 Index;
+ UINT32 RequiredArgsCurrent;
+ UINT32 RequiredArgsOld;
/* Check for a match against the reserved name list */
@@ -754,15 +769,23 @@ AnCheckForReservedMethod (
Gbl_ReservedMethods++;
- /* Matched a reserved method name */
+ /*
+ * Matched a reserved method name
+ *
+ * Validate the ASL-defined argument count. Allow two different legal
+ * arg counts.
+ */
+ RequiredArgsCurrent = ReservedMethods[Index].NumArguments & 0x0F;
+ RequiredArgsOld = ReservedMethods[Index].NumArguments >> 4;
- if (MethodInfo->NumArguments != ReservedMethods[Index].NumArguments)
+ if ((MethodInfo->NumArguments != RequiredArgsCurrent) &&
+ (MethodInfo->NumArguments != RequiredArgsOld))
{
sprintf (MsgBuffer, "%s requires %d",
ReservedMethods[Index].Name,
- ReservedMethods[Index].NumArguments);
+ RequiredArgsCurrent);
- if (MethodInfo->NumArguments > ReservedMethods[Index].NumArguments)
+ if (MethodInfo->NumArguments > RequiredArgsCurrent)
{
AslError (ASL_WARNING, ASL_MSG_RESERVED_ARG_COUNT_HI, Op,
MsgBuffer);
@@ -956,9 +979,9 @@ AnMethodAnalysisWalkBegin (
MethodInfo->ValidArgTypes[ActualArgs] =
AnMapObjTypeToBtype (NextType);
NextType->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG;
+ ActualArgs++;
}
- ActualArgs++;
NextType = NextType->Asl.Next;
}
@@ -1010,10 +1033,10 @@ AnMethodAnalysisWalkBegin (
if (!MethodInfo)
{
/*
- * Probably was an error in the method declaration,
- * no additional error here
+ * Local was used outside a control method, or there was an error
+ * in the method declaration.
*/
- ACPI_WARNING ((AE_INFO, "%p, No parent method", Op));
+ AslError (ASL_REMARK, ASL_MSG_LOCAL_OUTSIDE_METHOD, Op, Op->Asl.ExternalName);
return (AE_ERROR);
}
@@ -1054,10 +1077,10 @@ AnMethodAnalysisWalkBegin (
if (!MethodInfo)
{
/*
- * Probably was an error in the method declaration,
- * no additional error here
+ * Arg was used outside a control method, or there was an error
+ * in the method declaration.
*/
- ACPI_WARNING ((AE_INFO, "%p, No parent method", Op));
+ AslError (ASL_REMARK, ASL_MSG_LOCAL_OUTSIDE_METHOD, Op, Op->Asl.ExternalName);
return (AE_ERROR);
}
@@ -1705,6 +1728,30 @@ AnOperandTypecheckWalkEnd (
RuntimeArgTypes = OpInfo->RuntimeArgs;
OpcodeClass = OpInfo->Class;
+#ifdef ASL_ERROR_NAMED_OBJECT_IN_WHILE
+ /*
+ * Update 11/2008: In practice, we can't perform this check. A simple
+ * analysis is not sufficient. Also, it can cause errors when compiling
+ * disassembled code because of the way Switch operators are implemented
+ * (a While(One) loop with a named temp variable created within.)
+ */
+
+ /*
+ * If we are creating a named object, check if we are within a while loop
+ * by checking if the parent is a WHILE op. This is a simple analysis, but
+ * probably sufficient for many cases.
+ *
+ * Allow Scope(), Buffer(), and Package().
+ */
+ if (((OpcodeClass == AML_CLASS_NAMED_OBJECT) && (Op->Asl.AmlOpcode != AML_SCOPE_OP)) ||
+ ((OpcodeClass == AML_CLASS_CREATE) && (OpInfo->Flags & AML_NSNODE)))
+ {
+ if (Op->Asl.Parent->Asl.AmlOpcode == AML_WHILE_OP)
+ {
+ AslError (ASL_ERROR, ASL_MSG_NAMED_OBJECT_IN_WHILE, Op, NULL);
+ }
+ }
+#endif
/*
* Special case for control opcodes IF/RETURN/WHILE since they
@@ -2074,6 +2121,7 @@ AnOtherSemanticAnalysisWalkBegin (
{
case PARSEOP_ACQUIRE:
case PARSEOP_WAIT:
+ case PARSEOP_LOADTABLE:
break;
default:
diff --git a/compiler/aslcodegen.c b/compiler/aslcodegen.c
index 64ea11e7d381..af3f292e3f23 100644
--- a/compiler/aslcodegen.c
+++ b/compiler/aslcodegen.c
@@ -2,7 +2,6 @@
/******************************************************************************
*
* Module Name: aslcodegen - AML code generation
- * $Revision: 1.62 $
*
*****************************************************************************/
@@ -10,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -235,24 +234,24 @@ CgAmlWriteWalk (
DbgPrint (ASL_TREE_OUTPUT, " ");
}
- DbgPrint (ASL_TREE_OUTPUT,
- "%08X %04X %04X %01X %04X %04X %04X %04X %08X %08X %08X %08X %08X %04X %02d %02d\n",
- /* 1 */ (UINT32) Op->Asl.Value.Integer,
- /* 2 */ Op->Asl.ParseOpcode,
- /* 3 */ Op->Asl.AmlOpcode,
- /* 4 */ Op->Asl.AmlOpcodeLength,
- /* 5 */ Op->Asl.AmlPkgLenBytes,
- /* 6 */ Op->Asl.AmlLength,
- /* 7 */ Op->Asl.AmlSubtreeLength,
- /* 8 */ Op->Asl.Parent ? Op->Asl.Parent->Asl.AmlSubtreeLength : 0,
- /* 9 */ Op,
- /* 10 */ Op->Asl.Child,
- /* 11 */ Op->Asl.Parent,
- /* 12 */ Op->Asl.CompileFlags,
- /* 13 */ Op->Asl.AcpiBtype,
- /* 14 */ Op->Asl.FinalAmlLength,
- /* 15 */ Op->Asl.Column,
- /* 16 */ Op->Asl.LineNumber);
+ DbgPrint (ASL_TREE_OUTPUT,
+ "%08X %04X %04X %01X %04X %04X %04X %04X %08X %08X %08X %08X %08X %04X %02d %02d\n",
+ /* 1 */ (UINT32) Op->Asl.Value.Integer,
+ /* 2 */ Op->Asl.ParseOpcode,
+ /* 3 */ Op->Asl.AmlOpcode,
+ /* 4 */ Op->Asl.AmlOpcodeLength,
+ /* 5 */ Op->Asl.AmlPkgLenBytes,
+ /* 6 */ Op->Asl.AmlLength,
+ /* 7 */ Op->Asl.AmlSubtreeLength,
+ /* 8 */ Op->Asl.Parent ? Op->Asl.Parent->Asl.AmlSubtreeLength : 0,
+ /* 9 */ Op,
+ /* 10 */ Op->Asl.Child,
+ /* 11 */ Op->Asl.Parent,
+ /* 12 */ Op->Asl.CompileFlags,
+ /* 13 */ Op->Asl.AcpiBtype,
+ /* 14 */ Op->Asl.FinalAmlLength,
+ /* 15 */ Op->Asl.Column,
+ /* 16 */ Op->Asl.LineNumber);
/* Generate the AML for this node */
diff --git a/compiler/aslcompile.c b/compiler/aslcompile.c
index dfa839d26ed0..07de1fe63c9b 100644
--- a/compiler/aslcompile.c
+++ b/compiler/aslcompile.c
@@ -2,7 +2,6 @@
/******************************************************************************
*
* Module Name: aslcompile - top level compile module
- * $Revision: 1.97 $
*
*****************************************************************************/
@@ -10,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -132,6 +131,16 @@ static ACPI_STATUS
FlCheckForAscii (
ASL_FILE_INFO *FileInfo);
+void
+FlConsumeAnsiComment (
+ ASL_FILE_INFO *FileInfo,
+ ASL_FILE_STATUS *Status);
+
+void
+FlConsumeNewComment (
+ ASL_FILE_INFO *FileInfo,
+ ASL_FILE_STATUS *Status);
+
/*******************************************************************************
*
@@ -466,7 +475,7 @@ FlCheckForAscii (
/* Check for an ASCII character */
- if (!isascii (Byte))
+ if (!ACPI_IS_ASCII (Byte))
{
if (BadBytes < 10)
{
@@ -914,16 +923,6 @@ CmCleanupAndExit (
}
UtDisplaySummary (ASL_FILE_STDOUT);
-
- /*
- * Return non-zero exit code if there have been errors, unless the
- * global ignore error flag has been set
- */
- if ((Gbl_ExceptionCount[ASL_ERROR] > 0) && (!Gbl_IgnoreErrors))
- {
- exit (1);
- }
- exit (0);
}
diff --git a/compiler/aslcompiler.h b/compiler/aslcompiler.h
index 69640c08d80c..54162a7c5e7d 100644
--- a/compiler/aslcompiler.h
+++ b/compiler/aslcompiler.h
@@ -2,7 +2,6 @@
/******************************************************************************
*
* Module Name: aslcompiler.h - common include file for iASL
- * $Revision: 1.148 $
*
*****************************************************************************/
@@ -10,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -140,6 +139,7 @@
#include "acpi.h"
+#include "accommon.h"
#include "amlresrc.h"
#include "acdebug.h"
@@ -188,6 +188,16 @@ AslPushInputFileStack (
FILE *InputFile,
char *Filename);
+/*
+ * aslstartup - called from main
+ */
+ACPI_STATUS
+AslDoOnePathname (
+ char *Pathname);
+
+ACPI_STATUS
+AslDoOneFile (
+ char *Filename);
/*
* aslcompile - compile mainline
@@ -307,6 +317,10 @@ void
AePrintErrorLog (
UINT32 FileId);
+void
+AeClearErrorLog (
+ void);
+
ACPI_PHYSICAL_ADDRESS
AeLocalGetRootPointer (
void);
diff --git a/compiler/aslcompiler.l b/compiler/aslcompiler.l
index f64d98ac852c..3a52348c49f6 100644
--- a/compiler/aslcompiler.l
+++ b/compiler/aslcompiler.l
@@ -3,7 +3,6 @@
/******************************************************************************
*
* Module Name: aslcompiler.l - Flex input file
- * $Revision: 1.79 $
*
*****************************************************************************/
@@ -11,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -169,7 +168,8 @@ NamePathTail [.]{NameSeg}
%%
[ ] { count (0); }
-[\n] { count (0); }
+[\n] { count (0); } /* Handle files with both LF and CR/LF */
+[\r] { count (0); } /* termination on both Unix and Windows */
[ \t] { count (0); }
diff --git a/compiler/aslcompiler.y b/compiler/aslcompiler.y
index ff7dd81313d0..053574f21b4a 100644
--- a/compiler/aslcompiler.y
+++ b/compiler/aslcompiler.y
@@ -3,7 +3,6 @@
/******************************************************************************
*
* Module Name: aslcompiler.y - Bison input file (ASL grammar and actions)
- * $Revision: 1.105 $
*
*****************************************************************************/
@@ -11,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -129,6 +128,7 @@
#include <stdlib.h>
#include <string.h>
#include "acpi.h"
+#include "accommon.h"
#define _COMPONENT ACPI_COMPILER
ACPI_MODULE_NAME ("aslparse")
@@ -188,10 +188,10 @@ AslLocalAllocate (unsigned int Size);
/*! [Begin] no source code translation */
/*
- * These shift/reduce conflicts are expected. There should be zer0
+ * These shift/reduce conflicts are expected. There should be zero
* reduce/reduce conflicts.
*/
-%expect 64
+%expect 60
/*
@@ -794,7 +794,7 @@ ASLCode
;
DefinitionBlockTerm
- : PARSEOP_DEFINITIONBLOCK '(' {$$ = TrCreateLeafNode (PARSEOP_DEFINITIONBLOCK);}
+ : PARSEOP_DEFINITIONBLOCK '(' {$<n>$ = TrCreateLeafNode (PARSEOP_DEFINITIONBLOCK);}
String ','
String ','
ByteConst ','
@@ -1111,8 +1111,8 @@ Type6Opcode
;
IncludeTerm
- : PARSEOP_INCLUDE '(' {$$ = TrCreateLeafNode (PARSEOP_INCLUDE);}
- String ')' {$$ = TrLinkChildren ($<n>3,1,$4);FlOpenIncludeFile ($4);}
+ : PARSEOP_INCLUDE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_INCLUDE);}
+ String ')' {TrLinkChildren ($<n>3,1,$4);FlOpenIncludeFile ($4);}
TermList
IncludeEndTerm {$$ = TrLinkPeerNodes (3,$<n>3,$7,$8);}
;
@@ -1147,7 +1147,7 @@ ExternalTerm
BankFieldTerm
- : PARSEOP_BANKFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_BANKFIELD);}
+ : PARSEOP_BANKFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_BANKFIELD);}
NameString
NameStringItem
TermArgItem
@@ -1198,7 +1198,7 @@ AccessAsTerm
;
CreateBitFieldTerm
- : PARSEOP_CREATEBITFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_CREATEBITFIELD);}
+ : PARSEOP_CREATEBITFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CREATEBITFIELD);}
TermArg
TermArgItem
NameStringItem
@@ -1208,7 +1208,7 @@ CreateBitFieldTerm
;
CreateByteFieldTerm
- : PARSEOP_CREATEBYTEFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_CREATEBYTEFIELD);}
+ : PARSEOP_CREATEBYTEFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CREATEBYTEFIELD);}
TermArg
TermArgItem
NameStringItem
@@ -1218,7 +1218,7 @@ CreateByteFieldTerm
;
CreateDWordFieldTerm
- : PARSEOP_CREATEDWORDFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_CREATEDWORDFIELD);}
+ : PARSEOP_CREATEDWORDFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CREATEDWORDFIELD);}
TermArg
TermArgItem
NameStringItem
@@ -1228,7 +1228,7 @@ CreateDWordFieldTerm
;
CreateFieldTerm
- : PARSEOP_CREATEFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_CREATEFIELD);}
+ : PARSEOP_CREATEFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CREATEFIELD);}
TermArg
TermArgItem
TermArgItem
@@ -1239,7 +1239,7 @@ CreateFieldTerm
;
CreateQWordFieldTerm
- : PARSEOP_CREATEQWORDFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_CREATEQWORDFIELD);}
+ : PARSEOP_CREATEQWORDFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CREATEQWORDFIELD);}
TermArg
TermArgItem
NameStringItem
@@ -1249,7 +1249,7 @@ CreateQWordFieldTerm
;
CreateWordFieldTerm
- : PARSEOP_CREATEWORDFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_CREATEWORDFIELD);}
+ : PARSEOP_CREATEWORDFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CREATEWORDFIELD);}
TermArg
TermArgItem
NameStringItem
@@ -1259,7 +1259,7 @@ CreateWordFieldTerm
;
DataRegionTerm
- : PARSEOP_DATATABLEREGION '(' {$$ = TrCreateLeafNode (PARSEOP_DATATABLEREGION);}
+ : PARSEOP_DATATABLEREGION '(' {$<n>$ = TrCreateLeafNode (PARSEOP_DATATABLEREGION);}
NameString
TermArgItem
TermArgItem
@@ -1270,7 +1270,7 @@ DataRegionTerm
;
DeviceTerm
- : PARSEOP_DEVICE '(' {$$ = TrCreateLeafNode (PARSEOP_DEVICE);}
+ : PARSEOP_DEVICE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_DEVICE);}
NameString
')' '{'
ObjectList '}' {$$ = TrLinkChildren ($<n>3,2,TrSetNodeFlags ($4, NODE_IS_NAME_DECLARATION),$7);}
@@ -1279,7 +1279,7 @@ DeviceTerm
;
EventTerm
- : PARSEOP_EVENT '(' {$$ = TrCreateLeafNode (PARSEOP_EVENT);}
+ : PARSEOP_EVENT '(' {$<n>$ = TrCreateLeafNode (PARSEOP_EVENT);}
NameString
')' {$$ = TrLinkChildren ($<n>3,1,TrSetNodeFlags ($4, NODE_IS_NAME_DECLARATION));}
| PARSEOP_EVENT '('
@@ -1287,7 +1287,7 @@ EventTerm
;
FieldTerm
- : PARSEOP_FIELD '(' {$$ = TrCreateLeafNode (PARSEOP_FIELD);}
+ : PARSEOP_FIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_FIELD);}
NameString
',' AccessTypeKeyword
',' LockRuleKeyword
@@ -1299,7 +1299,7 @@ FieldTerm
;
FunctionTerm
- : PARSEOP_FUNCTION '(' {$$ = TrCreateLeafNode (PARSEOP_METHOD);}
+ : PARSEOP_FUNCTION '(' {$<n>$ = TrCreateLeafNode (PARSEOP_METHOD);}
NameString
OptionalParameterTypePackage
OptionalParameterTypesPackage
@@ -1313,7 +1313,7 @@ FunctionTerm
;
IndexFieldTerm
- : PARSEOP_INDEXFIELD '(' {$$ = TrCreateLeafNode (PARSEOP_INDEXFIELD);}
+ : PARSEOP_INDEXFIELD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_INDEXFIELD);}
NameString
NameStringItem
',' AccessTypeKeyword
@@ -1326,9 +1326,9 @@ IndexFieldTerm
;
MethodTerm
- : PARSEOP_METHOD '(' {$$ = TrCreateLeafNode (PARSEOP_METHOD);}
+ : PARSEOP_METHOD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_METHOD);}
NameString
- OptionalByteConstExpr {$$ = UtCheckIntegerRange ($5, 0, 7);}
+ OptionalByteConstExpr {UtCheckIntegerRange ($5, 0, 7);}
OptionalSerializeRuleKeyword
OptionalByteConstExpr
OptionalParameterTypePackage
@@ -1340,7 +1340,7 @@ MethodTerm
;
MutexTerm
- : PARSEOP_MUTEX '(' {$$ = TrCreateLeafNode (PARSEOP_MUTEX);}
+ : PARSEOP_MUTEX '(' {$<n>$ = TrCreateLeafNode (PARSEOP_MUTEX);}
NameString
',' ByteConstExpr
')' {$$ = TrLinkChildren ($<n>3,2,TrSetNodeFlags ($4, NODE_IS_NAME_DECLARATION),$6);}
@@ -1349,7 +1349,7 @@ MutexTerm
;
OpRegionTerm
- : PARSEOP_OPERATIONREGION '(' {$$ = TrCreateLeafNode (PARSEOP_OPERATIONREGION);}
+ : PARSEOP_OPERATIONREGION '(' {$<n>$ = TrCreateLeafNode (PARSEOP_OPERATIONREGION);}
NameString
',' OpRegionSpaceIdTerm
TermArgItem
@@ -1365,7 +1365,7 @@ OpRegionSpaceIdTerm
;
PowerResTerm
- : PARSEOP_POWERRESOURCE '(' {$$ = TrCreateLeafNode (PARSEOP_POWERRESOURCE);}
+ : PARSEOP_POWERRESOURCE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_POWERRESOURCE);}
NameString
',' ByteConstExpr
',' WordConstExpr
@@ -1376,7 +1376,7 @@ PowerResTerm
;
ProcessorTerm
- : PARSEOP_PROCESSOR '(' {$$ = TrCreateLeafNode (PARSEOP_PROCESSOR);}
+ : PARSEOP_PROCESSOR '(' {$<n>$ = TrCreateLeafNode (PARSEOP_PROCESSOR);}
NameString
',' ByteConstExpr
OptionalDWordConstExpr
@@ -1388,7 +1388,7 @@ ProcessorTerm
;
ThermalZoneTerm
- : PARSEOP_THERMALZONE '(' {$$ = TrCreateLeafNode (PARSEOP_THERMALZONE);}
+ : PARSEOP_THERMALZONE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_THERMALZONE);}
NameString
')' '{'
ObjectList '}' {$$ = TrLinkChildren ($<n>3,2,TrSetNodeFlags ($4, NODE_IS_NAME_DECLARATION),$7);}
@@ -1401,7 +1401,7 @@ ThermalZoneTerm
AliasTerm
- : PARSEOP_ALIAS '(' {$$ = TrCreateLeafNode (PARSEOP_ALIAS);}
+ : PARSEOP_ALIAS '(' {$<n>$ = TrCreateLeafNode (PARSEOP_ALIAS);}
NameString
NameStringItem
')' {$$ = TrLinkChildren ($<n>3,2,$4,TrSetNodeFlags ($5, NODE_IS_NAME_DECLARATION));}
@@ -1410,7 +1410,7 @@ AliasTerm
;
NameTerm
- : PARSEOP_NAME '(' {$$ = TrCreateLeafNode (PARSEOP_NAME);}
+ : PARSEOP_NAME '(' {$<n>$ = TrCreateLeafNode (PARSEOP_NAME);}
NameString
',' DataObject
')' {$$ = TrLinkChildren ($<n>3,2,TrSetNodeFlags ($4, NODE_IS_NAME_DECLARATION),$6);}
@@ -1419,7 +1419,7 @@ NameTerm
;
ScopeTerm
- : PARSEOP_SCOPE '(' {$$ = TrCreateLeafNode (PARSEOP_SCOPE);}
+ : PARSEOP_SCOPE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_SCOPE);}
NameString
')' '{'
ObjectList '}' {$$ = TrLinkChildren ($<n>3,2,TrSetNodeFlags ($4, NODE_IS_NAME_DECLARATION),$7);}
@@ -1444,7 +1444,7 @@ ContinueTerm
;
FatalTerm
- : PARSEOP_FATAL '(' {$$ = TrCreateLeafNode (PARSEOP_FATAL);}
+ : PARSEOP_FATAL '(' {$<n>$ = TrCreateLeafNode (PARSEOP_FATAL);}
ByteConstExpr
',' DWordConstExpr
TermArgItem
@@ -1458,7 +1458,7 @@ IfElseTerm
;
IfTerm
- : PARSEOP_IF '(' {$$ = TrCreateLeafNode (PARSEOP_IF);}
+ : PARSEOP_IF '(' {$<n>$ = TrCreateLeafNode (PARSEOP_IF);}
TermArg
')' '{'
TermList '}' {$$ = TrLinkChildren ($<n>3,2,$4,$7);}
@@ -1469,7 +1469,7 @@ IfTerm
ElseTerm
: {$$ = NULL;}
- | PARSEOP_ELSE '{' {$$ = TrCreateLeafNode (PARSEOP_ELSE);}
+ | PARSEOP_ELSE '{' {$<n>$ = TrCreateLeafNode (PARSEOP_ELSE);}
TermList '}' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_ELSE '{'
@@ -1478,11 +1478,11 @@ ElseTerm
| PARSEOP_ELSE
error {$$ = AslDoError(); yyclearin;}
- | PARSEOP_ELSEIF '(' {$$ = TrCreateLeafNode (PARSEOP_ELSE);}
- TermArg {$$ = TrCreateLeafNode (PARSEOP_IF);}
+ | PARSEOP_ELSEIF '(' {$<n>$ = TrCreateLeafNode (PARSEOP_ELSE);}
+ TermArg {$<n>$ = TrCreateLeafNode (PARSEOP_IF);}
')' '{'
- TermList '}' {$$ = TrLinkChildren ($<n>5,2,$4,$8);}
- ElseTerm {$$ = TrLinkPeerNode ($<n>5,$11);}
+ TermList '}' {TrLinkChildren ($<n>5,2,$4,$8);}
+ ElseTerm {TrLinkPeerNode ($<n>5,$11);}
{$$ = TrLinkChildren ($<n>3,1,$<n>5);}
| PARSEOP_ELSEIF '('
@@ -1493,7 +1493,7 @@ ElseTerm
;
LoadTerm
- : PARSEOP_LOAD '(' {$$ = TrCreateLeafNode (PARSEOP_LOAD);}
+ : PARSEOP_LOAD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_LOAD);}
NameString
RequiredTarget
')' {$$ = TrLinkChildren ($<n>3,2,$4,$5);}
@@ -1506,7 +1506,7 @@ NoOpTerm
;
NotifyTerm
- : PARSEOP_NOTIFY '(' {$$ = TrCreateLeafNode (PARSEOP_NOTIFY);}
+ : PARSEOP_NOTIFY '(' {$<n>$ = TrCreateLeafNode (PARSEOP_NOTIFY);}
SuperName
TermArgItem
')' {$$ = TrLinkChildren ($<n>3,2,$4,$5);}
@@ -1515,7 +1515,7 @@ NotifyTerm
;
ReleaseTerm
- : PARSEOP_RELEASE '(' {$$ = TrCreateLeafNode (PARSEOP_RELEASE);}
+ : PARSEOP_RELEASE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_RELEASE);}
SuperName
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_RELEASE '('
@@ -1523,7 +1523,7 @@ ReleaseTerm
;
ResetTerm
- : PARSEOP_RESET '(' {$$ = TrCreateLeafNode (PARSEOP_RESET);}
+ : PARSEOP_RESET '(' {$<n>$ = TrCreateLeafNode (PARSEOP_RESET);}
SuperName
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_RESET '('
@@ -1531,7 +1531,7 @@ ResetTerm
;
ReturnTerm
- : PARSEOP_RETURN '(' {$$ = TrCreateLeafNode (PARSEOP_RETURN);}
+ : PARSEOP_RETURN '(' {$<n>$ = TrCreateLeafNode (PARSEOP_RETURN);}
OptionalReturnArg
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_RETURN {$$ = TrLinkChildren (TrCreateLeafNode (PARSEOP_RETURN),1,TrCreateLeafNode (PARSEOP_ZERO));}
@@ -1540,7 +1540,7 @@ ReturnTerm
;
SignalTerm
- : PARSEOP_SIGNAL '(' {$$ = TrCreateLeafNode (PARSEOP_SIGNAL);}
+ : PARSEOP_SIGNAL '(' {$<n>$ = TrCreateLeafNode (PARSEOP_SIGNAL);}
SuperName
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_SIGNAL '('
@@ -1548,7 +1548,7 @@ SignalTerm
;
SleepTerm
- : PARSEOP_SLEEP '(' {$$ = TrCreateLeafNode (PARSEOP_SLEEP);}
+ : PARSEOP_SLEEP '(' {$<n>$ = TrCreateLeafNode (PARSEOP_SLEEP);}
TermArg
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_SLEEP '('
@@ -1556,7 +1556,7 @@ SleepTerm
;
StallTerm
- : PARSEOP_STALL '(' {$$ = TrCreateLeafNode (PARSEOP_STALL);}
+ : PARSEOP_STALL '(' {$<n>$ = TrCreateLeafNode (PARSEOP_STALL);}
TermArg
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_STALL '('
@@ -1564,7 +1564,7 @@ StallTerm
;
SwitchTerm
- : PARSEOP_SWITCH '(' {$$ = TrCreateLeafNode (PARSEOP_SWITCH);}
+ : PARSEOP_SWITCH '(' {$<n>$ = TrCreateLeafNode (PARSEOP_SWITCH);}
TermArg
')' '{'
CaseDefaultTermList '}'
@@ -1607,7 +1607,7 @@ CaseTermList
*/
CaseTerm
- : PARSEOP_CASE '(' {$$ = TrCreateLeafNode (PARSEOP_CASE);}
+ : PARSEOP_CASE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CASE);}
DataObject
')' '{'
TermList '}' {$$ = TrLinkChildren ($<n>3,2,$4,$7);}
@@ -1616,14 +1616,14 @@ CaseTerm
;
DefaultTerm
- : PARSEOP_DEFAULT '{' {$$ = TrCreateLeafNode (PARSEOP_DEFAULT);}
+ : PARSEOP_DEFAULT '{' {$<n>$ = TrCreateLeafNode (PARSEOP_DEFAULT);}
TermList '}' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_DEFAULT '{'
error '}' {$$ = AslDoError(); yyclearin;}
;
UnloadTerm
- : PARSEOP_UNLOAD '(' {$$ = TrCreateLeafNode (PARSEOP_UNLOAD);}
+ : PARSEOP_UNLOAD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_UNLOAD);}
SuperName
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_UNLOAD '('
@@ -1631,7 +1631,7 @@ UnloadTerm
;
WhileTerm
- : PARSEOP_WHILE '(' {$$ = TrCreateLeafNode (PARSEOP_WHILE);}
+ : PARSEOP_WHILE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_WHILE);}
TermArg
')' '{' TermList '}'
{$$ = TrLinkChildren ($<n>3,2,$4,$7);}
@@ -1643,7 +1643,7 @@ WhileTerm
/******* Type 2 opcodes *******************************************************/
AcquireTerm
- : PARSEOP_ACQUIRE '(' {$$ = TrCreateLeafNode (PARSEOP_ACQUIRE);}
+ : PARSEOP_ACQUIRE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_ACQUIRE);}
SuperName
',' WordConstExpr
')' {$$ = TrLinkChildren ($<n>3,2,$4,$6);}
@@ -1652,7 +1652,7 @@ AcquireTerm
;
AddTerm
- : PARSEOP_ADD '(' {$$ = TrCreateLeafNode (PARSEOP_ADD);}
+ : PARSEOP_ADD '(' {$<n>$ = TrCreateLeafNode (PARSEOP_ADD);}
TermArg
TermArgItem
Target
@@ -1662,7 +1662,7 @@ AddTerm
;
AndTerm
- : PARSEOP_AND '(' {$$ = TrCreateLeafNode (PARSEOP_AND);}
+ : PARSEOP_AND '(' {$<n>$ = TrCreateLeafNode (PARSEOP_AND);}
TermArg
TermArgItem
Target
@@ -1672,7 +1672,7 @@ AndTerm
;
ConcatTerm
- : PARSEOP_CONCATENATE '(' {$$ = TrCreateLeafNode (PARSEOP_CONCATENATE);}
+ : PARSEOP_CONCATENATE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CONCATENATE);}
TermArg
TermArgItem
Target
@@ -1682,7 +1682,7 @@ ConcatTerm
;
ConcatResTerm
- : PARSEOP_CONCATENATERESTEMPLATE '(' {$$ = TrCreateLeafNode (PARSEOP_CONCATENATERESTEMPLATE);}
+ : PARSEOP_CONCATENATERESTEMPLATE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CONCATENATERESTEMPLATE);}
TermArg
TermArgItem
Target
@@ -1692,7 +1692,7 @@ ConcatResTerm
;
CondRefOfTerm
- : PARSEOP_CONDREFOF '(' {$$ = TrCreateLeafNode (PARSEOP_CONDREFOF);}
+ : PARSEOP_CONDREFOF '(' {$<n>$ = TrCreateLeafNode (PARSEOP_CONDREFOF);}
SuperName
Target
')' {$$ = TrLinkChildren ($<n>3,2,$4,$5);}
@@ -1701,7 +1701,7 @@ CondRefOfTerm
;
CopyObjectTerm
- : PARSEOP_COPYOBJECT '(' {$$ = TrCreateLeafNode (PARSEOP_COPYOBJECT);}
+ : PARSEOP_COPYOBJECT '(' {$<n>$ = TrCreateLeafNode (PARSEOP_COPYOBJECT);}
TermArg
',' SimpleTarget
')' {$$ = TrLinkChildren ($<n>3,2,$4,TrSetNodeFlags ($6, NODE_IS_TARGET));}
@@ -1710,7 +1710,7 @@ CopyObjectTerm
;
DecTerm
- : PARSEOP_DECREMENT '(' {$$ = TrCreateLeafNode (PARSEOP_DECREMENT);}
+ : PARSEOP_DECREMENT '(' {$<n>$ = TrCreateLeafNode (PARSEOP_DECREMENT);}
SuperName
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_DECREMENT '('
@@ -1718,7 +1718,7 @@ DecTerm
;
DerefOfTerm
- : PARSEOP_DEREFOF '(' {$$ = TrCreateLeafNode (PARSEOP_DEREFOF);}
+ : PARSEOP_DEREFOF '(' {$<n>$ = TrCreateLeafNode (PARSEOP_DEREFOF);}
TermArg
')' {$$ = TrLinkChildren ($<n>3,1,$4);}
| PARSEOP_DEREFOF '('
@@ -1726,7 +1726,7 @@ DerefOfTerm
;
DivideTerm
- : PARSEOP_DIVIDE '(' {$$ = TrCreateLeafNode (PARSEOP_DIVIDE);}
+ : PARSEOP_DIVIDE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_DIVIDE);}
TermArg
TermArgItem
Target
@@ -1737,7 +1737,7 @@ DivideTerm
;
FindSetLeftBitTerm
- : PARSEOP_FINDSETLEFTBIT '(' {$$ = TrCreateLeafNode (PARSEOP_FINDSETLEFTBIT);}
+ : PARSEOP_FINDSETLEFTBIT '(' {$<n>$ = TrCreateLeafNode (PARSEOP_FINDSETLEFTBIT);}
TermArg
Target
')' {$$ = TrLinkChildren ($<n>3,2,$4,$5);}
@@ -1746,7 +1746,7 @@ FindSetLeftBitTerm
;
FindSetRightBitTerm
- : PARSEOP_FINDSETRIGHTBIT '(' {$$ = TrCreateLeafNode (PARSEOP_FINDSETRIGHTBIT);}
+ : PARSEOP_FINDSETRIGHTBIT '(' {$<n>$ = TrCreateLeafNode (PARSEOP_FINDSETRIGHTBIT);}
TermArg
Target
')' {$$ = TrLinkChildren ($<n>3,2,$4,$5);}
@@ -1755,7 +1755,