11757 Commits

Author SHA1 Message Date
Robert Moore
89066d68ed AcpiDump: Linux version, add support for multiple UEFI tables.
Also adds support for more than 9 SSDTs.
Chao Guan.
2013-06-07 10:34:14 -07:00
Robert Moore
a0ae650ff3 iASL: Update template for DMAR table.
Update some fields and checksum. Lv Zheng.
2013-06-05 13:30:54 -07:00
Robert Moore
bafa2716cc AcpiDump: Allow FADT/MADT as valid signatures, cleanup.
To be friendly, allow FADT and MADT as synonyms for FACP and APIC.
Cleanup some error messages.
2013-06-05 13:15:03 -07:00
Robert Moore
4feb7ffeb6 AcpiDump/Linux version: Restructure code and some cleanup.
Add a couple new subroutines to clarify the code, cleanup some
loops, error messages, and constants. Chao Guan.
2013-06-05 13:13:20 -07:00
Robert Moore
a46f7ba7e8 ASLTS: Fix for test MS2C.
Fixes a bug in this test. Chao Guan.
2013-06-04 14:36:03 -07:00
Robert Moore
da31a068ac AcpiDump: Cleanup for linux OSL interface.
Cleanup some names, parameters, and comments.
2013-06-04 13:41:18 -07:00
Robert Moore
50bf399c8e iASL/Disassembler: Fix some possible memory leaks.
Fix for a few possible memory leaks in error recovery paths
Reported by Colin King <colin.king@canonical.com>
2013-06-04 13:17:45 -07:00
Robert Moore
48edcb1179 Disassembler: Expand maximum output string length to 64K.
Was 256 bytes max. The original purpose of this constraint was to
limit the amount of debug output. However, the string function in
question (UtPrintString) is now used for the disassembler also,
where 256 bytes is insufficient. Reported by RehabMan@GitHub.
2013-06-04 12:00:50 -07:00
Robert Moore
3fc353da22 AcpiDump: Added full support for Linux.
Adds full support for linux platforms. Chao Guan, Bob Moore.
2013-05-31 17:42:48 -07:00
Robert Moore
0d0b913fe4 AcpiExec: Add _OSI test for a feature string.
Ensure that the "Extended Address Space Descriptor" string is
recognized properly (it is always supported).
2013-05-30 13:11:02 -07:00
Robert Moore
ecfb12c90f iASL/Preprocessor: Add proper message for #warning directive.
Was previously sharing the message for #error, this was incorrect.
2013-05-30 13:03:54 -07:00
Robert Moore
bd737d9f96 iASL/Preprocessor: Fix two issues with preprocessor errors.
1) Allow regular compiler to run normally even if there are
preprocessor errors.  All preprocessor directives are stripped
anyway.

