Commit Graph

11397 Commits

Author SHA1 Message Date
Robert Moore
891867802d iASL: Move parser entry prototype to avoid duplicate declaration.
Newer versions of Bison emit this prototype, so move the prototype
out of the iASL header to where it is actually used in order
to avoid a duplicate declaration.
2012-10-25 09:21:17 -07:00
Robert Moore
9458732b14 iASL: Update readme file for new versions of bison/flex.
Add supported versions for linux as well as windows.
2012-10-25 08:51:44 -07:00
Robert Moore
33c99ff24b iASL: Add check for return value from fwrite().
Ensure that the fwrite did not fail.
2012-10-25 08:50:57 -07:00
Robert Moore
49dec9f2b8 Performance enhancement for ACPI package objects.
This change greatly increases the performance of package objects
within the interpreter. It changes the processing of reference
counts for packages by optimizing for the most common case where
the package subobjects are either integers, strings, or buffers.
Increases the performance of the ASLTS test suite by 1.5X.
Chao Guan. ACPICA BZ 943.
2012-10-24 12:59:50 -07:00
Robert Moore
05432f7a2f Fix possible memory leak.
Ensure cleanup after a memory allocation failure in dsmethod.c.
Original Linux change from Jesper Juhl.
2012-10-23 09:33:10 -07:00
Robert Moore
27d3c34f82 Update version to 20121018.
Version 20121018.
2012-10-18 12:19:01 -07:00
Robert Moore
6b45ef0ab8 Logfile: Changes for version 20121018.
Version 20121018.
2012-10-18 12:18:23 -07:00
Robert Moore
114eec1583 Documentation: Update ACPICA ref for interface changes.
Changed ACPI_DEVICE_ID* to ACPI_PNP_DEVICE_ID*
2012-10-18 11:30:35 -07:00
Robert Moore
e611add6c7 Add two new readme files.
1) Summary file for all other readme files
2) How to add a new ACPI table to ACPICA
2012-10-18 10:44:44 -07:00
Robert Moore
14f15906d4 Windows project files: Update for browsing information.
Ensure that browsing information is generated for all tools and
for both release and debug cases.
2012-10-18 10:29:01 -07:00
Robert Moore
36706d9097 iASL: Update help message screen.
Update various options.
2012-10-18 10:10:20 -07:00
Robert Moore
85605310e4 iASL: Update template for MPST table.
Emit new template based upon recent header changes for MPST.
2012-10-18 10:02:45 -07:00
Robert Moore
5e59e2fdef Divergence: Backport Linux lockdep fix to ACPICA.
Backport changes made in Linux aclinux.h to ACPICA to reduce divergence
of the ACPICA base code from Linux.

Following commits are involved:
1. Rafael J. Wysocki <rjw@sisk.pl>
   ACPI: Fix lockdep false positives in acpi_power_off()
   https://bugzilla.kernel.org/show_bug.cgi?id=38152

This will decrease 29 lines of 20120913 divergence.diff.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <len.brown@intel.com>
2012-10-17 11:41:53 -07:00
Robert Moore
3938951e55 Divergence: Backport linux version of aclinux.h to ACPICA.
Backport changes made in Linux aclinux.h back to ACPICA to reduce divergence
of the ACPICA base code from Linux.

Following commits are involved:
1. Lin Ming <ming.m.lin@intel.com>
   ACPICA: Make acpi_thread_id no longer configurable, always u64
2. Thomas Gleixner <tglx@linutronix.de>
   acpi: fix bogus preemption logic
   https://bugzilla.kernel.org/show_bug.cgi?id=16210
3. Arun Sharma <asharma@fb.com>
   atomic: use <linux/atomic.h>

