10875 Commits

Author SHA1 Message Date
Robert Moore
9f66564370 Generic Unix makefiles: Update makefile headers.
Update purpose of the makefile and add a warning that these makefiles
are only suitable for generation within the native ACPICA directory
structure (which is different than Linux, for example.)
2011-06-01 14:51:07 -07:00
Robert Moore
3697135d47 Linux makefiles: Update makefile headers.
Update purpose of the makefile and add a warning that the makefiles
are only suitable for use on Linux, with the Linux directory
structure (different than the native ACPICA directory structure.)
2011-06-01 14:29:54 -07:00
Robert Moore
c5fa8c024c iASL: Update yyerrror/AslCompilerError for "const" errors.
Newer versions of Bison appear to want the interface to yyerror
to be a const char *. ACPICA BZ 923 Pierre Lejeune.
2011-06-01 14:00:02 -07:00
Robert Moore
1adcf06bb3 iASL: Linux makefile: Add -Wstrict-aliasing=0 flag for GCC-4.
GCC-4 is much stricter about aliasing, disable it.
2011-06-01 13:58:33 -07:00
Robert Moore
32d7da58c6 Update .gitignore file.
New files/directories.
2011-06-01 12:57:16 -07:00
Robert Moore
29f3832223 New: AcpiHelp utility.
Provides syntax for ASL operators, and input/output requirements
for predefined ACPI names (Names that start with underscore.)
2011-06-01 12:55:50 -07:00
Robert Moore
86909eaa08 Additional updates for Windows VC9 project files.
Mostly standardize the options across the projects.
2011-06-01 10:45:00 -07:00
Robert Moore
ed36d8b39c Tests: Fix possible buffer overrun in API test.
acpi_pci_link_set.
2011-06-01 10:34:41 -07:00
Robert Moore
7c654ded14 Update Windows VC9 project files.
Cleanup output filenames, add linker program optimization feature.
2011-05-27 14:17:56 -07:00
Robert Moore
38c7978a26 Do not repair _TSS return package if _PSS is present.
We can only sort the _TSS return package if there is no _PSS in the
same scope. This is because if _PSS is present, the ACPI specification
dictates that the _TSS Power Dissipation field is to be ignored, and
therefore some BIOSs leave garbage values in the _TSS Power field(s).
In this case, it is best to just return the _TSS package as-is.
2011-05-27 14:09:46 -07:00
Robert Moore
a4b5938821 Add option to disable method return value validation and repair.
Runtime option can be used to disable return value repair if this
is causing a problem on a particular machine. Also added an option
to AcpiExec (-dr) to set this disable flag.
2011-05-27 12:19:24 -07:00
Robert Moore
b6aa2c7f27 Update to version 20110527.
Version 20110527.
2011-05-27 08:20:45 -07:00
Robert Moore
55bb6d65f5 Logfile: Changes for version 20110527.
Version 20110527
2011-05-27 08:20:14 -07:00
Robert Moore
a6ce5e7035 Windows binaries: Update for version 20110527.
Version 20110527.
2011-05-27 08:19:34 -07:00
Robert Moore
a425397800 Debugger: Update Threads command for new internal object conversion.
New conversion mechanism now supports strings/buffers/packages
in addition to integers. Port Threads command to new mechanism.
2011-05-26 12:54:49 -07:00
Robert Moore
dc30ba95f5 Update generic unix makefile for gcc 4.
Default gcc version is now expected to be 4 or greater.
2011-05-25 08:09:55 -07:00
Robert Moore
325daa1741 Documentation: Update acpica reference for AcpiExec changes.
Adds command line support for complex method arguments
(strings, buffers, packages.)
2011-05-24 14:44:47 -07:00
Robert Moore
179c2fbf0c Add missing _TDL to list of predefined names.
Affects both iASL and core ACPICA.
2011-05-19 12:00:08 -07:00
Robert Moore
3b47687988 Tests: Update API test for changes to AcpiOsGetLine.
Update for changes to this AcpiOs interface.
2011-05-18 09:00:56 -07:00
Robert Moore
250b94d599 Load operator: re-instate most restrictions on incoming table signature.
Now, only allow "SSDT" "OEM", and a null signature.

History:

1) Originally, we checked the table signature for "SSDT" or "PSDT".
2) We added support for OEMx tables, signature "OEM".
3) Valid tables were encountered with a null signature, so we just
   gave up on validating the signature, (05/2008).
4) We encountered non-AML tables such as the MADT, which caused
   interpreter errors and kernel faults. So now, we once again allow
   only "SSDT", "OEMx", and now, also a null signature. (05/2011).
