10599 Commits

Author SHA1 Message Date
Robert Moore
17e7c9672f ACPI 4.0: iASL - Add new predefined/reserved names.
Added 31 new predefined names to the reserved list. Includes the required
number of parameters and whether a value must be returned.
2009-06-18 12:40:47 -07:00
Robert Moore
745f52e0c3 ACPI 4.0: iASL/Disassembler - IPMI keyword support.
Adds support for the new IPMI operation region keyword.
ACPICA BZ 771, 772. Lin Ming.
2009-06-18 09:11:27 -07:00
Robert Moore
235329a8f3 Fix possible memory leak in nspredef.c
Fixed a possible leak when an attempt is made to repair a return object.
The only current repair is an automatic buffer to string conversion.
2009-06-12 13:33:19 -07:00
Robert Moore
95dd0f01c6 Major update for AcpiGetObjectInfo external interface.
Completed a major update for the AcpiGetObjectInfo external interface.
Changes include:
 - Support for variable, unlimited length HID, UID, and CID strings
 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.)
 - Call the _SxW power methods on behalf of a device object
 - Determine if a device is a PCI root bridge
 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
These changes will require an update to all callers of this interface.
See the ACPICA Programmer Reference for details.
2009-06-10 14:07:55 -07:00
Robert Moore
dd31d3de28 Remove duplicate prototypes from header.
Two duplicates in acdebug.h.
2009-06-02 15:19:49 -07:00
Robert Moore
c63f4ddb0f Add 64-bit support to AcpiRead and AcpiWrite.
Needed by drivers for new ACPi tables.
Internal versions of these functions still use 32-bit max transfers,
in order to minimize disruption and stack use for the standard ACPI
registers (FADT-based).
2009-05-27 13:06:39 -07:00
Robert Moore
6cbe8169d4 Delete obsolete 16-bit files.
No longer necessary since 16-bit support has been removed from
ACPICA. ACPICA BZ 776.
2009-05-22 10:23:06 -07:00
Robert Moore
798539da85 Remove duplicate extern declarations for public globals.
Some were defined twice, causes a warning with gcc -Wredundant-decls.
2009-05-22 09:36:29 -07:00
Robert Moore
c99866ffd8 Fix several pointer casts to avoid possible compile warnings.
Fixes warnings with gcc -Wcast-qual flag.
2009-05-22 09:20:09 -07:00
Robert Moore
947813df24 Update version to 20090521.
Update version number.
2009-05-21 08:04:08 -07:00
Robert Moore
af3974807b Logfile: changes for version 20090521.
Version 20090521.
2009-05-21 08:03:13 -07:00
Robert Moore
1137c9525c Windows binaries: update for version 20090521.
Version 20090521.
2009-05-21 08:01:29 -07:00
Robert Moore
f63d5b83e7 Update comment.
No functional change.
2009-05-21 07:42:34 -07:00
Robert Moore
66a7952f1b Region deletion: Ensure region object is removed from handler list.
Prevents a possible fault when a dynamic operation region is
deleted. ACPICA BZ 507. Lin Ming.
2009-05-20 14:47:25 -07:00
Robert Moore
64b824d3c7 Disable preservation of SCI enable bit (SCI_EN).
Preserving this bit breaks some machines. Not preserving this bit seems
to work OK in all cases, even though this goes against the ACPI spec.
2009-05-20 13:52:25 -07:00
Robert Moore
07e1415b52 Disassembler: Fixed some issues with DMAR, HEST, MADT tables.
Some issues with sub-table disassembly and handling invalid
sub-tables. Attempt recovery after an invalid sub-table ID.
2009-05-20 09:54:18 -07:00
Robert Moore
b9d03a5871 Eliminate extra call to NsGetParentNode.
Was called twice in the same function with the same parameter.
Alex Chiang.
2009-05-19 07:49:09 -07:00
Robert Moore
f7baaa44f5 Simplify internal operation region interface.
Changed address parameter to a simple offset. This removes the need for
the caller to access the region object to obtain the physical address.
2009-05-15 14:33:05 -07:00
Robert Moore
39a897a21d Update Load() to use operation region interfaces.
Replace memory mapping with region access calls. Now, all region
accesses go through the region handler as they should.
2009-05-15 08:26:13 -07:00
Robert Moore
386c279940 Documentation: Update for new AcpiInstallMethod.
Add description and examples for AcpiInstallMethod.
2009-05-14 08:05:19 -07:00
Robert Moore
7abcc2ea10 New: AcpiInstallMethod - install a single control method.
This interface enables the override or creation of a single control
method. Useful to repair a bug or install a missing method.
2009-05-13 13:04:01 -07:00
Robert Moore
43cfa272f6 Update acfreebsd.h.
New changes provided by FreeBSD, Jung-uk Kim.
2009-05-13 12:50:28 -07:00
Robert Moore
c31764aaf7 Invalidate DdbHandle after table unload.
Mark the DdbHandle as invalid after the table it refers to is unloaded.
This is needed because the handle itself may not be deleted after
the table unload, depending on whether it has been stored in a named
object by the caller.
2009-05-13 08:27:59 -07:00
Robert Moore
89dddabda1 Fix reference count issues for DdbHandle object.
Fix a problem where the DdbHandle could be prematurely deleted, possibly
causing a fault. Lin Ming.
2009-05-12 08:26:54 -07:00
Robert Moore
200372599b Simplify and optimize NsGetNextNode function.
Reduced parameter count and reduced code for this frequently used
function.
2009-05-11 13:13:54 -07:00
Robert Moore
7224854f08 Add grammar.asl test module.
This module provides a quick test of both the compiler and interpreter.
It excercises most of the ASL constructs and operators.
2009-05-11 13:11:15 -07:00
Robert Moore
847f19b87f Update iASL/Linux makefile.
Change ordering of linker flags.
2009-05-08 12:47:59 -07:00
Robert Moore
eab3288b4b Additional validation of _PRT packages (resource mgr).
Fixes a possible fault when parsing an ill-formed _PRT package.
2009-05-07 13:12:59 -07:00
Robert Moore
b64d850f1f Fix DebugObject output for DdbHandle objects.
Was putting several extra spaces on the next line.
2009-05-07 13:03:27 -07:00
Robert Moore
506914294f Fix allowable release order for ASL mutex objects.
The ACPI 4.0 specification has been changed to make the SyncLevel
for mutex objects more useful. When releasing a mutex, the synclevel
of the mutex must now be the same as the current sync level. This
makes more sense. This change updates the code to match the spec.
2009-05-01 15:00:05 -07:00
Robert Moore
95b36bc38b Mutex support: Fix release ordering issue and current sync level.
Fixes a problem where if multiple mutexes of the same sync level are
acquired but then not released in strict opposite order, the current
sync level becomes confused and can cause errors. ACPICA BZ 471.
2009-05-01 12:54:20 -07:00
Robert Moore
3fda08b9ad Lock local cache during purge.
Cache must be locked during object deletion. Andrew Baumann.
2009-04-28 09:46:35 -07:00
Robert Moore
7499d41f7b Tests: Enable full multithread test.
Test can now be enabled because of a change to iASL compiler.
(See ACPICA BZ 469)
2009-04-24 12:31:54 -07:00
Robert Moore
a3c67073f1 Debugger: Lock method args for multithread command.
Prevents corruption of the global method arg structure when
multiple threads are created. Lin Ming.
2009-04-24 12:28:49 -07:00
Robert Moore
57b4f0c443 Merge branch 'master' of ssh://git@git.moblin.org/acpica 2009-04-22 12:46:34 -07:00
Robert Moore
5190ee5752 Update version to 20090422.
Version 20090422.
2009-04-22 12:34:59 -07:00
Robert Moore
6ed59e3115 Logfile: changes for version 20090422.
Version 20090422.
2009-04-22 12:33:05 -07:00
Robert Moore
7a92eea32c Windows binaries: update for version 20090422.
Version 20090422.
2009-04-22 12:31:43 -07:00
Robert Moore
8e0682143f Tests: Add example file to setup test environment.
Various variables for iASL, acpiexec, etc.
2009-04-22 10:28:16 -07:00
Robert Moore
db2eb1f5b8 Add makefiles for generic unix generation of acpica.
Makefiles to generate the acpica tools and utilities from within
the original acpica source tree.
2009-04-22 09:48:38 -07:00
Robert Moore
b7def3a7cb iASL: Fix for line-terminator transparency.
Ensure that iASL works correctly with both LF and CR/LF terminated files,
on both unix-like and windows platforms.
2009-04-21 14:49:51 -07:00
Robert Moore
32b66e9626 Linux OSL: cleanup/update/merge, add ACPI_THREAD_ID.
Merge the OSL with the actual file used by Linux, so that the file does
not require patching when integrated with Linux. General cleanup and
some restructuring.
2009-04-16 15:34:06 -07:00
Robert Moore
4feeacbe2a Remove use of a couple non-ANSI C library functions.
Removed calls to isascii and stricmp/strcasecmp for iASL and acpisrc.
2009-04-16 13:38:00 -07:00
Robert Moore
75165fd655 Win OSL: comment update.
Fix non-ansi comment.
2009-04-15 13:48:59 -07:00
Robert Moore
90412706a2 Unix OSL: Fix return value for ALTERNATE_TIMEOUT.
Was using break improperly.
2009-04-15 13:45:45 -07:00
Robert Moore
47481d6ad7 Add missing switch/defaults and prototypes.
Mostly empty default statements to pass lint/strict compiler warnings.
2009-04-15 12:57:02 -07:00
Robert Moore
78c5f575d4 Add missing function prototypes.
Mostly local prototypes that were missing.
2009-04-15 09:56:33 -07:00
Robert Moore
0a7105bb76 iASL: Fix warning under gnu Bison 2.3
Small change to one rule.
2009-04-15 07:28:10 -07:00
Robert Moore
3afe4f6545 Unix OSL: cleanup AcpiOsGetThreadId function.
Also add implemenation note about ACPI_THREAD_ID type.
2009-04-14 14:22:28 -07:00
Robert Moore
fb0ccef1ea Unix OSL: add alternate implementation for sem_timedwait.
This primitive is apparently buggy on cygwin.
2009-04-14 14:14:51 -07:00