Commit Graph

11363 Commits

Author SHA1 Message Date
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
Robert Moore
c24949b628 iASL: Improve error messages for very long source lines.
Limit the source line output for error messages (256).
For these long lines, do not attempt to have the error message
point to the offending text. Emit the error column number
instead.
2012-08-17 12:48:01 -07:00
Robert Moore
af851da774 Documentation: Update ACPICA build helpfile.
Some small changes.
2012-08-16 09:50:04 -07:00
Robert Moore
4576388383 Update version to 20120816.
Version 20120816.
2012-08-16 08:43:38 -07:00
Robert Moore
49041c664c Logfile: Changes for version 20120816.
Version 20120816.
2012-08-16 08:42:31 -07:00
Robert Moore
cf43db633d Documentation: Update ACPICA ref for interface changes.
One new interface and changes to two existing interfaces.
2012-08-16 08:41:19 -07:00
Robert Moore
923e24ea9c Debugger: Fix broken "Threads" command.
Was returning AE_BAD_PARAMETER. Add code to get the namespace
node for the method to be executed.
2012-08-15 10:08:18 -07:00
Robert Moore
770111d95b Disassembler: Add support for CSRT and DBG2 ACPI tables.
These tables are defined outside of the ACPI specification.
2012-08-15 08:44:44 -07:00
Robert Moore
0255f9736c AcpiSrc: Add support for CSRT and DBG2 ACPI tables.
Conversion support.
2012-08-15 08:44:05 -07:00
Robert Moore
7f9e830d5b Headers: Add support for CSRT and DBG2 ACPI tables.
These tables are defined outside of the ACPI specification.
2012-08-15 08:42:33 -07:00
Robert Moore
0280d5f05f iASL: Fix generation issue on newer versions of Bison.
Newer versions of Bison apparently automatically emit some of
the necessary externals. This change handles these versions
in order to eliminate generation warnings.
2012-08-15 08:31:07 -07:00
Robert Moore
0d9370ee26 Add multi-endian support to the _PLD decode routine.
Deploy the multi-endian macros to extract data from the _PLD
buffer.
2012-08-09 13:06:31 -07:00
Robert Moore
33b1aae263 Remove all use of deprecated _GTS and _BFS methods.
The _GTS (Going To Sleep) and _BFS (Back From Sleep) methods are
essentially deprecated and will probably be removed from the ACPI
specification. Windows does not invoke them, and reportedly never
will. The final nail in the coffin is that the ACPI specification
states that these methods must be run with interrupts off, which
is not going to happen in a kernel interpreter. Tang Feng.
Note: Linux has removed all use of the methods also. It was discovered
that invoking these functions caused failures on some machines,
probably because they were never tested since Windows does not
call them.
2012-08-09 12:57:11 -07:00
Robert Moore
3f205c1618 Makefiles: Update linker invocation.
Move the linker flags to the end of the command line.
Otherwise, the link will fail on some platforms.
Guan Chao.
2012-08-09 12:32:04 -07:00
Robert Moore
9fcaec20d0 iASL: Update help info for supported ACPI tables.
This change updates the help info that displays data about the
supported ACPI tables (-ht option.) Also removes duplicate
FADT entry.
2012-08-09 12:22:11 -07:00
Robert Moore
2e6d4d640f GPE support: Remove extraneous parameter from low-level function.
The GpeRegisterInfo argument is no longer needed. Tang Feng.
2012-08-07 13:38:36 -07:00
Robert Moore
ffefc5e308 iASL: Fix constant folding for fixed-length constants.
This change fixes a problem where the constant folding code was not
invoked for arguments that compile to fixed-length constants (either
Byte, Word, DWord, or QWord.) ACPICA BZ 970.
2012-08-03 14:24:58 -07:00
Robert Moore
c5667d3f74 Debug output: Update output for Processor object.
Cleanup output for Processor(). Length is a byte, not a word.
2012-08-03 13:51:48 -07:00