10617 Commits

Author SHA1 Message Date
Robert Moore
95a8781bc8 Update error/debug messages for fixed events.
Add the actual fixed event name to all messages for clarity.
2013-01-24 10:40:41 -08:00
Robert Moore
b9fc33d258 iASL: A couple of lint changes, no functional change.
Affects the lexer support file, aslcompiler.l
2013-01-23 09:43:14 -08:00
Robert Moore
b1c32b8b50 iASL/Disassembler: Add support for MTMR table.
MTMR table is used in the recent ACPI BIOS enabled Intel MID platforms.
The format of this table has been defined in the "Simple Firmware
Interface Specification" except it uses GAS instead of 64-bit values for
address fields.
This patch introduces MTMR table support into ACPICA.
Lv Zheng.
2013-01-22 11:32:47 -08:00
Robert Moore
17b0a51c0a iASL/Disassembler: Add support for VRTC table.
VRTC is used in Intel MID platforms as a replacement of the traditional
x86 RTC. VRTC table can be found in the recent ACPI BIOS enabled Intel
MID platforms. The format of this table has been defined in the "Simple
Firmware Interface Specification" except it uses GAS instead of 64-bit
values for address fields.
This patch introduces VRTC table support into ACPICA.
Lv Zheng.
2013-01-22 11:23:17 -08:00
Robert Moore
95f1c87a48 Update RASF table definition.
Update to reflect final ACPI 5.0 changes.
Lv Zheng.
2013-01-22 11:09:50 -08:00
Robert Moore
b1a433338f Fix a couple warnings detected on FreeBSD build.
This fixes a global and a pointer cast. Jung-uk Kim.
2013-01-22 09:23:31 -08:00
Robert Moore
0271bb4b0f Debugger: Allow zero arguments to resources command.
Allows invocation of resources command with no arguments. This is
interpreted as "display resources for all devices".
2013-01-18 14:24:29 -08:00
Robert Moore
c22ef196f5 Resource Mgr: Prevent infinite loops in resource walks.
Add checks for zero-length resource descriptors in all code
that loops through a resource descriptor list. This prevents
possible infinite loops because the length is used to increment
the traveral pointer and detect the end-of-descriptor.
2013-01-18 14:22:22 -08:00
Robert Moore
dd96990682 Disassembler: Add an stderr message for unknown ACPI tables.
An additional error message for tables that are not supported,
so that it appears on the console.
2013-01-18 13:32:38 -08:00
Robert Moore
731b8283ed Update version to 20130117.
Version 20130117.
2013-01-17 11:43:48 -08:00
Robert Moore
5de4fa4753 Update predefined info table for _MLS method.
The second object for each sub-package of the _MLS method is
defined to be a unicode Buffer object. This fixes the predefined
table where this object was incorrectly defined as a String.
2013-01-17 08:20:20 -08:00
Robert Moore
f61a76d973 Cygwin header: add prototype for vsnprintf().
This function is not declared of -ansi flag is used, even though
vsnprintf is a c99 function.
2013-01-16 12:50:16 -08:00
Robert Moore
4030c8fc32 Unix directory support: Remove unused version of strlwr function.
This is non-ansi function, but was not used.
2013-01-16 12:46:43 -08:00
Robert Moore
ff5458aad6 Add a comment to the cygwin include file concerning vsnprintf.
The prototype for this function may not be implemented for
older versions of cygwin.
2013-01-16 12:32:54 -08:00
Robert Moore
6872a1d5ae Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s.
Some compilers/clibs modify the arg pointer parameter to vfprintf
making it difficult to call it twice in the AcpiOsVprintf function.
Use a local buffer to workaround this issue. Does not affect the
Windows OSL since the win c library does not modify the arg
pointer. Chao Guan, Bob Moore.
2013-01-16 12:29:49 -08:00
Robert Moore
392e5cce3c AcpiSrc: Add a local version of strlwr() to prevent header issues.
Some systems implement this, others do not, so it is safest to
just have a local version (AsStrlwr).
2013-01-16 12:27:55 -08:00
Robert Moore
2d82041b29 Remove some extraneous newlines in ACPI_ERROR type calls..
These macros/functions automatically insert a newline, so the format
string should not contain a newline at the end. (This allows these
functions to add information to the end of the output line.)
2013-01-16 09:16:22 -08:00
Robert Moore
bbe255f246 Utilities: Performance update for OSL AcpiOsPrintf function.
Duplicates some of the code within AcpiOsVprintf for performance
reasons. Call vfprintf directly instead of simply calling
AcpiOsVprintf. Updates both the Unix and Windows OSL files.
Chao Guan.
2013-01-15 11:26:09 -08:00
Robert Moore
789175a1a8 iASL/Disassembler: Add option to ignore NOOP opcodes/operators.
Implemented for both the compiler and the disassembler.
Often, the NOOP opcode is used as padding for packages that are
changed dynamically by the BIOS. When disassembled, these NOOPs will
cause syntax errors. This option causes the disassembler to ignore
the NOOP opcode, and it also causes the compiler to ignore NOOP statements
as well.
2013-01-11 13:18:52 -08:00
Robert Moore
0e1413de5d iASL: Fix possible infinite loop when max error count is reached.
If an output file other than the .AML file is specified (such as a
listing file), and the maximum number of errors is reached, do not
attempt to flush data to the output file(s) as the compiler is
aborting. This can cause an infinite loop as the max error count
code essentially keeps calling itself.
2013-01-11 13:15:54 -08:00
Robert Moore
87092cba71 iASL: Improve listing file output.
Detect and eliminate all completely blank lines. Prevents lots of
wasted whitespace in the listing file.
Also, cleaned up the line prefix (removed the .... prefix) to
improve readability.
2013-01-11 13:13:50 -08:00
Robert Moore
26b34077bf iASL: Improve error message for predefined type mismatch.
For the typechecking of input arguments and return values, include the
name of the predefined object in the error message (when a type
mismatch is detected.)
2013-01-11 13:10:53 -08:00
Robert Moore
81c20d2886 Debugger: Enhance Sleep command to execute all sleep states.
This change allows Sleep to be invoked with no arguments. This causes
the debugger to execute all of the sleep states, 0-5, automatically.
2013-01-09 12:46:47 -08:00
Robert Moore
5869690a09 AcpiGetSleepTypeData: Allow \_Sx to return either 1 or 2 integers.
Although the ACPI spec defines the \_Sx objects to return a package
containing one integer, most BIOS code returns two integers and the
previous code reflects that. However, we also need to support BIOS
code that actually implements to the ACPI spec, and this change
implements this.
2013-01-09 12:43:10 -08:00
Robert Moore
31580d5c38 Fix two issues with the ACPI_DEBUG_PRINT macros.
1) Add the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro.
2) Rename ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since ACPI_DEBUG
   is already commonly used by the various hosts.
