10599 Commits

Author SHA1 Message Date
Robert Moore
2dfa14e186 iASL: Add support for response files.
Windows-style response files, containing a list of additional
command line options. ACPICA BZ 801.
2009-09-01 13:08:07 -07:00
Robert Moore
f32e3476e0 Fix memory leak for ill-formed Package objects.
Fixes a possible memory leak in the interpreter for package objects if the
package initializer list is longer than the defined size of the package. This
apparently can only happen if the BIOS changes the package size on the fly
(seen in a _PSS object), as both iASL and the other compiler do not allow this.
The interpreter will truncate the package to the defined size (and issue an
error message), but can leave the extra objects undeleted if they have been
pre-created during the argument processing (such is the case if the package
consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
2009-09-01 12:52:55 -07:00
Robert Moore
7a78d55e3f Windows compatibility fix: same buffer/string store.
Fixes a compatibility issue when the same buffer or string is
stored to itself. This has been seen in the field. Previously,
ACPICA would zero out the buffer/string. Now, the operation is
treated as a noop. ACPICA BZ 803. Lin Ming.
2009-08-13 07:06:20 -07:00
Robert Moore
c54620b195 Remove error message for Store(Localx,Localx)
We silently ignore this construct for Windows compatibility.
ACPICA BZ 785.
2009-08-12 09:38:19 -07:00
Robert Moore
3cc98ca6e2 Fix extraneous warning if _DSM returns a package.
_DSM can return any type of object, so validation on the return type
cannot be performed. ACPICA BZ 802.
2009-08-12 09:27:21 -07:00
Robert Moore
64dd41c346 iASL: Add -I option to specify include directories.
Allows multiple additional search paths for include files. Directories
are searched in the order specified on the command line (after the
local directory is searched.)
2009-08-07 12:19:49 -07:00
Robert Moore
35e4b46116 Disassembler fix for HEST ACPI table.
Add missing support for error bank substructures.
2009-08-05 08:01:51 -07:00
Robert Moore
10068025c9 Update version to 20090730.
Version 20090730.
2009-07-30 10:18:54 -07:00
Robert Moore
4e85c8e84e Logfile: changes for version 20090730.
Version 20090730.
2009-07-30 10:17:01 -07:00
Robert Moore
ec93f9313e Windows binaries: Update for version 20090730.
Version 20090730.
2009-07-30 10:15:58 -07:00
Robert Moore
d53981016f Update windows project files.
pathname fix.
2009-07-30 09:07:05 -07:00
Robert Moore
e95b26b19f Update .gitignore file.
Add new files.
2009-07-30 08:58:12 -07:00
Robert Moore
a5777b37bd AcpiReset: Bypass port validation mechanism.
Allow writes to reserved ports. This change may eventually be
driven down in to AcpiWrite and AcpiRead.
2009-07-30 08:38:30 -07:00
Robert Moore
79f8819b96 Fix warning msg, was depending on debug compile.
Dependent on conditional compile in OpInfo.
2009-07-30 08:23:37 -07:00
Robert Moore
52f7b3cc9e Fix typo for HEST ACPI table.
Problem with the name of one of the subtables.
2009-07-30 08:21:04 -07:00
Robert Moore
aa7edb161a Update definitions for HEST table.
Eliminate duplicated code in disassembler.
Shorten identifiers that were too long.
2009-07-24 13:57:56 -07:00
Robert Moore
a1206bab23 AcpiSrc: Fix missing newlines in multi-line macros.
Fix a problem where newlines can be incorrectly removed from some
multi-line macros during conversion to Linux.
2009-07-24 13:55:13 -07:00
Robert Moore
cadb875839 Fix symbol to allow correct translation of Linux code.
AcpiSrc removes all symbols with '__' prefix, these cannot be used.
2009-07-23 12:28:23 -07:00
Robert Moore
d2bd4b79ea AcpiSrc: Update for ACPI 4.0 tables.
New tables and changes to existing tables.
2009-07-23 12:27:23 -07:00
Robert Moore
4e813e709c Tests: Continue port of AAPITS to current ACPICA.
Some run-time changes for correct execution.
2009-07-23 10:01:44 -07:00
Robert Moore
80d7951177 Add support for module-level executable AML code.
Add limited support for executable AML code that exists outside of
any control method. This type of code has been illegal since ACPI 2.0.
The code must exist in an If/Else/While block. All AML tables are
supported, including tables that are dynamically loaded.
ACPICA BZ 762. Lin Ming.
2009-07-23 09:53:29 -07:00
Robert Moore
106406c1b8 Fix suspend failure if PM2 control register does not exist.
Since PM2 control is an optional register, ignore an AE_BAD_ADDRESS
exception from any writes to it. Affects writes to the BM arbitration
bit. ACPICA BZ 799.
2009-07-20 13:31:50 -07:00
Robert Moore
b9b8329702 ACPI 4.0: Add validation for new predefined names.
Added 31 new names for ACPI 4.0.
2009-07-20 12:59:48 -07:00
Robert Moore
33e66358ec Disassembler: Fix several miscellaneous issues.
Fix some output problems with DMAR, HEST, IVRS.
Fix possible extraneous error message with GAS structure output.
Several lint changes.
2009-07-20 12:01:13 -07:00
Robert Moore
21ea332fa9 ACPI 4.0: Update iASL signon message.
Add ACPI 4.0 to signon message.
2009-07-17 14:12:50 -07:00
Robert Moore
5d2cb5aa68 ACPI 4.0: Disassembler support for new ACPI tables.
Support for new and changed ACPI tables.
2009-07-17 13:16:01 -07:00
Robert Moore
a502146f98 ACPI 4.0: Update headers for new and changed ACPI tables.
Add IVRS,MSCT,UEFI,WAET,WDAT.
Updated several existing tables for ACPI 4.0-related changes.
Added document references for all tables not defined in ACPI spec.
2009-07-17 13:11:09 -07:00
Robert Moore
1d7f44e667 Split large ACPI table header.
Split out the non-acpi-defined ACPI tables into the existing (but empty)
actbl2.h file. Preparation for new ACPI 4.0 tables.
2009-07-14 15:05:15 -07:00
Robert Moore
1170aa2715 Fix fault if AcpiTerminate is called twice.
Fixes a problem with the mechanism that prevents problems if the
AcpiTerminate interface is inadvertently called more than once before
the ACPICA code is re-initialized. ACPICA BZ 795.
2009-07-14 09:24:25 -07:00
Robert Moore
6fa3c7e131 Update windows project files (add new aapits project)
Windows project for aapits test suite added.
2009-07-01 14:22:58 -07:00
Robert Moore
f1ce4cf58f Tests: Port AAPITS suite to current ACPICA. Phase 1 (compile).
Code now compiles on cygwin and windows. Next phase will be to
get the code running properly.
2009-07-01 14:16:44 -07:00
Robert Moore
eeb71b76cb Fix regression for AcpiGetDevices - ID matching.
Problem was introduced in 20090625. The _HID and _CID matching code
was broken with the introduction of the string changes for these
IDs. ACPICA BZ 793. Reported by Dana Myers.
2009-06-30 14:10:27 -07:00
Robert Moore
619cbe4d6c ACPI 4.0: Add new return package type, restructure module.
Added one new package type, a package that contains a revision number
and a variable number of sub-packages. Restructured the module to
put the sub-package list traversal in a separate function.
2009-06-30 08:13:22 -07:00
Robert Moore
ede1ca0212 Add repair for predefined methods that return nested packages.
Fixes a problem where a predefined method is defined to return a
variable-length Package of sub-packages. If the length is one, the
BIOS code occasionally creates a simple single package with no
sub-packages. This code attempts to fix the problem by wrapping
a new package object around the existing package. ACPICA BZ 790.
2009-06-26 10:54:44 -07:00
Robert Moore
a535937a41 Update Windows project files.
Add new file, nsrepair.c.
2009-06-26 10:53:45 -07:00
Robert Moore
4811ab66f4 Move predefined repair code to new file, no functional change.
New file is nsrepair.c. This is in preparation for additional
errror correcting code.
2009-06-26 09:36:18 -07:00
Robert Moore
c0b4186601 Update version to 20090625.
Update version number.
2009-06-25 10:31:32 -07:00
Robert Moore
b8ddfc8df3 Logfile: changes for version 20090625.
Version 20090625.
2009-06-25 10:30:19 -07:00
Robert Moore
01014ff505 Windows binaries: update for version 20090625.
Version 20090625.
2009-06-25 10:28:40 -07:00
Robert Moore
d3e3f6c496 Update .gitignore file.
Add test/aml files.
2009-06-25 10:16:33 -07:00
Robert Moore
29620245ac Update lint option file.
Allow pointer overruns for dynamic structures.
2009-06-24 14:35:03 -07:00
Robert Moore
d1ae4eb88b Tests: Update DataTableRegion test for new SpaceId.
DataTableRegion uses an internal SpaceID. The new IPMI space ID forced
this internal ID to be incremented.
2009-06-24 13:12:23 -07:00
Robert Moore
2a5384ea61 Update Widnows project files.
New file added to projects. Fixed .bsc paths for iASL.
2009-06-23 15:19:56 -07:00
Robert Moore
cac6ebb3e7 ACPI 4.0: Changes for existing ACPI tables.
FACS: new flag and new OspmFlags field.
SRAT: x2APIC - add ClockDomain field to descriptor #2

Includes header and disassembler support.
2009-06-23 15:07:23 -07:00
Robert Moore
ba06eaab14 Clarify common suffix for error/warning messages.
Added parens around the acpica version/modulename/linenumber to
clearly differentiate this group from the rest of the message.
2009-06-23 13:44:35 -07:00
Robert Moore
8997e8ccd1 Fix: Predefined object repair executed only once.
This fixes a problem where the code that attempts to repair/convert an
object of incorrect type is only executed on the first time the
predefined method is called. The mechanism that disables warnings
on subsequent calls was interfering with the repair mechanism.
ACPICA BZ 781.
2009-06-23 13:33:48 -07:00
Robert Moore
93d8cbef0d Dump table header - suppress output of non-printable characters.
Function AcpiTbPrintTableHeader. Some ACPI tables contain non-printable
characters in one of the string fields of the the header - Signature,
OemId, OemTableId, or CompilerId. Invalid characters are replaced
by '?'. ACPICA BZ 788.
2009-06-22 12:33:47 -07:00
Robert Moore
f2c4203b36 Documentation: Update for interface changes.
Changes to AcpiGetObjectInfo and AcpiRead/Write. Also added IPMI as
an additional address space ID (ACPI 4.0).
2009-06-22 09:21:11 -07:00
Robert Moore
ace198676c Fix several AcpiAttachData problems.
Handler was never invoked. Now invoked if/when host node is deleted.
Data object was not automatically deleted when host node was deleted.
Interface to handler had an unused parameter, removed it.
ACPICA BZ 778.
2009-06-19 13:23:34 -07:00
Robert Moore
64a735c120 ACPI 4.0: Interpreter support for IPMI.
Adds support for IPMI which is similar to SMBus and uses a bi-directional
data buffer. ACPICA BZ 773. Lin Ming.
2009-06-19 09:17:58 -07:00