10875 Commits

Author SHA1 Message Date
Robert Moore
62276d5441 GPE detect optimization - ignore unused GPE registers.
This optimization will simply ignore GPE registers that contain no
enabled GPEs - there is no need to read the register.
ACPICA bugzilla 884. Lin Ming. Suggestion from Joe Liu.
2011-01-13 14:34:00 -08:00
Robert Moore
03890c8512 iASL: Add predefined macros __LINE__, __FILE__, and __DATE__
Adds these c-style macros with the standard definitions.
ACPICA bugzilla 898.
2011-01-13 12:08:26 -08:00
Robert Moore
ad694f5bd9 Update version to 20110112.
Version 20110112.
2011-01-12 09:47:52 -08:00
Robert Moore
0efeaa391a Logfile: Changes for version 20110112.
Version 20110112.
2011-01-12 09:47:11 -08:00
Robert Moore
50f780874a Windows binaries: Update for version 20110112.
Version 20110112.
2011-01-12 09:46:27 -08:00
Robert Moore
84b8d0fd51 Update release script to generate unix package with dual-license.
Insert the dual-license header into the source for this package.
Requested by FreeBSD.
2011-01-12 09:44:57 -08:00
Robert Moore
d0a022febf Documentation: Update iASL reference for generic data types.
New generic data types for the Data Table Compiler.
2011-01-12 08:50:02 -08:00
Robert Moore
71ef3a82d8 iASL: Merge duplicate UUID support code into single module.
Merged duplicated UUID functions. Adds one new file,
compiler/asluuid.c. Lin Ming, Bob Moore.
2011-01-11 14:44:08 -08:00
Robert Moore
314834b417 iASL: Fix to deterministically detect "Raw Table Data" field in DTC.
Caused a problem with the recent changes for generic data types
in the Data Table compiler. Lin Ming.
2011-01-11 13:19:01 -08:00
Robert Moore
9a5f2aa74c iASL: Add listing support for Data Table Compiler.
Adds listing support (-l) to display actual output for each
line of input code.
2011-01-11 12:41:30 -08:00
Robert Moore
4110b9bdc9 Fix issues/fault with automatic "serialized" method support.
History: This support changes a method to "serialized" on the fly if the
method generates an AE_ALREADY_EXISTS error, indicating the possibility
that it cannot handle reentrancy.

This fix repairs a couple of issues seen in the field, especially on
machines with many cores.

1) Delete method children only upon the exit of the last thread, so
as to not delete objects out from under running threads.

2) Set the "serialized" bit for the method only upon the exit of the
last thread, so as to not cause deadlock when running threads attempt
to exit.

3) Cleanup the use of the AML "MethodFlags" and internal method flags
so that there is no longer any confustion between the two.

Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
2011-01-11 10:25:15 -08:00
Robert Moore
a39fa5a0a6 iASL: Add generic data types to the Data Table compiler.
Add "generic" data types such as UINT32, String, Unicode, etc.,
to simplify the generation of platform-defined tables such
as UEFI. Lin Ming.
2011-01-06 13:44:12 -08:00
Robert Moore
a90085ba04 Debugger: Do not invoke methods with too many arguments.
Limit the number of arguments sent to a control method to
the number of required arguments - to avoid a warning
message from the argument checking code.
2011-01-05 09:12:08 -08:00
Robert Moore
13585b2f61 Merge branch 'master' of ssh://git.moblin.org/acpica 2011-01-03 14:07:42 -08:00
Robert Moore
e1db8565bc Tests: Update all copyrights to 2011.
test suites only.
2011-01-03 14:04:49 -08:00
Robert Moore
d41344f1ec Update all ACPICA copyrights and signons to 2011.
Standard ACPICA source modules only.
2011-01-03 14:02:13 -08:00
Robert Moore
94d7576d54 New: readme file with notes on generating ACPICA under VC 9.
A couple notes on how to eliminate build warnings.
2010-12-20 13:15:14 -08:00
Robert Moore
e4fafef111 Update .gitignore for new msvc9 directory.
new file types added.
2010-12-17 17:25:03 -08:00
Robert Moore
b5f35ebe37 New: Project files for VC++ 9 (Visual Studio 2008)
Ported from the VC++ 6 files. Finally, we can use relative
pathnames.
2010-12-17 17:11:48 -08:00
Robert Moore
bf913c651e Tests: Update include file ordering.
ACPICA-specific headers must appear before system headers
like stdio.h
2010-12-17 17:10:23 -08:00
Robert Moore
21f9129788 Update ordering of include files.
The ACPICA headers should appear before any compiler-specific
headers (stdio.h, etc.) so that acenv.h can set any
necessary compiler-specific defines, etc.
2010-12-17 17:07:16 -08:00
Robert Moore
bb624f47b8 Update msvc header for VC++ 9 (VS 2008)
Add a couple new compiler-specific items to eliminate warnings.
2010-12-17 17:06:14 -08:00
Robert Moore
5d65ffe2ef AcpiSrc: Add option to simply inject dual-license header.
No other transforms performed. -h option.
2010-12-16 13:37:15 -08:00
Robert Moore
01e2d545cd Update pc-lint options file.
Allow acpi names in quoted strings within tables with no comment.
2010-12-15 12:57:04 -08:00
Robert Moore
da9aadea0b Debugger: Lock namespace for duration of a namespace dump.
Prevents issues if the namespace is changing underneath the debugger.
Especially temporary nodes, since the debugger displays these also.
2010-12-15 12:39:36 -08:00
Robert Moore
c3baf042e9 Fix namespace race condition.
Fixes a race condition between method execution and namespace walks
that can possibly fault. Problem was apparently introduced in version
20100528 as a result of a performance optimization that reduces the
number of namespace walks upon method exit by using the
delete_namespace_subtree function instead of the delete_namespace_by_owner
function used previously. Bug is in the delete_namespace_subtree function.
dana.myers@oracle.com
2010-12-14 14:43:51 -08:00
Robert Moore
eda0bf9ae9 Update acpica release generation scripts.
Update comments and pkzip25 path.
2010-12-10 08:54:28 -08:00
Robert Moore
b55e472e92 Update version to 20101209.
Version 20101209.
2010-12-09 09:52:55 -08:00
Robert Moore
f4e52ed7d0 Logfile: Changes for version 20101209.
Version 20101209.
2010-12-09 09:52:13 -08:00
Robert Moore
5bf5e86e50 Windows binaries: Update for version 20101209.
Version 20101209.
2010-12-09 09:50:55 -08:00
Robert Moore
0093d40286 Update for warning on 64-bit generation.
Fix a printf in the aml debugger.
2010-12-09 08:26:11 -08:00
Robert Moore
064e90b753 Update examples/tests for new GPE changes.
Add new file to project files, update API tests for GPE
interface changes.
2010-12-08 10:21:23 -08:00
Robert Moore
5c5b53d53c iASL: Update EOF error message fix.
Handle case where source file is null.
2010-12-03 14:22:55 -08:00
Robert Moore
3efb775402 iASL: Fix error message for premature EOF.
Repairs seek off end-of-file case if a syntax error causes the
parser to reach EOF.

