10132 Commits

Author SHA1 Message Date
Robert Moore
fd4d4b1041 Update Windows binaries for version 20080701.
Update the changed binaries.
2008-07-01 09:32:25 -07:00
Robert Moore
5c55a3aed7 Update linux patchgen scripts for git.
Update for use with CVS to use for git.
2008-07-01 09:05:25 -07:00
Robert Moore
1975da87dd Fix table compare code, length then data.
Split the ACPI table compare. First check that the lengths match
exactly. Then compare the data.
2008-06-27 15:10:31 -07:00
Robert Moore
b87b30db63 Fix wrong resource descriptor length for 64-bit build.
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 64-bit build. BZ 728
2008-06-26 15:42:22 -07:00
Robert Moore
345f0f1b8e Return method arg count from AcpiGetObjectInfo.
Also update the debugger so that the correct number of arguments
is passed to the method. Prevents a warning message from the
debugger.
2008-06-26 15:40:24 -07:00
Robert Moore
4d0bf69261 Fix possible memory leak in Unload() operator.
The DdbHandle returned by Load() does not have its reference
count decremented during unload, leading to a memory leak. Lin Ming.
BZ 72
2008-06-26 14:49:41 -07:00
Robert Moore
154b8a07ef Allow same ACPI table to be loaded/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
2008-06-26 14:33:44 -07:00
Robert Moore
99bf0793b2 Fix order of names in global mutex table (debug only).
Fix the ordering of the ASCII names in the table to match the actual
mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only.
Vegard Nossum. BZ 726
2008-06-26 13:21:25 -07:00
Robert Moore
62bf380387 iASL: Added two missing ACPI reserved names.
Added _MTP and _ASZ, both resource descriptor names.
2008-06-19 12:43:23 -07:00
Robert Moore
8a960c4df8 Fix memory leak when deleting thermal/processor objects.
Fixes a possible memory leak when thermal and processor objects
are deleted. Any associated notify handlers (and objects) were
not being deleted. Fiodor Suietov. BZ 506
2008-06-18 13:16:33 -07:00
Robert Moore
795dbca188 Update FreeBSD-specific header.
Changes received from FreeBSD team.
2008-06-17 15:37:41 -07:00
Robert Moore
9d9acfac3c Implement careful GPE disable, only change one enable bit.
We now perform 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.)
2008-06-17 15:13:13 -07:00
Robert Moore
a9ec7a4958 Add check for invalid handle in AcpiGetObjectInfo.
Return AE_BAD_PARAMETER if input handle is invalid. BZ 474
2008-06-17 14:53:35 -07:00
Robert Moore
240cecc47f iASL: Detect invalid ASCII characters in input (windows version)
Removed -CF flag from the flex compile, enables correct detection of
non-ASCII characters in the input. BZ 441.
2008-06-17 14:51:00 -07:00
Robert Moore
fe9c406016 iASL: Eliminate warning when result of LoadTable 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
2008-06-17 14:47:04 -07:00
Robert Moore
a55e093601 Fix warning for 64-bit build.
Fixes warning from exconfig.c on 64-bit build.
2008-06-13 13:54:15 -07:00
Robert Moore
913669b792 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 opregion with real
address that was passed to _CFG. All of this allows testing of the Load
and Unload operators from AcpiExec.
2008-06-13 13:46:31 -07:00
Robert Moore
f481e6e303 Debugger: update tables command for unloaded tables.
Handle unloaded tables and use the standard table header output
routine.
2008-06-13 13:40:35 -07:00
Robert Moore
9ea403208e Copy dynamically loaded tables to local buffer.
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 OpRegion case, added checksum verify. Use the table length
from the table header, not the region length. For Buffer case, use the
table length also. Dennis Noordsij, Bob Moore. BZ 10734
2008-06-11 15:23:20 -07:00
Robert Moore
123624b1af Cleanup macro definition file.
Removed unused macros. Ensure that multiple parameters always have a space
after a comma. Cleanup some comments.
2008-06-10 14:24:15 -07:00
Robert Moore
1326f571ce Update version to 20080609.
Update version to 20080609.
2008-06-09 15:26:14 -07:00
Robert Moore
271b10b87e Update logfile for version 20080609.
Update CHANGES.txt
2008-06-09 15:25:07 -07:00
Robert Moore
0fae605867 Update binaries for version 20080609.
New versions of the windows binaries.
2008-06-09 15:13:55 -07:00
Robert Moore
91c58ec2d7 Disassembler: single-step support for _CID packages.
Add support to allow single stepping of _CID with support for
EisaId checking.
2008-06-04 14:25:08 -07:00
Robert Moore
e9f18d7c17 Disassembler: support for EisaId within _CID objects.
Add support to disassemble encoded EisaIDs within _CID objects.
Includes support for multiple _CIDs within packages.
2008-06-04 14:09:16 -07:00
Robert Moore
6a375bb871 Fix possible memory leak in EvPciConfigRegionSetup.
Error path did not delete the PCI_ID structure.
2008-05-28 14:41:29 -07:00
Robert Moore
60c301a625 Simplify ACPI hardware interfaces.
Remove locking parameter from internal HwRegisterRead and HwRegisterWrite
functions. Add new AcpiGetRegisterUnlocked function.
2008-05-28 09:39:57 -07:00
Robert Moore
01954432e5 Fix mutex debug code for wrong loop termination value.
Loop was terminating one iteration early, missing one of the debugger
handshake mutexes. Linn Crosetto.
2008-05-27 15:30:07 -07:00
Robert Moore
9cad41144b Update linux patch generation files.
Additional automation and other changes.
2008-05-21 15:33:06 -07:00
Robert Moore
48de5ac6ea Fix for access to deleted object <regression>.
Fixes problem introduced in 20080123, with fix for Unload operator.
Parse tree object can be already deleted; must use the opcode within
the WalkState.
2008-05-21 14:48:56 -07:00
Robert Moore
b98eacb45a Fix for hang on GPE method invocation.
Fixes problem introduced in 20080514 where the new method argument count
validation mechanism will enter an infinite loop when a GPE method is
dispatched. Problem fixed be removing the obsolete code that passes GPE
block information to the notify handler via the control method parameter
pointer.
2008-05-21 14:10:42 -07:00
Robert Moore
f7d3c56e3b Cleanup of _PRT parsing code.
Removed extraneous else clauses, other general cleanup.
2008-05-21 12:31:16 -07:00
Robert Moore
87292344c7 Automated cleanup; no functional changes. 2008-05-21 12:17:51 -07:00
Robert Moore
ca1f300fd1 Fix to make _SST method optional.
Fixes a problem introduced in 20080514 where the status of execution of
_SST is incorrectly returned to the caller. _SST is optional, and if it
is AE_NOT_FOUND, the exception should be ignored. BZ 716
2008-05-21 11:49:03 -07:00
Robert Moore
2918f67328 Cleanup debug operand dump mechanism.
Eliminated unnecessary operands; eliminated use of negative index in loop.
Operands now displayed in correct order, not backwards.
2008-05-21 11:39:06 -07:00
Robert Moore
9fa368ff7b Fix for invalid large array index on 64-bit systems.
This problem was introduced in 20080514 as a result of the elimination
of the ACPI_NATIVE_UINT type. Code uses a negative array index, which
should be eliminated.
2008-05-21 11:02:31 -07:00
Robert Moore
d6b7ac2fe2 Update disassembler for DMAR table changes.
Now supports the 2007 intel Virtualization Technology for
Directed I/O specification.
2008-05-20 13:28:37 -07:00
Robert Moore
b622e9f4d8 Update DMAR and SRAT table definitions.
Synchronized tables with current specifications.
2008-05-16 10:04:17 -07:00
Robert Moore
2a6f5e2ab0 Workaround for reversed _PRT entries from BIOS.
Some BIOSs erroneously reverse the _PRT SourceName and the SourceIndex.
Detect and repair this problem. MS ACPI also allows and repairs this
problem, thus ACPICA must also.
2008-05-16 08:50:47 -07:00
Robert Moore
d55d5dc9a7 Update version to 20080514 2008-05-14 10:40:18 -07:00
Robert Moore
3547c1b619 Update for version 20080514 2008-05-14 10:34:37 -07:00
Robert Moore
634d164129 Update for version 20080514 2008-05-14 10:32:16 -07:00
Robert Moore
a33265bc7c Fix for Load operator, load 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.
2008-05-13 13:07:13 -07:00
Robert Moore
35bcda4be0 Update Linux/Unix makefiles for source tree changes.
Affects acpiexec and iASL only.
2008-05-13 13:00:35 -07:00
Robert Moore
6f2303e030 Update lint batchfile to process entire ACPICA tree.
Updated pathnames to be relative. removed 16-bit lint.
2008-05-13 11:11:49 -07:00
Robert Moore
250cbe2a7b Update windows project files for source tree changes.
The tree was recently flattened. Adjusted all paths to be relative,
allowing generation anywhere. Split the workspace into two - one that
generates the released binaries, another that is used for testing only.
2008-05-13 10:49:16 -07:00
Robert Moore
fc7c3e91d8 Add ACPI table revision ID validation to disassembler.
0 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.
2008-05-12 13:36:23 -07:00
Robert Moore
cd9d57f9c1 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.
2008-05-12 12:52:46 -07:00
Robert Moore
6668ae970d Move execution of _GTS to just before setting sleep enable bit.
Execution 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
2008-05-09 14:39:12 -07:00
Robert Moore
8c47917fd2 Add const qualifier for appropriate string constants.
Mostly MODULE_NAME and printf format strings.
2008-05-09 13:08:54 -07:00