11520 Commits

Author SHA1 Message Date
Robert Moore
fd2161a3c8 Windows project files: Add Makefile/script subprojects.
Add these subprojects to simplify access to the various makefiles
and script files throughout the project.
2013-01-30 12:10:56 -08:00
Robert Moore
2f97fb70f9 Merge branch 'master' of ssh://ssh.github.com/juikim/acpica 2013-01-29 13:02:18 -08:00
Robert Moore
0fbdfb6939 Regression fix: reinstate safe exit macros.
Removal caused a regression on at least FreeBSD. This fix reinstates
the macros.
2013-01-29 12:55:26 -08:00
Robert Moore
754a19fa8e Update for ACPI 5.0 hardware-reduced feature.
Ensure that AcpiEnable and AcpiDisable work properly when the
hardware-reduced flag is set in the FADT.
2013-01-29 12:08:27 -08:00
Jung-uk Kim
1daeccca6a Add parens within macros around parameter names. 2013-01-24 16:59:39 -05:00
Jung-uk Kim
d2b973b75a Add macros to access pointer to next object in the descriptor list. 2013-01-24 16:54:11 -05:00
Robert Moore
3e45e0f238 Update the generic Unix makefiles.
1) Add OPT_CFLAGS to allow the warning flags to by overriden by
the command line. Thomas Renninger (trenn@suse.de)
2) Eliminate extraneous spaces from the makefile execution output.
2013-01-24 13:52:41 -08:00
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
Jung-uk Kim
345e620cc6 Fix a long-standing bug in local cache. Since 20060317, the pointer to
next object is the first element in its common header.  Remove bogus
LinkOffset from ACPI_MEMORY_LIST and directly use NextObject.
2013-01-23 19:56:55 -05: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.
R01_17_13
2013-01-17 11:43:48 -08:00
Robert Moore
9a55f21282 Logfile: Changes for version 20130117.
Version 20130117.
2013-01-17 11:43:21 -08:00
Robert Moore
7dd66d82a4 Documentation: Updates for 20130117 changes.
Updated both the ACPICA and iASL reference docs.
2013-01-17 09:56:25 -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
a37301083f Linuxize: Move acpisrc generation from make-patch.pl to linuxize.sh.
This fix can help to generate correct linuxized patch where the
version of the acpisrc is critical. Lv Zheng.
2013-01-16 09:40:46 -08:00
Robert Moore
f8873db6c0 Linuxize: Add patch header fields for linuxized patches.
Linuxized patches lack patch headers, thus can not be
directly applied to the Linux source codes. This patch updates
the scripts to allow patch headers to be generated for the
linuxized patches. Lv Zheng.
2013-01-16 09:38:17 -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
c0a9146fa9 Tests: Update all copyrights to 2013.
Test suites only. Includes headers in all ASL test code.
2013-01-08 09:25:38 -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.
R12_20_12
2012-12-20 10:07:07 -08:00
Robert Moore
1ed93110b7 Logfile: Changes for version 20121220.
Version 20121220.
2012-12-20 10:06:15 -08:00
Robert Moore
2541323ee4 ACPICA reference: Add new resource manager interface.
Add AcpiWalkResourceBuffer (acpi_walk_resource_buffer).
2012-12-20 09:32:19 -08:00
Robert Moore
b74e4bb5fa Update build.txt readme for master ACPICA generation.
Fixes some pathnames, etc.
2012-12-20 08:19:04 -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
9eb35c2518 ASLTS: Remove an invalid error condition.
Remove another issue with the m006 method.
Chao Guan.
2012-12-14 09:30:58 -08:00
Robert Moore
1a7373c3b6 Makefiles/projectfiles: Update for new files.
Five new iASL files added.
2012-12-14 09:24:30 -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