2) Attempt to pop an empty directive stack indicates that there
is a missing #endif directive, display appropriate message.
2013-05-30 12:53:29 -07:00
Robert Moore
f08677cf18 iASL: fix another "could not delete" issue.
Must actually close the .SRC intermediate file rather than just
zero out the handle. Otherwise, the file cannot be deleted when
the compiler terminates.
2013-05-30 08:45:21 -07:00
Robert Moore
b83eecfa55 iASL: Abort compiler immediately upon a #error directive.
There may not be a standard on this, as some C compilers seem to
abort immediately, others not. For iASL, we will abort
immediately on a #error preprocessor directive.
2013-05-29 13:14:50 -07:00
Robert Moore
6ed94cefc6 iASL: Fix mysterious "could not delete file" errors.
This fix ensures that the intermediate preprocessor .i file is
closed before an attempt is made to delete it. This has to be
done with care, because it may be the same as the global input
file, depending where/when the compiler terminated/aborted.
2013-05-29 13:12:00 -07:00
Robert Moore
0ac19a10da Build helpfile: update for new version of ACPICA website.
More instructions on how to update the website.
2013-05-24 14:34:40 -07:00
Robert Moore
86e760ea9b iASL/Preprocessor: Finish implementation of nested #if/#else blocks.
Allows arbitrary depth of nested blocks.
2013-05-24 14:27:56 -07:00
Robert Moore
1e2483fcfe Comment update. No functional change.
Add some comments concerning behavior when the _STA method does
not exist. According to the ACPI specification, in this case the
device should be assumed to be present, functional, and enabled.
2013-05-22 07:32:31 -07:00
Robert Moore
b569b601b7 iASL/TableCompiler: Fix form DMAR compilation problems.
Fixes problems with the optional DMAR subtables.
ACPICA BZ 999. Lv Zheng.
2013-05-21 12:55:04 -07:00
Robert Moore
b6819e3036 iASL/TableCompiler: Cleanup line parsing routine.
A couple of small cleanups. Lv Zheng.
2013-05-21 12:51:48 -07:00
Robert Moore
df934a1718 Disassembler: Add some missing types for HEST and EINJ tables.
Add a missing EINJ action, and two missing HEST notify names.
Colin King <colin.king@canonical.com>.
2013-05-21 11:38:57 -07:00
Robert Moore
b1056d2d3e iASL: Ensure va_end is always called before function return.
The ISO 9899:1990 7.8.1.3 specification states that undefined
behaviour may occur if va_end is not invoked before return.
Colin King <colin.king@canonical.com>.
2013-05-21 11:27:49 -07:00
Robert Moore
364c90feae _CST repair: Handle null package entries.
Sort package only after null/bad elements have been removed.
Lv Zheng.
2013-05-17 14:42:32 -07:00
Robert Moore
7006193bce Update version to 20130517.
Version 20130517.
R05_17_13
2013-05-17 09:18:37 -07:00
Robert Moore
d48a4e5f0f Logfile: Changes for version 20130517.
Version 20130517.
2013-05-17 09:17:59 -07:00
Robert Moore
205240fbd7 ACPICA Reference: Update for acpidump and address handlers.
New sections for each of these, plus documentation of the
interfaces required for acpidump.
2013-05-17 09:16:44 -07:00
Robert Moore
4610702a34 Add several repairs for _CST predefined name.
Sort list based on the C-state, remove invalid/zero entries.
ACPICA BZ 890. Lv Zheng.
2013-05-16 13:46:26 -07:00
Robert Moore
47502d203d Move _PRT repair into the standard complex repair module.
Moved this longstanding repair to the relatively new predefined name
repair module. ACPICA BZ 783. Lv Zheng.
2013-05-16 12:49:25 -07:00
Robert Moore
6421b9db11 Makefiles: add some additional comments/whitespace.
Update for recent APPLE changes.
2013-05-16 09:41:02 -07:00
Robert Moore
80f53a7902 Merge branch 'osx-makefile' of ssh://ssh.github.com/liangqi/acpica 2013-05-16 09:11:49 -07:00
Robert Moore
f1393c4283 AcpiExec: Install some local space handlers for PCI devices.
For test support only. Install memory and I/O handlers for
any PCI devices (PNP0A08).
2013-05-16 08:52:21 -07:00
Robert Moore
7e7085fd11 Debugger: Update an initialization error message.
Add actual ACPI_STATUS value to an init error msg.
2013-05-16 08:22:13 -07:00
Robert Moore
475ab557b0 iASL: Add package support for the -so (offset table) option.
Add Package objects to the type of objects that are supported
in the offset table (BIOS support option.)
2013-05-16 08:19:23 -07:00
Robert Moore
7572837ebd iASL: Fix regression for -D preprocessor option (define symbol).
A restructuring/change to the initialization sequence caused this
option to no longer work properly, because the list of defines
was cleared after command line processing. Move the clearing of
this list to before command line processing.
2013-05-16 08:15:16 -07:00
Liang Qi
b5de16bf4c Support Mac OS X in Makefile
* gcc and clang both works.
* make install works.
* support PREFIX and HOST.
2013-05-11 22:09:10 +02:00
Robert Moore
8d0d88a70b Clear events initialized flag upon event component termination.
Clear this flag to allow clean startup and even double termination.
ACPICA BZ 1013. Tomasz Nowicki <tomasz.nowicki@linaro.org>
2013-05-10 10:02:17 -07:00
Robert Moore
11c53b97ef Fix possible memory leak in GPE init error path.
Some GPE blocks were not deleted.
ACPICA BZ 1018. Tomasz Nowicki <tomasz.nowicki@linaro.org>
2013-05-09 14:40:28 -07:00
Robert Moore
3d39b6d688 Tests/ASLTS: Update master script for recent makefile changes.
bin32/bin64 changed to simple "bin".
2013-05-09 09:21:59 -07:00
Robert Moore
4e6d77797b ACPICA Termination: Delete global lock pending lock.
Add deletion of this lock, used for the global lock.
ACPICA BZ 1012. Tomasz Nowicki <tomasz.nowicki@linaro.org>
2013-05-09 09:17:59 -07:00
Robert Moore
dd0eb02bb4 ACPICA termination: Clear debug buffer global.
Prevent possible multiple deletion of a debugger buffer.
ACPICA BZ 1010. Tomasz Nowicki <tomasz.nowicki@linaro.org>.
2013-05-09 09:13:13 -07:00
Robert Moore
69c10b6363 iASL: Fix for too-strict package object validation.
The package object validation for return values from the predefined
ACPI names is a bit too strict, it does not allow names references
within the package (which will be resolved at runtime.) These
types of references cannot be validated at compile time.

