Commit Graph

11380 Commits

Author SHA1 Message Date
Robert Moore
fe0d1f9f5a Fix externalize name to complete migration to ACPI_MOVE_NAME.
Fix for name segment copy and validation.
2012-10-12 14:17:02 -07:00
Robert Moore
4322675fc9 Add starting offset parameter to common dump buffer routine.
Rename the dump buffer routines. Offset parameter can specify
the buffer starting offset that is used when displaying each
line of the buffer.
2012-10-12 13:44:40 -07:00
Robert Moore
ef898130ec Deploy ACPI_MOVE_NAME across ACPICA source base.
Replaces instances of strncpy(...,4) for ACPI_NAMEs.
ACPI_MOVE_NAME optimizes these to a single 32-bit copy on machines
that support misaligned transfers.
2012-10-12 12:54:03 -07:00
Robert Moore
d4fa24b0bf Update support for ACPI 5.0 MPST table.
Fixes some problems introduced by late changes to the table as it
was added to the ACPI 5.0 specification.
Both the table compiler and the disassembler and the main header
support for the table.
2012-10-12 12:21:06 -07:00
Robert Moore
7f49766105 Enhance error reporting for invalid opcodes and bad ACPI_NAMEs.
For disassembler, dump the 48 bytes surrounding the invalid opcode.
Fix incorrect table offset reported for invalid opcodes.
Report original 32-bit value for bad ACPI_NAMEs.
2012-10-12 12:11:12 -07:00
Robert Moore
80328e4bf7 Add ACPI_MOVE_NAME macro to optimize 4-byte ACPI_NAME copies.
Resolves to a 32-bit move for the normal case, strncpy on machines
that do not support misaligned transfers.
2012-10-12 12:08:39 -07:00
Robert Moore
ff56b2ded9 Disassembler: Add option (-vt) to also dump binary table data in hex.
Optionally dump the binary table data of an AML table (DSDT/SSDT)
after the normal disassembly of the table.
2012-10-11 15:00:00 -07:00
Robert Moore
9f0a65f188 iASL: For -f option (force), allow non-ASCII characters in input.
If -f is specified, allow an input file with non-ASCII characters.
2012-10-11 14:27:14 -07:00
Robert Moore
db012cbc7f AcpiExec: Improve algorithm for tracking memory leaks.
Add some intelligence to the code that maintains the global list
of allocated memory. The list is now ordered by allocated memory
address, significantly improving performance.
When running AcpiExec on the ASLTS test suite, speed improvements
of 3X to 5X are seen, depending on the platform and/or the
environment.
2012-10-11 09:33:27 -07:00
Robert Moore
1dbda3d3e1 Tests: Miscellaneous ASLTS fixes.
Remove several tests that cause errors because the tests are invalid
or the basis of the tests are invalid. Fix several error reporting
issues. Guan Chao.
2012-10-11 08:57:11 -07:00
Robert Moore
8d96522dda Update readme files for ACPICA and iASL generation.
Miscellaneous updates for these help files.
2012-10-05 09:09:40 -07:00
Robert Moore
8806b15e5e Add debug print message for mutex objects that are force-released.
At control method termination, any currently acquired mutex objects
are force-released. Add a new message for each one that is released.
2012-09-28 09:55:43 -07:00
Robert Moore
8ab2f175bf Tests/aapits: Remove extraneous spaces in C source code.
Remove extra spaces after periods and commas.
2012-09-27 09:39:08 -07:00
Robert Moore
2406636978 Small fix for standard Intel legal header.
Remove an extraneous space after a comma, for consistency.
2012-09-27 09:36:49 -07:00
Robert Moore
1855422e72 acpibin: Add error check after fwrite invocation.
Always check for write errors.
Feng Tang. ACPICA BZ 977.
2012-09-26 13:46:19 -07:00
Robert Moore
d42be86052 Resource Mgr: Small fix for buffer size calculation.
Fixes a one byte error in the output buffer calculation
Feng Tang. ACPICA BZ 849.
2012-09-26 13:45:01 -07:00
Robert Moore
a28a14bc42 Remove extra spaces after periods in the Intel license.
For consistency with the rest of the source code.
2012-09-26 13:17:19 -07:00
Robert Moore
d91aaaf0ae Remove extra spaces after periods within comments.
This makes all comments consistent.
2012-09-26 13:14:58 -07:00
Robert Moore
b6e1206fc1 acpisrc: Add support to remove extra spaces after a period.
Improves the consistency of the source. Invoked using -c option.
2012-09-26 13:04:58 -07:00
Robert Moore
a025d2fe1d Update local C library module comments for ASCII table.
Improve the commenting of the table.
2012-09-26 12:43:41 -07:00
Robert Moore
8200302ec1 Small lint changes, no functional change.
fix va_arg and duplicate macro name.
2012-09-26 11:28:27 -07:00
Robert Moore
5ad5821df2 Fix for potential filename buffer overflow (osunixdir.c)
Increase size of structure. Colin Ian King.
2012-09-26 10:07:57 -07:00
Robert Moore
2b3982595c Fix for predefined name loop during ACPICA initialization.
If a name cannot be created, simply continue on to the next name.
Do not attempt to use the name, do not abort.
With assistance from Colin Ian King.
2012-09-26 10:05:25 -07:00
Robert Moore
5cf391810f Fix some typos in comments. No functional changes.
Some small fixes within commments. Colin Ian King.
2012-09-25 12:28:13 -07:00
Robert Moore
d57cfb09bc iASL/table_compiler: Some additional return statement fixes.
Add parens around the returned expression.
2012-09-21 14:10:51 -07:00
Robert Moore
fd8f80e5d4 ACPICA core: Cleanup empty lines at file start and end.
Maintenance for source code consistency.
2012-09-21 13:46:56 -07:00
Robert Moore
c0b396e9a2 iASL/Tools: Cleanup empty lines at file start and end.
Maintenance for source code consistency.
2012-09-21 13:45:48 -07:00
Robert Moore
f4dbc0287a AcpiSrc: Add cleanup function to remove empty lines at file start/end.
To promote consistency, this feature removes all empty lines at the start
of the file and at the end of the file.
2012-09-21 13:42:34 -07:00
Robert Moore
6c783a232a Update linux scripts.
Use the new generic makefiles for acpisrc utility.
Lv Zheng.
2012-09-21 10:34:30 -07:00
Robert Moore
8086d9e839 Tests/AAPITS: return statement audit.
Ensure that all normal return statements surround the return
expression (value) with parens, for consistency.
2012-09-21 09:51:55 -07:00
Robert Moore
087f252d98 iASL/Tools: return statement audit.
Ensure that all normal return statements surround the return
expression (value) with parens, for consistency.
2012-09-21 09:50:35 -07:00
Robert Moore
99b5831b9d Audit/update for ACPICA return macros and debug depth counter.
1) Ensure that all functions that use the various TRACE macros also
use the appropriate ACPICA return macros.
2) Ensure that all normal return statements surround the return
expression (value) with parens.