2013-01-09 12:40:34 -08:00
Robert Moore
e10f38020d AcpiExec: Use ACPI_ROOT_OBJECT where appropriate.
Use the predefined ACPI_ROOT_OBJECT instead of AcpiGbl_RootNode.
This helps exercise the code that checks for ACPI_ROOT_OBJECT.
2013-01-08 13:51:50 -08:00
Robert Moore
c04f0729eb Debugger: Remove a redundant line of code.
Was setting the verbose flag twice in a row.
2013-01-08 13:44:04 -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
0c6e074436 Debugger: Add support to test all possible sleep values.
Add to Sleep command. Call AcpiGetSleepTypeData for all possible
sleep states.
2012-12-21 13:25:20 -08:00
Robert Moore
f1ddee53c2 Update version to 20121220.
Version 20121220.
2012-12-20 10:07:07 -08:00
Robert Moore
3f81290f72 Fix comment in acenv.h - no functional change.
Adds a period at the end of one of the multi-sentence comments.
2012-12-20 08:12:29 -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
fd9ffc4d65 Source restructuring: split large files into 8 new files.
Created logical splits for eight new files. Improves modularity
and configurability.
2012-12-12 14:29:33 -08:00
Robert Moore
39414c0f79 iASL: Add remark if Timer() used in a 32-bit table.
Timer() returns a 64-bit value; emit a remark if this operator is
used within a 32-bit table (DSDT version < 2).
2012-12-12 10:07:37 -08:00
Robert Moore
d7d9d66bf6 Interpreter: Fix Store() when implicit conversion is not possible
For the cases such as a store of a string to an existing package
object, implement the store as a CopyObject(). This is a small
departure from the ACPI specification which states that the
control method should be aborted in this case. However, ASLTS
suite depends on this behavior.
2012-12-07 14:13:01 -08:00
Robert Moore
e529dbfebc Resources: Split interrupt share/wake bits into two fields.
These two bits are merged at the external interface level for the
IRQ, Interrupt, and GpioInt resource descriptors. However, these
bits are logically independent and there is no need to keep them
merged internally. Therefore, this change splits the bits into
"sharable" and "wake capable" fields within the resource manager.
This simplifies drive code that needs to examine these bits.
Aaron Lu, Bob Moore.
2012-12-07 09:51:18 -08:00
Robert Moore
709f8bd702 iASL: Cleanup table compiler debut output code.
Use common function for dumping the field list, eliminate redundant
output, cleanup output list headers, only enable list output for
the debug case.
2012-12-06 14:25:50 -08:00
Robert Moore
f263d59e67 Resources: Support for ACPI 5.0 wake bit in ExtendedInterrupt descriptor.
Add support to both get and set the extended share flags for the
Interrupt() resource descriptor. Reported by Aaron Lu.
2012-12-06 14:23:54 -08:00
Robert Moore
aa6eaaef3e Interpreter: Add warning if 64-bit constant appears in 32-bit table.
Some ASL compilers allow 64-bit constants within a 32-bit table
(DSDT version == 1). When encountered, emit a warning that the
constant will be truncated to 32 bits. This is potentially a
serious problem in the ACPI table(s).
2012-12-06 13:29:04 -08:00
Robert Moore
d0cdffd3e5 Update ACPICA initialization messages.
Clarify messages, indent if appropriate. Change a couple appropriate
messages to ACPI_INFO so they will appear even if debug output
is disabled.
2012-12-06 13:26:40 -08:00
Robert Moore
c042f90cd6 Namespace: Eliminate dot...dot output during initialization.
This feature no longer serves any good purpose and also confuses
any error messages during ACPICA initialization.
2012-12-06 12:54:35 -08:00
Robert Moore
16285eccd0 Resource manager: Add support for ACPI 5.0 wake bit in IRQ descriptor.
Add support to both get and set the extended share flags
for the IRQ() resource descriptor. Reported by Aaron Lu.
2012-12-06 08:40:24 -08:00
Robert Moore
8f5c1e3b43 Fix possible memory leak in dispatcher error path.
On error, delete mutex object created during method mutex creation.
Reported by tim.gardner@canonical.com.
2012-12-06 08:30:08 -08:00
Robert Moore
7a3d05b458 iASL: Additional debug output for table compiler.
When debug is enabled, output full subtable information including
an indented subtable tree. Useful for developing support for new
tables.
2012-12-05 14:44:07 -08:00
Robert Moore
df214178a4 Update for non-configured ACPI_IS_DEBUG_ENABLED macro.
Also add acoutput.h to the nsdump.c file.
2012-12-05 13:39:07 -08:00
Robert Moore
1f67b264b4 iASL: Finish support for the TPM2 table.
Add disassembler, table compiler, and template support.
2012-12-05 13:18:08 -08:00
Robert Moore
0ab6c47de3 iASL: Finish support for CSRT table.
Add intel-specific shared info subtable.
Add data table compiler and template support.
2012-12-05 12:46:40 -08:00
Robert Moore
71323a48e4 AcpiHelp: Fix a few small typos.
Fix some small issues within the ASL operator display.
2012-12-04 14:33:52 -08:00
Robert Moore
79906133e5 Merge all debug output macros into a single file, acoutput.h
Moved the debug trace macros from acmacros.h into acoutput.h
where they belong.
2012-11-30 14:44:14 -08:00
Robert Moore
0796525038 Deploy new ACPI_IS_DEBUG_ENABLED macro in debug output code.
Simplifies check for debug output enables.
2012-11-30 14:09:36 -08:00