Commit Graph

10569 Commits

Author SHA1 Message Date
Robert Moore
4580a813dd Integrate FreeBSD changes for acfreebsd.h
Changes from Jung-uk Kim [jkim@FreeBSD.org]
2010-03-31 13:19:24 -07:00
Robert Moore
4f19d3be5a Update version to 20100331.
Version 20100331.
2010-03-31 09:23:49 -07:00
Robert Moore
3a6f790649 Logfile: changes for version 20100331.
Version 20100331.
2010-03-31 09:22:09 -07:00
Robert Moore
28c6b69a26 Windows binaries: Update for version 20100331.
Version 20100331.
2010-03-31 09:21:10 -07:00
Robert Moore
dc2a536be0 Fix AcpiReallocateRootTable to set new root table size correctly.
New additional table count was not added into the table size
(count of total available slots.)
2010-03-31 08:15:59 -07:00
Robert Moore
8c28b93eee Update part 2: DSDT copy/detection.
Now handles the case where the root table can be reallocated, which
would invalidate the original pointer.
2010-03-31 07:51:40 -07:00
Robert Moore
2a8d54c70f Documentation: Update ACPICA reference for GPE changes.
Also added copy DSDT option.
2010-03-30 08:12:36 -07:00
Robert Moore
96a1c010a3 iASL: Update -g option (get local tables) for Windows 7.
Changed requested permissions for registry access.
Updated error messages to format/display windows exception code.
2010-03-30 08:09:10 -07:00
Robert Moore
ba050b9437 Tests: update file permissions for ASLTS scripts.
Execute permissions added.
2010-03-26 16:06:57 -07:00
Robert Moore
45f0b38a92 Major update for GPE support code for shared GPEs.
Adds a reference count mechanism to simplify support of shared GPEs that
require multiple device drivers. Several external interfaces have changed.
One external interface has been removed.

Changed:
AcpiEnableGpe
AcpiDisableGpe
AcpiClearGpe
AcpiGetGpeStatus

Removed:
AcpiSetGpeType

New:
AcpiSetGpe