Guan Chao, Tang Feng, Zheng Lv, Bob Moore.
ACPICA Bugzilla 972.
2012-09-21 09:44:23 -07:00
Robert Moore
2afe4c5a43 Update version to 20120913.
Version 20120913.
2012-09-13 12:29:05 -07:00
Robert Moore
84f713743c Logfile: Changes for version 20120913.
Version 20120913.
2012-09-13 12:28:19 -07:00
Robert Moore
54983bb3f6 Test Suites: Update ASLTS object reference tests.
Fixes a couple bugs in the object reference tests.
Guan Chao.
2012-09-13 09:37:51 -07:00
Robert Moore
8027ed3ba2 Table Manager: Merge duplicate code (root table)
Merge/remove duplicate code in the root table resize functions.
One function is external, the other is internal.
Lv Zheng, ACPICA BZ 846.
2012-09-13 09:29:06 -07:00
Robert Moore
19b67bf928 Disassembler: Fix possible fault for Resource Descriptors.
Fixes a possible fault during the disassembly of resource descriptors
when a second parse is required because of the invocation of external
control methods within the table. With assistance from adq@lidskialf.net.
ACPICA BZ 976.
2012-09-13 08:03:57 -07:00
Robert Moore
e487bdbcc7 Debugger: Add "evaluate" as a synonym for "execute" command.
Ease-of-use. Also reinforces concept of "object evaluation" versus
strict control-method execution.
2012-09-06 12:32:16 -07:00
Robert Moore
dbf3ef2b43 Remove obsolete "Linux" makefiles.
These makefiles are obsolete and have been replaced by the generic
unix makefiles under acpica/generate/unix.
2012-09-06 08:49:17 -07:00
Robert Moore
0ee9c13eee iASL: Cleanup intermediate file deletion.
Add local delete file function.
Add Control-C handler that deletes any dangling files.
2012-09-05 13:17:33 -07:00
Robert Moore
e6d56d167f Makefiles: Ensure that binary files always copied properly.
Minor rule change to ensure that the final binary output files
are always copied up to the appropriate binary directory
(bin32 or bin64.)
2012-09-05 08:22:39 -07:00
Robert Moore
3d75370ac8 Test Suites: Add more debug info to ASLTS makefile.
Emits more information about each compile to the compile log
file.
2012-08-31 13:06:10 -07:00
Robert Moore
1fb836c002 iASL: Fix problem with constant folding in method declarations.
This change fixes an issue with method declarations where the SyncLevel
term is a ByteConstExpr, but if a Type3 opcode was used, it would not
be evaluated properly.