This change ignores named references within package objects for
predefined names that return or define static packages.
2013-05-08 13:20:38 -07:00
Robert Moore
11e9350597 Build instructions: Update for new ACPICA website.
New instructions to update the website for a new release.
2013-05-08 13:12:10 -07:00
Robert Moore
1ccc2e810f Update .gitignore file.
Some changes to the directory structure.
2013-05-08 13:11:41 -07:00
Robert Moore
87bda94f57 iASL/TableCompiler: Fix an int/char width issue on some compilers
Expand value saved after a call to getc() to an int, otherwise
some compilers complain during comparison to EOF later.
Reported by Naresh Bhat <naresh.bhat@linaro.org>
2013-05-08 12:52:54 -07:00
Robert Moore
f559452036 Unix makefiles: Remove unused cross-platform support.
No longer support generation of 32-bit versions of the ACPICA
applications on a 64-bit platform. This was unused and causes
problems with some compilers due to the use of -m32 and -m64 flags.
2013-05-08 12:42:22 -07:00
Robert Moore
1553228079 iASL: Split large main module into two files.
Adds a new file, asloptions.c, that contains the command-line
option processing.
2013-05-07 13:40:23 -07:00
Robert Moore
637accd073 Fix for _INI regression introduced in version 20130328.
This change fixes a problem introduced in 20130328 where _INI methods
are no longer executed properly because of a memory block that is not
initialized correctly.
ACPICA BZ 1016. Tomasz Nowicki <tomasz.nowicki@linaro.org>.
2013-05-07 12:24:48 -07:00
Robert Moore
63ebf517fd iASL: Add mechanism to disable specific warnings/remarks.
New command line option, -vw<messageid>. also #pragma disable <messageid>.
ACPICA BZ 989. Chao Guan, Bob Moore.
2013-05-07 12:04:53 -07:00
Robert Moore
ba84d0fc18 iASL: If a non-serialized method creates named objects, issue remark.
If a thread blocks within the method for any reason, and another thread
enters the method, the method will fail because an attempt will be
made to create the same (named) object twice.

In this case, issue a remark that the method should be marked
serialized. ACPICA BZ 909.
2013-05-03 09:14:52 -07:00
Robert Moore
d6c105ae00 Update release build script for acpidump.
Add new utility to the ACPICA release script.
2013-05-03 07:48:55 -07:00