10325 Commits

Author SHA1 Message Date
Robert Moore
0a913cc77d Update release build script.
Changed to reflect new location of changes.txt.
2008-08-27 13:12:30 -07:00
Robert Moore
16de114e9d Test suite: remove obsolete exception codes.
Changed to track changes in ACPICA core.
2008-08-27 10:19:39 -07:00
Robert Moore
fd290b3c3c Cleanup for internal Reference Object.
Fix some sloppiness in the Reference object. No longer use AML opcodes to
differentiate the types, introduce new reference Class. Cleanup the debug
output code.
2008-08-27 10:11:30 -07:00
Robert Moore
96ee63dfac Update comments - no functional changes.
Some formatting and spelling fixes.
2008-08-26 14:29:29 -07:00
Robert Moore
ea44a7365e Update for Reference ACPI_OPERAND_OBJECT.
1) Add new field for use by DdbHandle (Value)
2) Use ACPI_CAST_INDIRECT_PTR to eliminate strict type warnings
3) Cleanup debug output

Lin Ming, Bob Moore
2008-08-25 15:16:44 -07:00
Robert Moore
650dfb36ee Reduce error to warning for incorrect method arg count.
Previously aborted with 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.
2008-08-25 14:17:04 -07:00
Robert Moore
86b0a69e1f acpisrc: Improve comment counting mechanism.
Count first and last lines of multi-line comments as whitespace, not
comment lines. Handle Linux legal header in addition to standard
acpica header.
2008-08-25 13:50:34 -07:00
Robert Moore
853c286f14 iASL/disassembler: avoid infinite loop on bad ACPI tables.
Check for zero-length subtables when disassembling ACPI tables.
Also fixes a couple of errors where a full 16-bit table type
was not extracted from the input properly.
2008-08-21 20:18:03 -07:00
Robert Moore
f2d758c956 Disallow evaluation of named object types with no value.
Return AE_TYPE for objects that have no value and therefore evaluation
is undefined: Device, Event, Mutex, Region, Thermal, and Scope.
2008-08-21 20:18:03 -07:00
Robert Moore
d9c19f3cb1 Remove obsolete exception codes.
Removed 10 exception codes (and corresponding name strings) that were
obsolete for various reasons.
2008-08-21 20:18:03 -07:00
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