This will decrease 71 lines of 20120913 divergence.diff.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Arun Sharma <asharma@fb.com>
2012-10-17 11:39:19 -07:00
Robert Moore
8e7a875382 AcpiGetObjectInfo: Add support for ACPI 5.0 _SUB method.
Now calls _SUB in addition to the other ID methods: _HID, _CID,
and _UID.
2012-10-17 10:24:40 -07:00
Robert Moore
a889648796 Change ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID.
Also changed ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These
changes prevent name collisions on hosts that reserve the *_DEVICE_ID
(or *DeviceId) names for their various drivers. Affects the
AcpiGetObjectInfo external interface, and other internal interfaces
as well.
2012-10-17 08:04:28 -07:00
Robert Moore
37dd560cc4 Update for 64-bit generation of recent error message changes.
Fix for errors on printf changes on 64-bit platforms and gcc.
2012-10-16 08:01:57 -07:00
Robert Moore
fe0d1f9f5a Fix externalize name to complete migration to ACPI_MOVE_NAME.
Fix for name segment copy and validation.
2012-10-12 14:17:02 -07:00
Robert Moore
4322675fc9 Add starting offset parameter to common dump buffer routine.
Rename the dump buffer routines. Offset parameter can specify
the buffer starting offset that is used when displaying each
line of the buffer.
2012-10-12 13:44:40 -07:00
Robert Moore
ef898130ec Deploy ACPI_MOVE_NAME across ACPICA source base.
Replaces instances of strncpy(...,4) for ACPI_NAMEs.
ACPI_MOVE_NAME optimizes these to a single 32-bit copy on machines
that support misaligned transfers.
2012-10-12 12:54:03 -07:00
Robert Moore
d4fa24b0bf Update support for ACPI 5.0 MPST table.
Fixes some problems introduced by late changes to the table as it
was added to the ACPI 5.0 specification.
Both the table compiler and the disassembler and the main header
support for the table.
2012-10-12 12:21:06 -07:00
Robert Moore
7f49766105 Enhance error reporting for invalid opcodes and bad ACPI_NAMEs.
For disassembler, dump the 48 bytes surrounding the invalid opcode.
Fix incorrect table offset reported for invalid opcodes.
Report original 32-bit value for bad ACPI_NAMEs.
2012-10-12 12:11:12 -07:00
Robert Moore
80328e4bf7 Add ACPI_MOVE_NAME macro to optimize 4-byte ACPI_NAME copies.
Resolves to a 32-bit move for the normal case, strncpy on machines
that do not support misaligned transfers.
2012-10-12 12:08:39 -07:00
Robert Moore
ff56b2ded9 Disassembler: Add option (-vt) to also dump binary table data in hex.
Optionally dump the binary table data of an AML table (DSDT/SSDT)
after the normal disassembly of the table.
2012-10-11 15:00:00 -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
db012cbc7f AcpiExec: Improve algorithm for tracking memory leaks.
Add some intelligence to the code that maintains the global list
of allocated memory. The list is now ordered by allocated memory
address, significantly improving performance.
When running AcpiExec on the ASLTS test suite, speed improvements
of 3X to 5X are seen, depending on the platform and/or the
environment.
2012-10-11 09:33:27 -07:00
Robert Moore
1dbda3d3e1 Tests: Miscellaneous ASLTS fixes.
Remove several tests that cause errors because the tests are invalid
or the basis of the tests are invalid. Fix several error reporting
issues. Guan Chao.
2012-10-11 08:57:11 -07:00
Robert Moore
8d96522dda Update readme files for ACPICA and iASL generation.
Miscellaneous updates for these help files.
2012-10-05 09:09:40 -07:00
Robert Moore
8806b15e5e Add debug print message for mutex objects that are force-released.
At control method termination, any currently acquired mutex objects
are force-released. Add a new message for each one that is released.
2012-09-28 09:55:43 -07:00
Robert Moore
8ab2f175bf Tests/aapits: Remove extraneous spaces in C source code.
Remove extra spaces after periods and commas.
2012-09-27 09:39:08 -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
1855422e72 acpibin: Add error check after fwrite invocation.
Always check for write errors.
Feng Tang. ACPICA BZ 977.
2012-09-26 13:46:19 -07:00
Robert Moore
d42be86052 Resource Mgr: Small fix for buffer size calculation.
Fixes a one byte error in the output buffer calculation
Feng Tang. ACPICA BZ 849.
2012-09-26 13:45:01 -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
d91aaaf0ae Remove extra spaces after periods within comments.
This makes all comments consistent.
2012-09-26 13:14:58 -07:00
Robert Moore
b6e1206fc1 acpisrc: Add support to remove extra spaces after a period.
Improves the consistency of the source. Invoked using -c option.
2012-09-26 13:04:58 -07:00
Robert Moore
a025d2fe1d Update local C library module comments for ASCII table.
Improve the commenting of the table.
2012-09-26 12:43:41 -07:00
Robert Moore
8200302ec1 Small lint changes, no functional change.
fix va_arg and duplicate macro name.
2012-09-26 11:28:27 -07:00
Robert Moore
5ad5821df2 Fix for potential filename buffer overflow (osunixdir.c)
Increase size of structure. Colin Ian King.
2012-09-26 10:07:57 -07:00
Robert Moore
2b3982595c Fix for predefined name loop during ACPICA initialization.
If a name cannot be created, simply continue on to the next name.
Do not attempt to use the name, do not abort.
With assistance from Colin Ian King.
2012-09-26 10:05:25 -07:00
Robert Moore
5cf391810f Fix some typos in comments. No functional changes.
Some small fixes within commments. Colin Ian King.
2012-09-25 12:28:13 -07:00
Robert Moore
d57cfb09bc iASL/table_compiler: Some additional return statement fixes.
Add parens around the returned expression.
2012-09-21 14:10:51 -07:00
Robert Moore
fd8f80e5d4 ACPICA core: Cleanup empty lines at file start and end.
Maintenance for source code consistency.
2012-09-21 13:46:56 -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
f4dbc0287a AcpiSrc: Add cleanup function to remove empty lines at file start/end.
To promote consistency, this feature removes all empty lines at the start
of the file and at the end of the file.
2012-09-21 13:42:34 -07:00
Robert Moore
6c783a232a Update linux scripts.
Use the new generic makefiles for acpisrc utility.
Lv Zheng.
2012-09-21 10:34:30 -07:00
Robert Moore
8086d9e839 Tests/AAPITS: return statement audit.
Ensure that all normal return statements surround the return
expression (value) with parens, for consistency.
2012-09-21 09:51:55 -07:00
Robert Moore
087f252d98 iASL/Tools: return statement audit.
Ensure that all normal return statements surround the return
expression (value) with parens, for consistency.
2012-09-21 09:50:35 -07:00
Robert Moore
99b5831b9d Audit/update for ACPICA return macros and debug depth counter.
1) Ensure that all functions that use the various TRACE macros also
use the appropriate ACPICA return macros.
2) Ensure that all normal return statements surround the return
expression (value) with parens.

Guan Chao, Tang Feng, Zheng Lv, Bob Moore.
ACPICA Bugzilla 972.
2012-09-21 09:44:23 -07:00
Robert Moore
2afe4c5a43 Update version to 20120913.
Version 20120913.
2012-09-13 12:29:05 -07:00