10178 Commits

Author SHA1 Message Date
Robert Moore
ccdeddbaf0 Fix unix-specific OSL for 32-bit generation.
Fixes a problem where the casting of the pthread value could cause
an error. ACPICA BZ 936. Lin Ming.
2011-10-12 08:28:18 -07:00
Robert Moore
49d8d601c1 Disassembler: Eliminate extra spaces in buffer disassembly.
Remove extra space at the end of each buffer data output line.
2011-10-12 08:21:22 -07:00
Robert Moore
7acf57cb95 Disassembler: Add option to disable Buffer->ResourceTemplate disassembly.
There may be cases where it is not desireable to fully disassemble a
buffer to a ResourceTemplate.
2011-10-11 13:36:12 -07:00
Robert Moore
26d92b01a1 Disassembler: Fix for DataTableRegion operator.
Fix for inadvertent error message during disassembly of this operator.
Message was "Unhandled deferred opcode".
2011-10-11 13:28:02 -07:00
Robert Moore
b2be089f21 AcpiHelp: Display expanded keyword info for all ASL operators.
For any and all keywords associated with an ASL operator, display
the keyword info -- all possible values for the keyword.
2011-10-07 14:32:19 -07:00
Robert Moore
cf5fef749b iASL: Add __PATH__ operator.
Returns the full path to the current file, if available.
__FILE__ now always returns the simple filename.
2011-10-07 09:14:05 -07:00
Robert Moore
6ac92ae253 iASL: Fix listing output for switch operator.
Switch caused the AML listing output to be suspended until much
later in the listing file. This change fixes the problem.
2011-10-04 15:09:43 -07:00
Robert Moore
e3f7713188 Update for GCC 4.6
Fixes several issues with GCC 4.6 related to the new checks
for unused variables.
2011-10-04 07:55:35 -07:00
Robert Moore
07f4b5eb16 iASL: Harden error printing code against null message strings.
Prevent possible fault if main message is null string or zero
length string.
2011-09-30 13:58:22 -07:00
Robert Moore
8db2bdab94 Update to version 20110922.
Version 20110922.
2011-09-22 09:09:10 -07:00
Robert Moore
c7cd1fe110 AcpiXtract: Lowercase all output filenames.
Simplify filenames on systems that are case-sensitive.
2011-09-21 15:19:38 -07:00
Robert Moore
8df82fc77f AcpiHelp: Add missing table terminator.
Fixes possible fault in the -p option.
2011-09-20 09:34:02 -07:00
Robert Moore
858f7beecf iASL: Fix some VarPackage issues.
1) properly handle constants like One,Ones,Zero. Do not make a
var_package when these are used as a package length.
2) Allow VAR_PACKAGE (in addition to PACKAGE) opcode when validating
object types for predifined names.
2011-09-16 13:11:24 -07:00
Robert Moore
62268be19e AcpiExec: ignore non-aml tables.
Don't load non-aml tables that are specified on the command line.
Prevents issues, especially with odd tables like the RSDP.
However, allow loading of the FADT. ACPICA BZ 932.
2011-09-13 08:41:47 -07:00
Robert Moore
72b04989b2 iASL/DTC: Add -G option to compile custom/generic tables.
Allows construction of custom ACPI tables that contain a standard
ACPI table header, and the rest of the table is defined using
the "generic" data terms (UINT32, etc.)
LinMing.
2011-09-09 12:48:01 -07:00
Robert Moore
7e826fbbfa iASL: Alphabetize error messages, no functional change.
Cleanup master list of error/warning messages.
2011-09-02 14:06:20 -07:00
Robert Moore
bd2e51cfa9 iASL: Check access length for ResourceTag references.
When compiling CreateXxxField operators that access resource descriptor tags,
check that the bit access width matches the actual width of the resource
descriptor field referenced by the tag. ACPICA BZ 930.
2011-09-02 13:53:35 -07:00
Robert Moore
0341583276 Fix maximum AML Sleep() time to two seconds.
Was indadvertently limited to 20 seconds instead of 2 seconds.
This change fixes the problem.
2011-08-30 08:17:56 -07:00
Robert Moore
2b8ab3c4fd iASL: Fix to seek to zero on AML file for listings.
Fixes a problem introduced in a previous commit to emit more
file statistics for the iASL summary. The getfilesize function no
longer leaves the file at offset 0, it preserves the current
offset. Therefore, this patch fixes code that depended on that
behavior.
2011-08-25 12:52:17 -07:00
Robert Moore
f8d85c9777 iASL: Emit statistics for all optional output files.
Listing, hex, etc. files. Display filename and filesize for
each selected optional file, in addition to the ASL input
and AML output files.
2011-08-23 15:12:26 -07:00
Robert Moore
c6e4bc259f AcpiSrc: Fix possible divide-by-zero fault.
Occurred if no files or no lines were processed.
2011-08-19 12:32:12 -07:00
Robert Moore
b2b7ab725c iASL: Add error message for root parse node failure.
Error message if the parse tree root node does not get
found/created.
2011-08-19 08:01:42 -07:00
Robert Moore
45ebe2cf90 Disassembler: Fix problem with UINT24 and UINT56 output.
Bytes were reversed for these types. Fortunately, these are mostly
used for reserved fields. UINT24 is used for actual data in one
field of the SRAT (ProximityDomainHi).
2011-08-04 13:17:19 -07:00
Robert Moore
96376edca3 AcpiHelp: Add AccessAs and Offset operators.
These operators were missing from the ACPI specification and thus
did not get pulled into this utility. ACPI 5.0 spec adds them,
and they are added to AcpiHelp.
2011-07-29 14:01:49 -07:00
Robert Moore
a31ff979a1 AcpiXtract: Port to standard ACPICA environment (adds 64-bit support also.)
Also split out the main() routine to a new file.
2011-06-24 10:36:40 -07:00
Robert Moore
373b57f06d Tools: Standardize usage help messages.
Add new common macros for usage messages.
2011-06-24 08:20:20 -07:00
Robert Moore
dedc9e10e2 Update to version 20110623.
Version 20110623.
2011-06-23 09:18:06 -07:00
Robert Moore
c1a4e553db AcpiHelp: Add support to display non-operator ASL keywords.
Adds -k option to display ASL keywords (Space IDs, etc.)
2011-06-23 08:43:57 -07:00
Robert Moore
96e28acc9e AcpiHelp: Add -a (display all) option. Split long lines on output.
-a displays all operators/opcodes of the type selected.
Added function to split all long lines on output.
2011-06-22 13:53:25 -07:00
Robert Moore
8aa1e098b2 AcpiHelp: Major feature update (AML opcodes, predefined names).
Add additional capabilities.
Now finds AML opcode information (by name or by hex opcode),
and finds information about ACPI predefined names.
2011-06-17 12:47:34 -07:00
Robert Moore
08a6614c84 AcpiHelp: Fix a printf formatting warning under Linux. 2011-06-10 10:39:58 -07:00
Robert Moore
6f0bc401ca All makefiles: Cleanup use of command-line #defines.
Common defines now all appear in acenv.h. Simplifies all makefiles.
2011-06-08 15:00:21 -07:00
Robert Moore
8323ad5fb8 Windows tool generation: Disable all MS extensions for portability.
It takes some effort to disable the MS language extensions because
of bugs in the MS headers, and the MS remapping of the low I/O
functions (open, read, write, etc.)
2011-06-08 09:44:59 -07:00
Robert Moore
b12fcf75c0 Service Layers: Make multi-thread support configurable.
Conditionally compile the multi-thread support so that threading
libraries will not be linked if not necessary. The only tool
that requires multi-thread support is AcpiExec.
2011-06-08 09:42:47 -07:00
Robert Moore
404bf0d166 Tools: Update AcpiBin for MS generation with disabled extensions.
Disable language extensions where possible for maximum portability.
Unfortunately, when MS system includes are used, this option
cannot be used (oswinxf.c)
2011-06-08 08:42:22 -07:00
Robert Moore
e759b02a86 Tools: Fix for systems where O_BINARY is not defined.
Only used for Windows versions of the tools.
2011-06-07 10:35:47 -07:00
Robert Moore
86a0ff54c7 Linux-specific header: update handling of THREAD_ID and pthread.
For the 32-bit case, improve casting to eliminate possible
warnings, especially with the acpica tools.
2011-06-03 14:17:57 -07:00
Robert Moore
5adfba9805 AcpiBin: Update for correct unix/linux generation.
Fix warnings under GCC 4. Add generic unix makefile.
2011-06-03 14:15:22 -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
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
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
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
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
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