10575 Commits

Author SHA1 Message Date
Robert Moore
f9430ca2e0 Tests: Automated cleanup and copyright update to 2010.
Update all module headers with 2010 copyright. Also includes the
automated cleanup, this is the first time it has been run on the
test suite source, so there are quite a few changes (removal of
extra spaces at the end-of-line, etc.)
2010-01-08 08:55:58 -08:00
Robert Moore
c7dd20b0d7 Update all ACPICA copyrights and signons to 2010.
Add 2010 copyright to all module headers and signons, including the Linux
header. This affects virtually every file in the ACPICA core subsystem,
iASL compiler, and all utilities.
2010-01-08 08:49:11 -08:00
Robert Moore
cdfcc7cfce Update for new gcc-4 warning options.
Added several new options for the gcc-4 generation, and updated the source
accordingly. This includes some code restructuring to eliminate unreachable
code, elimination of some gotos, elimination of unused return values, and
some additional casting.
2010-01-08 08:14:05 -08:00
Robert Moore
24a732b0d5 Generic unix makefiles: Add additional warning options.
Mostly for gcc 4.
2009-12-18 12:33:38 -08:00
Robert Moore
b5e61bc8ab Remove several redundant declarations.
Allows use of -Wredundant-decls flag for gcc-4
2009-12-15 14:08:52 -08:00
Robert Moore
ae77bba223 Tests: Update aapits for ACPICA interface changes, new files.
Also update scripts.
2009-12-15 10:48:40 -08:00
Robert Moore
5eeed04c3a Update version to 20091214.
Version 20091214.
2009-12-14 12:52:55 -08:00
Robert Moore
985615c5fa Logfile: changes for version 20091214.
Version 20091214.
2009-12-14 12:52:24 -08:00
Robert Moore
5dffc9e07a Windows binaries: Update for version 20091214.
Version 20091214.
2009-12-14 12:41:22 -08:00
Robert Moore
8b73fb9ff4 Debugger: Cleanup output of returned buffer objects.
This change aligns the data dump for buffer objects.
2009-12-11 13:35:19 -08:00
Robert Moore
93324dd734 Move check for valid Thread ID structure.
This change moves the check for a valid Thread ID structure up a few lines
to insure that the check is made before the structure is actually used.
Dan Carpenter.
2009-12-10 14:52:07 -08:00
Robert Moore
cf2bc7db05 Predefined name repair: automatically remove null package elements.
This change will automatically remove embedded and trailing NULL package
elements from returned package objects that are defined to containe a
variable number of sub-packages. The driver is then presented with
a package with no null elements to deal with. ACPICA BZ 819.
2009-12-10 14:35:48 -08:00
Robert Moore
a3dcd06fa0 Module-level code: enable _REG execution in same scope.
This change enables the execution of _REG methods that appear in the
same scope as the module-level code, in resonse to an operation region
declaration within the module-level code.
2009-12-10 12:48:24 -08:00
Robert Moore
f0c2fd9c36 Conditionally perform complex per-predefined-name repairs.
Only attempt the "complex" repairs (package sorting, buffer expansion)
if the previous "generic" validation and repair was successful.
2009-12-09 14:44:38 -08:00
Robert Moore
d34e4dc230 Update function headers and comments, no functional change.
Update comments for repair of _FDE and _GTM methods.
2009-12-08 14:15:57 -08:00
Robert Moore
82abf467aa Remove messages if predefined repair(s) are successful.
Repair mechanism was considered too wordy. Now, messages are only
unconditionally emitted if the return object cannot be repaired.
Existing messages for successful repairs were converted to
ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827.
2009-12-08 14:08:56 -08:00
Robert Moore
51dabc8bed Move Package-to-Buffer repair code into common ToBuffer function.
Move code specific to _FDE and _GTM into the generic repair code.
2009-12-04 15:16:53 -08:00
Robert Moore
b7f16e21e7 Fix mutex errors when running _REG methods.
Fixes a problem where mutex errors can occur when running a _REG method
that is in the same scope as a method-defined operation region or an
operation region under a module-level IF block. This is rare, so the
problem has not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
2009-12-04 09:22:56 -08:00
Robert Moore
268aa6915f Update function headers; no functional change.
Fixed a few errors with the headers in utcopy.c
2009-12-04 08:30:14 -08:00
Robert Moore
d29acc2c26 Add more conversions to predefined name repair module.
This change enhances the automatic repairs/conversions for predefined
name return values to make Integers, Strings, and Buffers fully
interchangeable. Also, a Buffer can be converted to a Package of
Integers if necessary. The nsrepair.c module was completely restructured.
Lin Ming, Bob Moore.
2009-12-03 14:20:31 -08:00
Robert Moore
6f5d3dce4f acpiexec: Add -f option to specify default region fill value.
This option specifies the value used to initialize buffers used to
simulate operation regions. Default is zero. Useful for debugging
problems that depend on a specific initial value for a region or
field.
2009-12-03 09:07:48 -08:00
Robert Moore
9b0c2d0fa5 iASL: Fix for dangling .src intermediate files.
This fixes a regression introduced in version 20091112. A .src
intermediate file is always created during compilation and should
be deleted at compiler exit.
2009-12-01 14:16:32 -08:00
Robert Moore
e5f4b2f88d Update internal namespace node/handle interfaces.
This change deletes the unnecessary NsConvertEntryToHandle interface
and renames the NsMapHandleToNode interface to NsValidateHandle.
ACPICA BZ 798.
2009-11-25 09:23:21 -08:00
Robert Moore
453386a16b Automated cleanup - no functional change.
acpisrc -c cleanup.
2009-11-20 09:16:42 -08:00
Robert Moore
048fba8f81 Add repair for bad _FDE/_GTM buffers.
The expected return value for both names is a Buffer of 5 DWORDS.
This repair fixes two possible problems (both seen in the field):
A package of integers is returned, or a buffer of BYTEs is
returned.
2009-11-20 09:10:33 -08:00
Robert Moore
a6fe819faf Fix two additional Scope override error messages.
These messages were using the internal path for the message
instead of using the node name.
2009-11-18 13:50:34 -08:00
Robert Moore
ca84b670c6 Fix two Scope type error messages.
Both messages incorrectly used the internal Path string instead
of the node name.
2009-11-18 13:43:52 -08:00
Robert Moore
9b6e9d4341 Fix possible memory leak for module-level code execution.
An object can be leaked for each block of executed module-level
code if the interpreter slack mode is enabled. The change
deletes any implicitly returned object in this case.
2009-11-18 13:25:42 -08:00
Robert Moore
e8195de87c Update version to 20091112.
Version 20091112.
2009-11-12 09:47:13 -08:00
Robert Moore
f594a6bed0 Logfile: changes for version 20091112.
Version 20091112.
2009-11-12 09:46:39 -08:00
Robert Moore
e4ee19dadd Windows binaries: Update for version 20091112.
Version 20091112.
2009-11-12 09:45:58 -08:00
Robert Moore
c63ec8c905 Update release generation files.
New file: size.bat
2009-11-12 08:36:07 -08:00
Robert Moore
4da2223d36 Update windows project files.
New file, nsrepair2.c
2009-11-10 14:33:52 -08:00
Robert Moore
35d93031cf iASL: Fix for fault after "max errors exceeded".
Cleanup and exit properly after the maximum number of errors
have been exceeded.
2009-11-06 13:36:41 -08:00
Robert Moore
0f4a91c1bd Add additional module-level code support.
This change will execute module-level code that is not at the root of
the namespace (under a Device object, etc.). ACPICA BZ 762. Lin Ming.
2009-11-06 13:34:17 -08:00
Robert Moore
bf219fa808 Deploy new create integer interface where appropriate.
Simplifies creation of simple integer objects.
ACPICA BZ 823.
2009-11-06 12:30:33 -08:00
Robert Moore
7fc5b28b51 New internal utility function to create Integer objects.
AcpiUtCreateIntegerObject. This function (when deployed) should
simplify some of the object creation code.
ACPICA BZ 823.
2009-11-05 15:00:14 -08:00
Robert Moore
829c0044e5 Add repair for predefined methods that must return sorted lists.
This change will repair (by sorting) packages returned by _ALR,
_PSS, and _TSS. Drivers can now assume that the packages are
correctly sorted. Adds one new file, namespace/nsrepair2.c
ACPICA BZ 784. Lin Ming, Bob Moore.
2009-11-04 13:57:17 -08:00
Robert Moore
586b840ba7 Documentation: Update ACPICA reference.
Changes to AcpiWalkNamespace.
Added documentation of source code tree.
2009-11-03 09:17:16 -08:00
Robert Moore
83eea423d6 iASL: Add msg if initializer list is shorter than package length.
Adds a new remark for a Package() declaration if an initializer
list exists, but is shorter than the declared length of the package.
Although technically legal, this is probably a coding error and
it is seen in the field. ACPICA BZ 815. Lin Ming, Bob Moore.
2009-10-29 12:11:40 -07:00
Robert Moore
c73b29b348 Fix possible fault if return Package objects contain NULL elements.
For predefined name validation. Also adds a warning if a NULL
element is followed by any non-null elements.
ACPICA BZ 813, 814.
2009-10-29 08:44:53 -07:00
Robert Moore
f85e95cf59 acpixtract: Fix possible warning for pointer cast.
Fixes a possible warning if warnings set very high.
2009-10-29 08:43:44 -07:00
Robert Moore
581af16a2a Add post-order callback to AcpiWalkNamespace.
The existing interface only has a pre-order callback. This change
adds an additional parameter for a post-order callback which will
be more useful for bus scans. ACPICA BZ 779. Lin Ming.
2009-10-28 12:11:05 -07:00
Robert Moore
9c992f8871 Change package length error message to an info message.
This message happens when the package element list is longer than
the declared length of the package. Changed to an info message
because this condition is not actually an error. It is caused by
the BIOS attempting to truncate the package on the fly by adjusting
the package element count at the start of the package definition.
2009-10-28 09:44:52 -07:00
Robert Moore
381f8561ee Do not cross page boundaries when mapping operation regions.
Ensure that memory mappings created for operation regions do
not cross page boundaries. Crossing a page boundary while mapping
regions can cause warnings if the pages have different attributes.
Such regions are probably BIOS bugs, and this is the workaround.
Linux BZ 14445. Lin Ming.
2009-10-28 09:38:25 -07:00
Robert Moore
1656dba4f2 Tests: Update ASLTS for iASL Switch/While fix.
Update to abbu/misc
2009-10-14 14:45:14 -07:00
Robert Moore
e7c910d80a iASL: Implement Switch() with While(1) so that Break works.
This change correctly implements the Switch operator with a surrounding
While(1) so that the Break statement works as expected.
ACPICA BZ 461. Lin Ming.
2009-10-14 13:56:01 -07:00
Robert Moore
e16dcbba87 Reduce severity of predefined repair messages, Warning to Info.
Since the object was successfully repaired, a Warning is too severe.
Reduced to Info for now. We may eventually change these messages
to debug-only. ACPICA BZ 812.
2009-10-14 13:32:06 -07:00
Robert Moore
af0711d385 Update version to 20091013.
Version 20091013.
2009-10-13 12:59:27 -07:00
Robert Moore
ce1384b40b Logfile: changes for version 20091013.
Version 20091013.
2009-10-13 12:58:15 -07:00