40 Commits

Author SHA1 Message Date
Robert Moore
548bef3d1a iASL: Remove -g option (get ACPI tables from registry).
This option was only available on Windows. It has been made obsolete
by the acpidump utility, so it is removed from iASL.
2014-02-13 09:23:19 -08:00
Robert Moore
4ca0698cbb Update ACPICA copyrights to 2014.
Update ACPICA copyrights to 2014. Includes all source headers and
signons for the various tools.
2014-01-06 09:10:08 -08:00
Robert Moore
04d10e3c1f iASL: Improve behavior of the -p (path prefix) option.
This change allows for zero or multiple periods (dots) within the
prefix pathname.

Also converts backslashes to forward slashes.
ACPICA BZ 1060.
2013-12-11 09:53:03 -08:00
Robert Moore
de4006bfe4 iASL: Additional fix for wildcard support.
Fixes a possible fault caused by the previous commit for wildcard
changes. Code restructuring left a global variable uninitialized.
2013-09-12 12:50:35 -07:00
Robert Moore
93c1c10009 iASL: Implement wildcard support for -e option (get external tables).
This change implements wildcard support for this option. It also
removes the local implementation of wildcard expansion. This part
affects the windows version only. Windows version is now linked
to the setargv.obj library to get this support.
2013-08-30 13:05:16 -07:00
Robert Moore
6b0b8eedff Standardize all switch() blocks.
After many years, different formatting for switch() has crept in.
This change makes every switch block identical. Chao Guan.
ACPICA bugzilla 997.
2013-04-23 14:04:40 -07:00
Robert Moore
d24fc3744e Disassembler: Add warnings for unresolved control methods.
Flags the case where external control methods are unresolved,
meaning that the disassembler had no idea how many arguments
to parse for the method invocation.
2013-02-14 10:08:27 -08:00
Robert Moore
3b40cbc108 iASL: Auto-detect binary ACPI tables for disassembly.
Detect a binary file with a valid ACPI table header and invoke
the disassembler automatically. Ease-of-use feature.
Also fixes a problem where the -dc option (disassemble and then
compile) was broken.
2013-02-06 13:02:50 -08:00
Robert Moore
5b6ee00b56 Update ACPICA copyrights to 2013.
Includes all source headers and signons for the various tools.
2013-01-08 09:23:11 -08:00
Robert Moore
3bf598ae38 iASL source restructuring: split large files into 5 new files.
Five new files.
2012-12-14 09:22:49 -08:00
Robert Moore
adb8709e05 Debugger: Major update for the Disassemble<method> command.
This command was downreved and did not properly disassemble control
methods with any reasonable complexity. This fix brings the
command up to the same level as the rest of the disassembler.
Adds one new file, dmdeferred.c, which is existing code that is
now common with the main disassembler and the debugger disassembl
command.
2012-10-31 13:57:20 -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
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
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
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
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
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
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
7fd09d9935 iASL: Add preprocessor infrastructure and initial implementation.
Adds a standard c-like preprocessor to iASL. Most standard directives
are supported. #define() macros not supported yet.
2012-03-15 13:45:55 -07:00
Robert Moore
7db43032db Update ACPICA copyrights to 2012.
Standard ACPICA source modules only.
2012-01-03 14:08:42 -08:00
Robert Moore
d41344f1ec Update all ACPICA copyrights and signons to 2011.
Standard ACPICA source modules only.
2011-01-03 14:02:13 -08:00
Robert Moore
5642c304e4 iASL/tools: Lint changes.
For acpiexec, also add additional error checking in the utility
itself.
2010-09-03 09:54:53 -07:00
Robert Moore
9b3dfcc9e0 iASL/Disassembler: Implement -da (disassemble all) option.
This option allows a group of ACPI tables to be loaded into a
common namespace and then disassembled. Useful for loading
all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
and disassembling with one simple command. ACPICA BZ 865.
Lin Ming.
2010-07-20 14:46:57 -07:00
Robert Moore
cd3f1db755 iASL: Fully enable Data Table Compiler (DTC).
No option needed to invoke DTC. Compiler auto-detects ASl code
versus DT code.
2010-06-18 14:52:34 -07:00
Robert Moore
cebf60d620 iASL: Ensure that temporary files (.src) are deleted.
Use the temp filename instead of temp handle for existence check.
Also, clear both the filename and handle during re-init during
multiple file compiles.
2010-06-04 13:38:57 -07:00
Robert Moore
d9634daeee iASL: Additional template generator integration.
Also fixes a few issues with SBST, HEST, and ECDT templates.
2010-06-03 13:38:49 -07:00
Robert Moore
1ad056a79f iASL: Add support to generate ACPI Data Table Template files.
These files can be used as the starting point for an actual ACPI
table, to be compiled via the iASL Data Table Compiler.
2010-06-02 13:45:39 -07:00
Robert Moore
b5dc1a48a1 iASL: Fix some issues with data table compiler integration.
Fixes a fault when using wildcards, Fixes linux generation makefile,
adds support for multi-line buffers in the SLIT table.
2010-05-24 10:18:16 -07:00
Robert Moore
d6027aa4c5 iASL: Support for Data Table Compiler.
Modifications to existing compiler that are
required for the data table compiler.
2010-05-21 14:19:32 -07:00
Robert Moore
c7dd20b0d7 Update all ACPICA copyrights and signons to 2010.
Add 2010 copyright to all module headers and signons, including the Linux
header. This affects virtually every file in the ACPICA core subsystem,
iASL compiler, and all utilities.
2010-01-08 08:49:11 -08:00
Robert Moore
416eb5461f Update all copyrights and signons to 2009.
Add 2009 copyright to all module headers and signons, including the Linux
header. This affects virtually every file in the ACPICA core subsystem,
iASL compiler, and all utilities.
2009-01-08 13:17:27 -08:00
Robert Moore
0b09da4ebd Remove obsolete version number in module headers.
Removed the "$Revision" number that appeared in each module header.
This version number was useful under SourceSafe and CVS, but has no
meaning under git. It is not only incorrect, it could also be
misleading.
2008-09-25 12:56:30 -07:00
Robert Moore
5cae8e0a88 iASL: Fix broken -g option (get Windows ACPI tables).
Fixes the -g option (get ACPI tables on Windows). This was
apparently broken in version 20070919.
2008-07-08 13:27:23 -07:00
Robert Moore
409a98bb7f iASL: lint changes only, no functional changes.
Some lint changes only.
2008-07-08 11:10:07 -07:00
rmoore1
a417391ec6 Update copyright to 2008.
Added 2008 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, iASL compiler, and the utilities.
2008-01-09 21:27:10 +00:00
rmoore1
23942e7a98 Add error case for non-existent input file.
Recent wildcard support misses the case where a lone file does not exist.
2007-10-13 00:44:16 +00:00
rmoore1
361f0a73b5 Fixed a few memory leaks for iASL compiler.
Leaks have become more important now that the compiler supports multiple compiles and wildcards on the command line.
2007-08-31 19:05:18 +00:00
rmoore1
dceba6cbd1 Automated cleanup.
Cleanup via acpisrc.
2007-08-30 23:03:19 +00:00
rmoore1
9e05a90a02 Support for iASL - multiple files and wildcards.
Implemented support to allow multiple files to be compiled/disassembled in a single invocation. This includes command line wildcard support for both the Windows and Unix versions of the compiler. This feature simplifies the disassembly and compilation of multiple ACPI tables in a single directory.
2007-08-30 22:28:35 +00:00