2011-05-17 14:12:47 -07:00
Robert Moore
564f68cff3 AcpiExec: update for debugger changes for complex arguments
Interface change for DbExecute.
2011-05-17 14:10:45 -07:00
Robert Moore
dcabd1cb73 Debugger: Add max buffer length argument to AcpiOsGetLine.
Prevent buffer overflows. Also, now returns status.
ACPICA BZ 920.
2011-05-17 14:07:44 -07:00
Robert Moore
b0f371d61d Debugger/AcpiExec: Add support to pass complex args to methods.
Command-line support for additional method argument types, including
Strings, Buffers, and Packages. ACPICA BZ 917.
2011-05-17 13:33:39 -07:00
Robert Moore
b7ee21f688 Debugger: Add missing method args for Execute/Debug command.
Always setup all arguments required by the method, even if the
command line specifies no arguments, or insufficient arguments.
Use "default" values for the missing arguments.
Also fixes a bug where only 6 method arguments were supported by
these commands instead of the maximum 7 arguments.
2011-05-05 10:24:56 -07:00
Robert Moore
16c9bbd6a3 iASL: Changes to cleanup support for Berkeley yacc.
A general cleanup of code and various options to simplify the
support for two parser generators, Bison and yacc.
2011-04-15 10:03:35 -07:00
Robert Moore
6269c10335 Update to version 20110413
Version 20110413
2011-04-13 09:52:15 -07:00
Robert Moore
04feeaf6b5 Logfile: Changes for version 20110413.
Version 20110413.
2011-04-13 09:51:31 -07:00
Robert Moore
4699778ff4 Windows binaries: Update for version 20110413.
Version 20110413.
2011-04-13 09:50:44 -07:00
Robert Moore
d35df404d7 Merge branch 'master' of ssh://git.moblin.org/acpica 2011-04-13 09:09:57 -07:00
Robert Moore
d76a895f56 Documentation: Update iASL ref for DTC grammar changes.
Expansion of DTC grammar for generic data types and simplified
grammar to make field names optional.
2011-04-13 09:08:28 -07:00
Robert Moore
904b85ce87 badcode.asl: update for iASL return value checking change.
Add a new case for a method that returns no value, but one
is expected.
2011-04-13 09:06:21 -07:00
Robert Moore
2a4a42a8c2 Tests: Update aslts for tighter iASL return value checking.
Fixed two cases where a test defined a method that did not
explicitly return a value, then later expected a return value.
2011-04-13 08:32:54 -07:00
Robert Moore
cfbcf49663 Disassembler/DTC: Remove () and <> style comments in data tables.
Now that DTC has full expression support, we don't want to have comment
strings that start with a paren or a less-than symbol. Now, only the
standard /* and // comments are supported, as well as the bracket []
comments.
2011-04-08 13:59:07 -07:00
Robert Moore
369c0f165c iASL/DTC: Finish support for expression evaluation.
Added a new expression parser that implements c-style operator
precedence and parenthesization. ACPICA bugzilla 908.
2011-04-08 12:27:17 -07:00
Robert Moore
1a9826914d Unix makefiles: remove unreachable-code warning option.
Cannot use this option.
2011-04-08 10:29:11 -07:00
Robert Moore
8985477af8 iASL/DTC: Update template for SLIT table.
Created a more realistic Locality matrix for the template
example.
2011-03-31 13:15:34 -07:00
Robert Moore
b54399b881 iASL/DTC: Update for new grammar features.
Allow generic data types in custom acpi tables.
Field names are now optional.
Any line can be split to multiple lines using continuation char (\).
Large buffers now use line-continuation char and no colon on the
continuation lines.

See grammar update in the iASL compiler reference.
ACPI BZ 910,911. Lin Ming, Bob Moore.
2011-03-31 10:08:52 -07:00
Robert Moore
8fb5b2894d badcode.asl: Show warning for _REG with no region.
Example of warning if a _REG has no corresponding operation region
declaration within the same scope.
2011-03-30 13:09:29 -07:00
Robert Moore
800641e7ef Execute an orphan _REG method under the EC device.
This change will force the execution of a _REG method underneath
the EC device even if there is no corresponding operation region
of type EmbeddedControl. Fixes a problem seen on some machines and
apparently is compatible with Windows behavior. ACPICA BZ 875.
2011-03-30 12:55:18 -07:00
Robert Moore
94191a62fa AcpiXtract: Fix for RSDP and dynamic SSDT extraction.
Update the header validation to support these tables.
Problem introduced in previous version.
2011-03-30 12:46:08 -07:00
Robert Moore
c249ac337d Lint: Update options file.
Supress a couple extraneous warnings.
2011-03-29 13:47:39 -07:00
Robert Moore
d656aa1582 Debugger: module cleanup, no functional change.
Some restructuring and lint changes.
2011-03-29 13:35:28 -07:00
Robert Moore
28839027ff iASL: Check if _REG has a corresponding Operation Region.
Adds a check for each _REG to ensure that there is in fact a
corresponding operation region declaration in the same scope. If
not, the _REG method is not very useful. ACPICA BZ 915.
2011-03-28 14:34:12 -07:00
Robert Moore
d2636dc882 Move ACPI_NUM_PREDEFINED_REGIONS to a more appropriate place.
Moved to where the predefined regions are actually defined.
2011-03-25 13:48:06 -07:00
Robert Moore
13083aae63 Tests: Update for new DataTable region space ID value.
Moved from 8 to 0x7E
2011-03-25 13:29:26 -07:00
Robert Moore
df6001f952 Update internal address SpaceID for DataTable regions.
Moved this internal space id in preparation for ACPI 5.0 changes
that will include some new space IDs.
2011-03-25 13:27:50 -07:00
Robert Moore
75da1e778b Unix makefiles: Update compiler options.
Newer versions of gcc do not compile ACPICA with any levels of
strict-aliasing, set to zero.
2011-03-24 14:58:38 -07:00
Robert Moore
c0febdf30f AcpiExec: Add ECDT table for test purposes.
Added to the default XSDT loaded by AcpiExec.
2011-03-24 14:22:35 -07:00
Robert Moore
bcd722763c Add more methods eligible for NULL package element removal.
This change adds another group of predefined names to the list
of names eligible to have NULL package elements dynamically
removed. This group is the names that return a single
variable-length package containing simple data types such
as integers, buffers, strings. This includes: _ALx,_BCL,_CID,
_DOD,_EDL,_FIX,_PCL,_PLD,_PMD,_PRx,_PSL,_Sx, and _TZD.
ACPICA BZ 914.
2011-03-24 13:04:54 -07:00
Robert Moore
a35e8b2438 iASL: Mark Return() and Return as "Null" return statements.
Since the parser stuffs a "zero" as the return value for these
statements (due to the AML grammar), they were seen as "return with
value" by the semantic checking. They are now seen correctly as
"null" return statements.
2011-03-22 09:34:11 -07:00