See the ACPICA Programmer Reference for details.
Matthew Garrett
Bob Moore
Rafael Wysocki
2010-03-26 15:54:55 -07:00
Robert Moore
1e7497f794 Update DSDT copy/detection.
Move initialization of DSDT pointer. Emit address of DSDT in
the dump of both table headers (good/bad DSDT).
2010-03-26 15:52:04 -07:00
Robert Moore
674f1c5b79 Set DSDT copy option to FALSE by default.
Do not copy DSDT unless option is specifically set.
2010-03-25 13:02:46 -07:00
Robert Moore
c6ad540dbe Add subsystem option to force copy of DSDT to local memory.
Optionally copy the entire DSDT to local memory (instead of simply
mapping it.) There are some BIOSs that corrupt or replace the original
DSDT, creating the need for this option. Default is FALSE, do not copy
the DSDT.
2010-03-24 15:30:14 -07:00
Robert Moore
3ff5a497b6 Add detection of corrupted/replaced DSDT.
This change adds support to detect a DSDT that has been corrupted
and/or replaced from outside the OS (by firmware). This is typically
catastrophic for the system, but has been seen on some machines.
Lin Ming, Bob Moore.
2010-03-24 14:43:33 -07:00
Robert Moore
b503f0621a Add write support for DataTable operation regions.
The original implementation only supported reading from a DataTable
region. However, some machines have been seen that actually write to
the ACPI table contained in such a region. This change adds support
for writing to a DataTable region.
2010-03-24 10:13:46 -07:00
Robert Moore
63c14929ca iASL: Add typechecking for Return() values for predefined names.
Implements some typechecking for values returned by any ACPI
predefiend control methods. Only the direct return of static (unnamed)
values are checked. For example, Return(1). ACPICA BZ 786.
2010-03-24 08:40:58 -07:00
Robert Moore
f74385b957 Untabify acfreebsd.h
Had mixed tabs/spaces.
2010-03-18 14:49:39 -07:00
Robert Moore
0f0cf23019 Fix for AcpiReallocateRootTable for incorrect root table copy.
When copying the root table to the new allocation, the length used
was incorrect. The new size was used instead of the current table size,
meaning too much data was copied. Alexey Starikovskiy.
2010-03-18 14:02:30 -07:00
Robert Moore
84b1edd1ee Disassembler: fix possible fault when generating External() statements.
Introduced in commit ae7d6fd(Disassembler: Properly handle externals
with parent-prefix (carat). Fixes a string length allocation calculation.
Lin Ming.
2010-03-17 14:29:46 -07:00
Robert Moore
12f1f95afc Update comments/headers, no functional change.
Also split some long lines.
2010-03-12 12:23:20 -08:00
Robert Moore
1690062af9 iASL: Fix predefined name object regression.
Fixes a problem introduced in version 20100304. An error is incorrectly
generated if a predefined name is declared as a static named object with
a value defined using the keywords "Zero", "One", or "Ones". Lin Ming.
2010-03-12 10:28:45 -08:00
Robert Moore
9dff111362 Automated cleanup.
Some extra spaces removed.
2010-03-12 08:21:14 -08:00
Robert Moore
23ced2606d Update version to 20100304.
Version 20100304.
2010-03-04 09:38:05 -08:00
Robert Moore
607198b2a8 Logfile: changes for version 20100304.
Version 20100304.
2010-03-04 09:35:43 -08:00
Robert Moore
d76d196385 Windows binaries: Update for version 20100304.
Version 20100304.
2010-03-04 09:33:43 -08:00
Robert Moore
ba3c4a434a Fix for possible fault in AcpiExReleaseMutex.
Fixed a problem with the AML Mutex handling function AcpiExReleaseMutex
where the function could fault under the very rare condition when the
interpreter has blocked, the interpreter lock is released, the
interpreter is then reentered via the same thread, and attempts to
acquire a mutex that was previously acquired. FreeBSD report 140979. Lin Ming.
2010-03-04 08:42:11 -08:00
Robert Moore
fa63142810 Documentation: Update ACPICA reference.
Add new global for AML debug object, clarify use of the
ACPI_OBJECT data type.
2010-03-04 08:17:13 -08:00
Robert Moore
0012dfcd02 Add local cache interfaces for testing purposes only.
Optional code for windows interface only.
2010-03-03 10:05:14 -08:00
Robert Moore
a7671a5532 Fix use of 'register' keyword in MCHI table definition.
This causes problems on some C compilers (not all).
2010-03-03 09:13:28 -08:00
Robert Moore
23367dc568 Standardize integer output for ACPICA warnings/errors.
Always use 0x prefix for hex output, use %u for integer output (all
integers are unsigned.)

Affects ACPI_INFO, ACPI_ERROR, ACPI_WARNING, and ACPI_EXCEPTION.
ACPICA BZ 835.
2010-03-02 15:09:46 -08:00
Robert Moore
a222a62c35 Update windows project files.
New files: aslpredef.c, exdebug.c.
2010-03-02 13:49:36 -08:00
Robert Moore
eeb88574ee iASL: Add predefined name checking for static names.
Adds typechecking for static (non-control-method) predefined names.
Migrates compiler to use the common predefined name table (acpredef.h).
Adds a single new file, aslpredef.c. ACPICA BZ 832.
2010-03-02 13:43:56 -08:00
Robert Moore
ab686ff50c Add support for MCHI table.
Disassembler and header file support for MCHI -
Managment Controller Host Interface table.
2010-03-02 10:53:43 -08:00
Robert Moore
e51c2639b6 Enhance configuration for output of AML Debug Object.
This change will enable debug object output via a global variable,
AcpiGbl_EnableAmlDebugObject. This will help with remote machine
debugging. Also, moved all debug object support code to a new file,
executer/exdebug.c. Entire debug object module can now be configured
out of the ACPICA build if desired. Lin Ming, Bob Moore.
2010-02-26 13:48:18 -08:00
Robert Moore
376714afc3 Update version to 20100121.
Version 20100121.
2010-01-21 10:01:14 -08:00
Robert Moore
97803f48db Logfile: changes for version 20100121.
Version 20100121.
2010-01-21 09:59:27 -08:00
Robert Moore
0c98276f9f Windows binaries: Update for version 20100121.
Version 20100121.
2010-01-21 09:48:40 -08:00
Robert Moore
d66a7a2bbb Documentation: Update ACPICA reference.
Update for removal of ACPI_INTEGER data type.
2010-01-21 09:47:28 -08:00
Robert Moore
fd3eb07da7 Update .gitignore file.
Add new ignored directories.
2010-01-21 09:05:43 -08:00
Robert Moore
9061775a81 Remove unused UINT32_STRUCT type.
This type is not used in ACPICA and thus removed.
2010-01-19 14:28:21 -08:00
Robert Moore
594479d5c6 Disassembler: Remove obsolete "Integer64" field in parse object.
This field is no longer needed. The "Integer" field is 64 bit and
is sufficient.
2010-01-19 14:17:17 -08:00
Robert Moore
bce1fbe326 Remove obsolete ACPI_INTEGER (acpi_integer) type.
This type was introduced as the code was migrated from ACPI 1.0 (with 32-bit
AML integers) to ACPI 2.0 (with 64-bit integers). It is now obsolete and
this change removes it from the ACPICA code base, replaced by UINT64.
The original typedef has been retained for now for compatibility with
existing device driver code.
2010-01-19 13:39:26 -08:00
Robert Moore
2cd7f64bf8 Predefined name repair: fix NULL package elements.
For the predefined methods that return fixed-length packages (or subpackages),
attempt repair for a NULL element. Create an Integer of value 0, a NULL
String, or a zero-length buffer as appropriate. ACPICA BZ 818.
Lin Ming, Bob Moore.
2010-01-15 12:50:21 -08:00
Robert Moore
e2cf79783b AcpiGetDevices: Eliminate unnecessary _STA calls.
In the case where a specific _HID is requested, do not run _STA until a _HID
match is found. This eliminates potentially dozens of _STA calls during
a search for a particular device/HID.

Fixes ACPICA BZ 828. Lin Ming.
2010-01-08 13:05:56 -08:00
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