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
Robert Moore
f19dd6aefd
acpisrc: fix some non-ansi constructs.
...
Non-ansi comments, etc.
2009-04-14 14:11:44 -07:00
Robert Moore
ef30c37591
Fix implementation of AML BreakPoint operator (break to debugger).
...
The AML BreakPoint opcode will now cause a break into the AML debugger
if it is present/configured. This matches the expected behavior per
the ACPI specification. Previously, only a message was output.
2009-04-14 10:50:38 -07:00
Robert Moore
4012f44bbb
iASL: Fix several warnings for 64-bit build.
...
Added some typecasts for printf-style statements where size_t (ACPI_SIZE)
increases to 64-bits.
2009-04-14 08:08:57 -07:00
Robert Moore
8e962d2f48
Add new header for cygwin generation.
...
New file is accygwin.h. Modifications to other related headers.
2009-04-13 14:09:11 -07:00
Robert Moore
e47bc1fea2
Fix miscellaneous warnings under gcc 4+
...
Some possible warnings with gcc 4+, especially with extended warnings
enabled.
2009-04-13 14:05:16 -07:00
Robert Moore
01004bcfb6
Fix warnings when ACPI_THREAD_ID is configured as a pointer.
...
The default type is an integer, but can be reconfigured as a pointer.
This change fixes some possible warnings when ACPI_THREAD_ID is
defined to be a pointer type.
2009-04-13 13:32:56 -07:00
Robert Moore
68fc5c1456
Miscellaneous lint changes.
...
Unused variables/headers, casting, etc.
2009-04-10 09:16:48 -07:00
Robert Moore
86ba33b4eb
Fix possible dereference of null pointer.
...
Fix dereference of possibly null pointer "Predefined" in the case
where the method is not one of the predefined methods.
2009-04-10 08:31:09 -07:00
Robert Moore
144220d6de
I/O port protection: update for windows compatibility.
...
For windows compatibility,
1) On a port protection violation, simply ignore the request and do not
return an exception (allow the control method to continue execution.)
2) If only part of the request overlaps a protected port, read/write the
individual ports that are not protected.
2009-04-10 07:59:12 -07:00
Robert Moore
0a69fa967a
Fix printf format warnings for 64-bit build.
...
Fix warnings caused by size_t and ACPI_SIZE changing to 64 bits.
2009-04-09 14:56:10 -07:00
Robert Moore
c3204af629
Cleanup byte/word/dword extraction macros, fix possible warnings.
...
Removed unnecessary masking. For the 64-bit macros, removed the
structure overlay. Fixes aliasing warnings seen with gcc 4+
compilers.
2009-04-09 14:51:43 -07:00
Robert Moore
39fa6f4a16
Fix possible warnings for ACPI_THREAD_ID on 64-bit build.
...
Warnings can be generated for printf-like statements that output
the ACPI_THREAD_ID on 64-bit builds, since this type can expand
to 64-bits depending on how it is defined. Use the %p format
specifier to allow the output to automatically expand to 64 bits.
2009-04-09 08:18:21 -07:00
Robert Moore
062aee6953
Remove unused global variables.
...
Remove two unused/obsolete variables.
2009-04-08 14:25:49 -07:00
Robert Moore
560e18a4d1
Fix possible compile warnings for predefined method table.
...
Add extra braces to eliminate compile warnings on some compilers.
Reformatted the methods that return package objects.
2009-04-08 14:23:53 -07:00
Robert Moore
56c5c56229
acpiexec: Fix possible compile warning in aeexec.c
...
A 64-bit constant was causing warnings on some compilers since it
does not have a 'LL' suffix. Since 'LL' is not fully portable,
changed the constant to 32-bit since the value is not important to
acpiexec operation. The messy alternative might involve a new
macro to token-past the 'LL' for some compilers.
2009-04-08 12:29:03 -07:00
Robert Moore
e2896fc024
Change behavior of object copy for mutex/event objects.
...
When copying these internal objects, cannot simply copy the underlying
OS object. A new OS object must be created.
2009-04-08 10:38:08 -07:00
Robert Moore
05430b99b3
Update comments for x2APIC/MADT structures.
...
Update to match latest version of the X2 APIC documentation. Suresh Siddha.
2009-04-07 09:29:59 -07:00
Robert Moore
26c4a8e708
Fix a few warnings for gcc 3.4.4
...
Mostly for acpiexec, one in the core subsystem.
2009-03-27 13:41:59 -07:00
Robert Moore
97078cb239
Cleanup unix OSL - no functional change.
...
Fixed multiple coding styles.
2009-03-27 12:48:22 -07:00
Robert Moore
7db238d714
acpiexec: Add option for debug semaphore timeout (-z).
...
This option will cause all semaphores/mutexes to timeout after
30 seconds with an error message. Used to help diagnose hang conditions.
2009-03-26 13:47:29 -07:00
Robert Moore
e9aa151c2b
Tests: Use iASL quiet mode for batch compiles.
...
Eliminates lots of warning/error messages and speeds up the aslts
batch compilation.
2009-03-26 09:47:40 -07:00
Robert Moore
363b5b728a
Tests: Update/cleanup documentation.
...
Clarified and expanded the "readme" documentation for aslts.
This ad-hoc documentation should probably be merged and integrated
into the ACPICA programmer reference.
2009-03-26 09:22:03 -07:00
Robert Moore
5541c0cae8
Update error/warning interfaces.
...
Moved the module name and line number to the end of the message.
2009-03-25 14:23:48 -07:00
Robert Moore
2f55581d17
Increase max sempahores for windows OSL.
...
Increase tracking array size to 256 in order to run the large
ASLTS test suite.
2009-03-25 12:54:05 -07:00
Robert Moore
e103504655
Tests: Update copyright to 2009.
...
Also removed obsolete developer names and email addresses.
Automated tool removed some extraneous space characters.
2009-03-25 08:45:10 -07:00
Robert Moore
0dc5d93331
iASL: Add option to display summary only.
...
Added -va option to disable all errors and warnings, and display
the summary info only. Useful for large batch compiles.
2009-03-24 14:20:59 -07:00
Robert Moore
4b273c9843
Update version to 20090320.
...
Version 20090320.
2009-03-20 12:40:18 -07:00
Robert Moore
2c44e770de
Logfile: changes for version 20090320.
...
Version 20090320.
2009-03-20 12:39:25 -07:00
Robert Moore
d1b5ab58c2
Windows binaries: update for version 20090320.
...
Version 20090320.
2009-03-20 12:38:30 -07:00
Robert Moore
fe1007778c
Update .gitignore file.
...
More ignored files.
2009-03-20 12:37:33 -07:00
Robert Moore
bd334bf7cc
Fix warnings for 64-bit build.
...
Several warnings in hwvalid.c for ACPI_IO_ADDRESS output on 64-bit.
2009-03-20 12:15:58 -07:00
Robert Moore
3a5c56fbe8
Remove unused code, dsopcode.
...
Unnecessary check of ACPI_STATUS.
2009-03-19 12:20:29 -07:00
Robert Moore
8f5ee6c2b8
Update Windows project files.
...
Add new files created for this release.
2009-03-18 09:42:35 -07:00
Robert Moore
cc3df039ac
Fix index value in package warning message.
...
For predefined method validation. Index value in warning message could
be off by one.
2009-03-18 08:11:24 -07:00
Robert Moore
17cee7ae6b
Update ACPICA Programmer Reference.
...
Removed AcpiOsValidateAddress. Added section for feature descriptions.
Added description of I/O port protection.
2009-03-18 07:21:20 -07:00
Robert Moore
3f956fd779
FADT: Favor 32-bit FACS and DSDT addresses.
...
If both the 32-bit and 64-bit addresses are non-null, use the 32-bit
address. Provides Windows compatibility.
2009-03-17 14:24:33 -07:00
Robert Moore
ae2ea280f4
FADT: Favor 32-bit register addresses for compatibility.
...
Use the 32-bit register addresses whenever they are non-zero. This means
that the 32-bit addresses are favored over the 64-bit (GAS) addresses. The
64-bit addresses are only used if the 32-bit addresses are zero. This
change provides compatibility with all versions of Windows. The worst
case that this solves is when both the 32-bit and 64-bit addresses are
non-zero, but only the 32-bit addresses are actually valid. This appears
to happen in some BIOSes because in this case, Windows uses the 32-bit
addresses.
2009-03-17 14:06:44 -07:00
Robert Moore
8526fe17f6
Fix PCI configuration space port address range.
...
Microsoft website uses 0xCF8-0xD00. Should be 0xCF8-0xCFF
(Two 32-bit registers.)
2009-03-17 12:43:35 -07:00
Robert Moore
0223f20b27
Condense some protected ports.
...
One entry in the protected port table eliminated. Added extra
comments to describe each table entry.
2009-03-16 14:42:56 -07:00
Robert Moore
5b1d2828ff
Remove unused code, no functional change.
...
Removed unused code for dump of args and locals. General cleanup
and splitting of long lines.
2009-03-16 14:41:36 -07:00
Robert Moore
aa203e9e24
Clear PM register write-only bits on reading.
...
Affects PM1 Control register only. When reading the register,
zero the write-only bits as per the ACPI spec.
ACPICA BZ 443. Lin Ming.
2009-03-13 15:05:13 -07:00
Robert Moore
e03f3cac16
acpiexec: split large source file.
...
Split aeexec.c, adding new files aehandlers.c and aetables.c
2009-03-13 13:03:43 -07:00
Robert Moore
703a1afbbe
acpisrc: add total size, average size statistic.
...
For statitics display.
2009-03-13 12:42:28 -07:00
Robert Moore
4df59faf08
Remove obsolete AcpiOsValidateAddress interface.
...
This interface is no longer necessary. Requests should be validated
on a per-field basis, not on the entire operation region.
2009-03-13 08:49:59 -07:00