10265 Commits

Author SHA1 Message Date
Robert Moore
8432c08fc1 iASL: Allow multiple arg counts for _SCP method.
ACPI 1.0 defined _SCP to have one argument. In ACPI 3.0, this was
extended to three arguments. iASL now allows either 1 or 3.
2008-08-21 20:18:03 -07:00
Lin Ming
d585abd768 move CHANGES.txt
move CHANGES.txt to documents/changes.txt
2008-08-21 20:18:01 -07:00
Robert Moore
7c40bc80cb Add OS/2 header file support.
New OS-specific file, acos2.h, and modifications to acenv.h to
automatically include the new file when compiling under OS/2.
2008-08-01 14:42:09 -07:00
Robert Moore
19815d3c1e New: AcpiXtract Windows binary
Windows version of AcpiXtract
2008-08-01 14:16:29 -07:00
Robert Moore
f3f21cd83e Add namespace node to operand object union.
Add ACPI_NAMESPACE_NODE to the ACPI_OPERAND_OBJECT in order to simplify
code that accepts both of these objects. A common type field is used
to differentiate them.
2008-08-01 13:51:24 -07:00
Robert Moore
7eaa9e2544 New: ACPICA documentation
Includes the ACPICA programmer reference and the iASL compiler
reference, in both PDF and WORD format.
2008-08-01 13:32:17 -07:00
Robert Moore
e95b64e25c New: Scripts to generate ACPICA release packages.
These scripts are intented to be executed under cygwin to generate
the various package containing the ACPICA source and binaries.
2008-08-01 13:25:10 -07:00
Robert Moore
f9abfccc9d Remove obsolete debug levels (WARN and ERROR).
Removed ACPI_DB_WARN and ACPI_DB_ERROR. These debug levels were made
obsolete by the ACPI_WARNING and ACPI_ERROR/ACPI_EXCEPTION interfaces.
Also added ACPI_DB_EVENTS to correspond with the existing
ACPI_LV_EVENTS.
2008-08-01 10:19:42 -07:00
Robert Moore
6030ce56ae Update version to 20080729.
Update acconfig.h
2008-07-30 19:40:40 -07:00
Robert Moore
e79cfca9b1 Logfile: changes for version 20080729.
Update for 20080729
2008-07-29 09:56:17 -07:00
Robert Moore
9aed25c22a Windows binaries: update for version 20080729.
New binaries.
2008-07-29 09:51:58 -07:00
Robert Moore
bfcb04bacf Test suite: update tests for recent acpica changes.
These changes affected the tests:
iASL: error if named object created in while loop
iASL: minimum 1 interrupt in interrupt macro
Table Load: table is now loaded at namespace root
2008-07-29 09:30:58 -07:00
Robert Moore
61565d738f iASL: named objects within loop, part two.
Restricted the error case to allow the use of the Scope, Buffer, and
Package operators within a loop since these operators do not actually
create new objects.
2008-07-29 09:14:18 -07:00
Robert Moore
0537265339 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.
2008-07-25 12:49:40 -07:00
Robert Moore
71b17eedd3 Add 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.) Lin Ming, Bob Moore. Linux BZ 11105
2008-07-25 12:07:23 -07:00
Robert Moore
7c8469599f Tests: update file permissions.
C and H files that had incorrect permissions.
2008-07-24 13:09:40 -07:00
Robert Moore
5d63569294 x2APIC support: changes for MADT and SRAT ACPI tables.
Support for the x2APIC. 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.
2008-07-24 12:57:13 -07:00
Robert Moore
cb2d41704e 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.
2008-07-24 10:21:33 -07:00
Robert Moore
61a66a6a92 iASL: Support absolute pathnames for include files.
Add support for absolute pathnames within the Include operator.
previously, only relative pathnames were supported.
2008-07-23 10:42:31 -07:00
Robert Moore
70bf57ce49 Improve object conversion error messages.
Better error messages during object conversion from internal to the
external ACPI_OBJECT. Used for external calls to AcpiEvaluateObject.
2008-07-22 12:38:36 -07:00
Robert Moore
5a0e8ab933 Add function to decode reference obj types to strings.
Created for improved error messages.
2008-07-22 10:53:01 -07:00
Robert Moore
806efe4747 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.
2008-07-22 10:03:48 -07:00
Robert Moore
dfde65430c Fix possible deadlock in GPE dispatch.
Remove call to AcpiHwDisableAllGpes 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.
2008-07-22 09:55:44 -07:00
Robert Moore
cf81b17458 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.
2008-07-10 14:46:31 -07:00
Robert Moore
bf3df5302d Return status from global init function.
Return status from 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.
2008-07-09 13:38:52 -07:00
Robert Moore
5cae8e0a88 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.
2008-07-08 13:27:23 -07:00
Robert Moore
409a98bb7f iASL: lint changes only, no functional changes.
Some lint changes only.
2008-07-08 11:10:07 -07:00
Robert Moore
4a7af8590a Debugger: fix possible hang when evaluating non-methods.
Fixes a problem introduced in 20080701. If the object being evaluated
(via execute command) is not a method, the debugger can hang while
trying to get non-existent parameters.
2008-07-03 10:02:56 -07:00
Robert Moore
edecb3ec2f 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
2008-07-02 10:12:46 -07:00
Robert Moore
36a06ba0af iASL: Enforce minimum 1 interrupt in interrupt macro.
ACPI spec requires one interrupt minimum. BZ 423
2008-07-01 16:07:51 -07:00
Robert Moore
d2b15accf3 iASL: Handle missing ResourceSource arg, present SourceIndex.
Handle the case for the Interrupt resource descriptor where
the ResourceSource argument is omitted but ResourceSourceIndex
is present. Leave room for the Index. BZ 426
2008-07-01 16:06:20 -07:00
Robert Moore
5589bb45bc Update version to 20080701.
Update version to 20080701.
2008-07-01 09:35:32 -07:00
Robert Moore
c3a0695fde Update logfile for version 20080701.
Update CHANGES.txt.
2008-07-01 09:33:52 -07:00
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