This is an interim fix for this single case, specifically to allow the
ASLTS test to run properly.

However, it does not address the general case where parse tree transforms
are applied before the constant folding is performed. In this case, the
SyncLevel is merged with the NumArgs and SerializedFlag to generate a
raw data byte before the constant folding is performed. After this
parse tree transform, no constant folding can be performed on the
Method() parameters.

Two solutions:
1) The general case could possibly be solved by performing parse tree
transforms only after the constant folding has been completed
2) Continue to special-case each of these issues in the various
ASL operators that have similar issues.
2012-08-31 12:35:48 -07:00
Robert Moore
7bcb9f04c0 Test suites: Several fixes for ASLTS recursion subtest.
Fixes a couple bugs that allow the test to run without error.
Chao Guan.
2012-08-31 12:27:46 -07:00
Robert Moore
fca5fa50a2 iASL: Fix namepath optimization problem.
An error can occur if the parse node that contains the namepath to be optimized
does not have a parent node that is a named object. This change fixes the
problem.

Problem detected by ASLTS test suite.
2012-08-31 12:15:09 -07:00
Robert Moore
ade20e6c9d AcpiExec: Cleanup and restructure main module.
Code maintenance cleanup.
Properly return error on any initialization error during batch
mode.
2012-08-31 10:44:46 -07:00
Robert Moore
05bcf4ad3e iASL: Fix regression where AML file is not deleted on errors.
The AML output file should be deleted if there are any errors
during the compiler. The only exception is if the -f (force output)
option is used.
2012-08-30 13:49:06 -07:00
Robert Moore
3a62edc0d3 Headers: Add new ACPI 5.0 HEST notify type values.
Add values 5 (CMCI) and 6 (MCE).
2012-08-24 10:25:12 -07:00
Robert Moore
12664756d8 Debugger: Improve command help support.
For incorrect argument count, display full help for the command.
For help command itself, allow an argument to specify a command.
2012-08-17 13:43:02 -07:00
Robert Moore
54e0432053 iASL: Automatically increase internal line buffer sizes.
Via realloc(), automatically increase the internal line buffer sizes
as necessary to support very long source code lines.

The current version of the preprocessor requires a buffer long enough
to contain full source code lines. This change increases the line
buffer(s) if the input lines go beyond the current buffer size.
This eliminates errors that occurred when a source code line was
longer than the buffer.
2012-08-17 13:21:41 -07:00