11371 Commits

Author SHA1 Message Date
Robert Moore
092a4a9b67 Windows binaries: Update to version 20120518.
Version 20120518.
2012-05-18 13:45:07 -07:00
Robert Moore
df1a5b740c Add FADT error message for GAS BitWidth overflow.
Error for possible overflow during conversion from 32-bit legacy register
addresses to GAS format. The GAS struct contains a one-byte BitWidth field,
meaning that the maximum length of a register is 255 bits. ACPICA BZ 953.
2012-05-17 13:26:10 -07:00
Robert Moore
5ff986a2a9 Introduce AcpiOsWaitEventsComplete interface.
This interface will block until asynchronous events like notifies
and GPEs are complete. Within ACPICA, it is called before a notify or GPE
handler is removed. ACPICA BZ 868.
2012-05-16 13:36:07 -07:00
Robert Moore
59d78f2a9e iASL: Improved pathname support.
For include files, merge the prefix pathname with the file pathname.
Convert backslashes in all pathnames to forward slashes, for
readability.
Include file pathname changes affect both #include and Include()
type operators.
2012-05-11 13:47:17 -07:00
Robert Moore
20a068edcc iASL: Additional fixes to enhance IDE support (-vi).
Changes allow IDE to count the number of warnings and errors.
Output everything to stdout to prevent interleaved output.
2012-05-11 12:43:57 -07:00
Robert Moore
a6f74878ea Fix comment typos, no functional change.
Fix a few typos in comment fields.
2012-05-03 12:15:59 -07:00
Robert Moore
70e176edb5 ACPI 5.0/iASL: Add support for PCC keyword.
Adds support for the PCC keyword for the Register() resource descriptor
macro.
2012-05-03 10:31:24 -07:00
Robert Moore
efe0ca11c5 iASL: Fix IDE output mode (-vi) error messages.
Fixes the format of the error/warning message output to be compatible
with MS Visual Studio (using the -vi option.)
2012-05-03 09:14:15 -07:00
Robert Moore
01d5902500 Tests: Update master ASLTS makefile for test messages.
Fix message output to emit correct iASL flags.
2012-05-02 13:39:56 -07:00
Robert Moore
4c7c03d998 Disassembler: Order External() statements alphabetically.
Improves readability of the External() list.
2012-04-27 13:52:16 -07:00
Robert Moore
278c01eb13 Disassembler: Fixes for External() generation for some operators.
This fixes the External() generation for the Create* field, Alias,
and Scope operators.
1) Create buffer field - fix type mismatch warning on disassembly
2) Alias - implement External support
3) Scope - fix to make sure all necessary externals are emitted.
2012-04-27 13:37:54 -07:00
Robert Moore
c852ab572f iASL/Disassembler: Enhance bad input file error message.
Emit additional error message if the file is 100% ASCII instead
of the required binary file.
2012-04-27 09:56:16 -07:00
Robert Moore
b82d430957 Disassembler: Add support for Operation Region externals.
Adds missing support for operation regions defined in another table,
but referenced via a Field or BankField operator. Generate the
correct External statement.
2012-04-26 12:50:52 -07:00
Robert Moore
139474845b Build script: Update invocation pathname for pkzip25.exe
Do not use windows/dos syntax, this can generate warnings
under cygwin.
2012-04-23 15:09:45 -07:00
Robert Moore
18cf9f9498 iASL/DTC/Preprocessor: Gracefully handle early EOF.
Handle an EOF at the end of a valid line by inserting a newline
and then returning the EOF during the next call to GetNextLine.
Prevents the line from being ignored due to EOF condition.
2012-04-23 15:07:46 -07:00
Robert Moore
e802f64c73 Update to version 20120420.
Version 20120420.
R04_20_12
2012-04-20 13:13:44 -07:00
Robert Moore
6276d14b7b Logfile: Changes for version 20120420.
Version 20120420.
2012-04-20 13:13:05 -07:00
Robert Moore
34b43ee47c Windows binaries: Update to version 20120420.
Version 20120420.
2012-04-20 13:11:53 -07:00
Robert Moore
ef5b5c31e9 ACPICA Reference: Update for multiple notify handlers.
Add text to describe support for multiple notify handlers.
2012-04-20 13:05:59 -07:00
Robert Moore
51377948d9 iASL: Expand allowable byte constants for addres space IDs.
Expanded range from 0x80-0xFF to 0x0A-0xFF.
2012-04-20 09:30:46 -07:00
Robert Moore
1779fe9ec9 iASL/DTC/Preprocessor: Add support to skip escape sequences in strings.
In shared code for DTC/Preprocessor, just skip over any escape
sequences found within double-quoted string literals.
DTC may later implement full support for escape sequences.
2012-04-20 09:28:41 -07:00
Robert Moore
c760d1f111 AcpiExec: Update to test multiple notify handler support.
Installs/removes multiple notify handlers. Also update grammar.asl
to test multiple handlers.
2012-04-20 09:19:48 -07:00
Robert Moore
7adabc5479 Add support for multiple notify handlers.
This change adds support to allow multiple notify handlers on
Device, ThermalZone, and Processor objects. Also re-worked and
restructured the entire notify support code for handler installation,
handler removal, notify event queuing, and notify dispatch to handler.
Lin Ming, Bob Moore, Rafael Wysocki.
2012-04-20 09:00:41 -07:00
Robert Moore
85e2b6f015 Fix object size problem with allocation tracker object dump.
Code that posts additional info about various object during the
dump of outstanding allocations had incorrect object sizes.
This fix corrects the three incorrect cases.
2012-04-13 14:16:56 -07:00
Robert Moore
5a77df1622 Tests/ASLTS: Update for iASL/descriptor fixes.
Update for iASL fix for StartDependendent* descriptors. The iASL bug
did not take into account the length of these descriptors, affecting
the offsets for any resource tags that follow.
2012-04-06 14:16:48 -07:00
Robert Moore
ac3c089229 Tests/ASLTS: Update error output routines, reformat output.
Cleanup output, add decimal values in addition to hex values for
integers.
2012-04-06 14:15:59 -07:00
Robert Moore
4d6063a105 Tests/ASLTS: Reduce warnings related to use of Switch().
Serialize methods that use Switch(), use ToInteger where appropriate.
2012-04-04 14:15:37 -07:00
Robert Moore
b762724fb0 Tests: for ASLTS, enable iASL error messages and send to logfile.
Messages sent to error.txt file.
2012-04-04 14:14:35 -07:00
Robert Moore
05833ed9d8 iASL: Print all error/warning messages to stderr by default.
Most were sent to stdout.
2012-04-04 14:13:15 -07:00
Robert Moore
f6ce330af4 Tests: Update ASLTS makefiles and scripts.
Emit all compiler output to the aml/compiler.txt file.
Remove two extraneous unrecognized operator messages.
2012-04-04 10:23:43 -07:00
Robert Moore
d832de2ef2 Lint fixes for AcpiWrite, no functional changes.
AcpiWrite was widened to 64-bit data, this change eliminates
some lint warnings.
2012-04-03 11:56:15 -07:00
Robert Moore
b99aec25a4 iASL: Update Linux/Unix makefiles for new file.
Add aslsupport.l
2012-04-02 14:52:16 -07:00
Robert Moore
3b6f9c48e5 iASL: Update windows project file for new source file.
Add aslsupport.l
2012-04-02 14:51:23 -07:00
Robert Moore
0adca1bedd iASL: Split out C support functions from main lex file.
Split out C functions from aslcompiler.l to aslsupport.l for
improved readability and maintainablity.
2012-04-02 14:49:38 -07:00
Robert Moore
4817fab2d8 iASL: Remove extraneous error message if no parse tree created.
If early errors happen during the parsing stage, a parse tree
may not be created. An "internal" error was emitted. Add a check
for actual errors so that the internal error is only emitted
if no other errors were generated during the parse.
2012-03-30 10:14:26 -07:00
Robert Moore
e18caf1881 iASL: Add option to treat warnings as errors.
Adds the -we option to return non-zero status on any warnings,
as well as errors. ACPICA BZ 948.
2012-03-30 09:53:15 -07:00
Robert Moore
ebd7f0820d iASL: Cleanup/standardize main lex file.
Standardize function names, general cleanup.
2012-03-29 13:47:04 -07:00
Robert Moore
e97fd500e5 iASL: Cleanup #line handling code.
Miscellaneous cleanup; Remove debug output code.
2012-03-29 13:11:15 -07:00
Robert Moore
1522d69221 iASL: De-tabify main parser file for consistency.
ACPICA source does not use tabs, since they are not consistent
across systems.
2012-03-28 14:53:12 -07:00
Robert Moore
73a001b948 iASL: Remove #line and #include from main parser. 2012-03-28 14:42:41 -07:00
Robert Moore
35f1292815 iASL: Implement #line directive in compiler lexer.
Move main compiler support for #line from the parser to the lexer.
This simplifies the implementation, and allows #line to appear
within any ASL statement (the entire line where #line appears
is simply removed from the input after the new line number is set.)
2012-03-28 14:18:42 -07:00
Robert Moore
b95bbfbb76 Dynamic repair: fix for package repair regression.
Fixes a regression introduced in commit
c995fed15ab41f6feae1299876271ea330f5c1c5
"Support to add Package wrappers">
2012-03-28 14:15:24 -07:00
Robert Moore
53807af2a9 Object dump routines: Use common function for string output.
For ACPI string objects, always use the common string dump function,
AcpiUtPrintString. This function surrounds the string with quotes
and handles allowed escape sequences.
2012-03-28 08:17:45 -07:00
Robert Moore
5734623671 iASL: Abort on currently unsupported macro definitions.
Macros are not yet implemented, just abort the compiler if one
is detected, since it will cause serious cascading syntax errors.
2012-03-23 14:06:44 -07:00
Robert Moore
e48bee4081 iASL: Fix use of StartDependent descriptor with resource tags.
Fixes a problem where resource tags that refer to descriptors within
the scope of a StartDependent or StartDependendentNoPri descriptor
had an incorrect offset. The length of the StartDependent descriptor
must be taken into account when calculating the tag offset.
Reported by Petr Vandrovec. ACPICA BZ 949.
2012-03-23 13:49:46 -07:00
Robert Moore
3243ed7087 iASL: Add pass-thru #line support for correct line numbers.
Preprocessor now adds #line directives so that the compiler will
emit error messages with the proper line number in the original
source file.
2012-03-23 13:05:05 -07:00
Robert Moore
651031314f AML Parser: Fix two possible memory leaks in error path.
Fixes a couple of memory leaks in the error recovery path.
Jesper Juhl, Lin Ming.
2012-03-22 14:36:32 -07:00
Robert Moore
0c5aa752d8 iASL: Add option to disable preprocessor.
The -Pn will disable/bypass the preprocessor completely.
2012-03-21 12:16:55 -07:00
Robert Moore
ea679c0f8b Update to version 20120320.
Version 20120320.
R03_20_12
2012-03-20 09:14:22 -07:00
Robert Moore
5827fcddf5 Logfile: Changes for version 20120320.
Version 20120320.
2012-03-20 09:13:51 -07:00