Previously:
[*** iASL: Read error on source code temp file gr.src ***]

Now, something like this:
gr.asl(6) : Error    4096 -  parse error and premature End-Of-File

ACPICA bugzilla 891.
2010-12-03 10:26:45 -08:00
Robert Moore
1379c05881 Update ACPICA reference for GPE overhaul.
Added new GPE overview and use section. Added new
interfaces, changes to existing interfaces.
2010-12-02 10:28:59 -08:00
Robert Moore
79a99d76c8 iASL: Clarify operator timeout error message.
Was not clear to many users. ACPICA BZ 893.
2010-12-02 09:55:20 -08:00
Robert Moore
818d9a5f31 New: AcpiNames - Example namespace dump utility.
Shows example of ACPICA configuration for a minimal namespace
dump utility. Uses table and namespace managers, but no AML
interpreter.

Does not add any functionality over AcpiExec. It is a subset
of AcpiExec. The purpose is to show how to partition and
configure ACPICA.
2010-12-01 14:33:02 -08:00
Robert Moore
168720677c Update Windows project files.
Add new GPE file, evxfgpe.c
2010-12-01 13:09:38 -08:00
Robert Moore
3bc77e86ae GPE support code overhaul and enhancement.
Contains the complete overhaul of the GPE support code including
removal of _PRW execution, improved handling of wake GPEs, new
external interfaces, and implicit notify support. ACPICA BZ 858,
870,877. Matthew Garrett, Lin Ming, Bob Moore, Rafael Wysocki.

Note: This support is committed as a single patch here because
of multiple patch backporting from Linux and the resulting
interdependency issues.

See the ACPICA reference for full documentation.
2010-12-01 12:57:25 -08:00
Robert Moore
1d96aaf67d acpisrc: modify include file paths for linux conversion.
Change all instances of "acpi.h" to <acpi/acpi.h>
2010-11-18 13:40:45 -08:00
Robert Moore
81f545c7c6 Increase debugger buffer size for method return objects.
Was 4K, increased to 16K. Also enhanced error messages for debugger
method execution, including the buffer overflow case.
2010-11-17 13:48:30 -08:00
Robert Moore
019ccfe508 Fix problem with Scope() operator during parse load phase.
During load phase (table load or method execution), the scope operator
should not enter the target into the namespace. Instead, it should
open a new scope at the target location. Linux BZ 19462.
2010-11-03 10:40:54 -07:00
Robert Moore
a1d2af4804 Tests: update badcode example file for new iASL error messages.
new _CID/_HID error messages.
2010-11-03 10:38:40 -07:00
Robert Moore
8cc0a33fe7 iASL: Relax alphanumeric restriction on _CID strings.
These strings are "bus-specific" per the ACPI specification, therefore
any characters are acceptable. The only checks that can be performed
are for a null string and perhaps for a leading asterisk.
2010-11-03 10:31:30 -07:00
Robert Moore
378378c888 Disassembler: Decode AccessWidth field of GAS structure.
Decode the encoded width (1=Byte, 2=Word, etc.)
2010-10-15 12:47:07 -07:00
Robert Moore
615836b90d Update version to 20101013.
Version 20101013.
2010-10-13 09:24:43 -07:00
Robert Moore
301d07ccbf Logfile: Changes for version 20101013.
Version 20101013.
2010-10-13 09:24:11 -07:00
Robert Moore
a7897db2ec Windows binaries: Update for version 20101013.
Version 20101013.
2010-10-13 09:23:16 -07:00
Robert Moore
14486424a2 Update file permissions.
No functional change.
2010-10-13 08:09:26 -07:00
Robert Moore
7db2c3bc9a acpica reference: Update for initialization sequence.
Fix/clarify the initialization sequence for installation
of user/host address space handlers. This can only happen
after AcpiEnableSubsystem is called.
2010-10-12 14:52:36 -07:00