summaryrefslogtreecommitdiff
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
* AcpiBin: Fix for the dump-to-hex function.Robert Moore2012-11-081-2/+4
| | | | | Now correctly output the table name header so that AcpiXtract recognizes the output file/table.
* iASL/Tools: Standardize use of stream I/O functions.Robert Moore2012-11-0811-81/+142
| | | | | | | | | | 1) Check for I/O error after every fopen/fread/fwrite 2) Ensure proper order of size/count params for fread/fwrite 3) Use test of Actual != Requested after all fwrite, most fread 4) Standardize I/O error messages Improve reliability and maintainability of the code. Bob Moore, Lv Zheng.
* Tools: Replace low-level I/O with stream I/O functions.Robert Moore2012-11-084-68/+55
| | | | | | Replace open/read/write/close with the stream I/O equivalents fopen/fread/fwrite/fclose for portability and performance Lv Zheng, Bob Moore.
* AcpiBin: Display compared headers side-by-side.Robert Moore2012-11-062-4/+28
| | | | Improvement over displaying one header after the other.
* AcpiGetObjectInfo: optimize exit for mutex failure.Robert Moore2012-11-061-1/+1
| | | | | No need for a goto to the bottom of the function, simply return the status code immediately.
* Resource Manager: update template walking with ACPI_NEXT_RESOURCE.Robert Moore2012-11-022-2/+5
| | | | | | Cleanup the ACPI_NEXT_RESOURCE macro. Update AcpiWalkResources to use ACPI_NEXT_RESOURCE. Lv Zheng.
* Enhance the ACPI_GETx and ACPI_SETx macros.Robert Moore2012-11-023-43/+47
| | | | | | | Improve the implementation of the macros. Change the SETx macros to the style of (destination, source). Also add ACPI_CASTx companion macros. Lv Zheng.
* Disassembler: Prevent duplicate External() statements.Robert Moore2012-11-021-4/+29
| | | | | | | | | During generation of external statements, prevent similar pathnames that are actually duplicates, such as these: External (\ABCD) External (ABCD) Remove all leading '\' characters from pathnames during the external statement generation so that duplicates will be detected and tossed.
* Add macros to extract flag bits from resource descriptors.Robert Moore2012-11-024-59/+73
| | | | | | Improves readability and maintainability of the code. Fixes a problem with the UART serial bus descriptor for the number of data bits flags (was incorrectly 2 bits, should be 3).
* Debugger: Remove a couple inadvertent "//" comments.Robert Moore2012-11-021-2/+2
| | | | Missed during previous checkin.
* Disassembler: Add new ACPI 5.0 interrupt sharing flags.Robert Moore2012-11-015-8/+10
| | | | | | This changes adds the ShareAndWake and ExclusiveAndWake flags which were added to the Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0.
* iASL: Remove obsolete -2 option flag.Robert Moore2012-10-312-8/+1
| | | | | | Originally intended to force the compiler/disassembler into an ACPI 2.0 mode, this was never implemented and the entire concept is now obsolete.
* Disassembler: Add "Disasm" for a synonym for Disassemble command.Robert Moore2012-10-311-0/+3
| | | | Ease-of-use change.
* Debugger: Major update for the Disassemble<method> command.Robert Moore2012-10-3113-260/+454
| | | | | | | | | This command was downreved and did not properly disassemble control methods with any reasonable complexity. This fix brings the command up to the same level as the rest of the disassembler. Adds one new file, dmdeferred.c, which is existing code that is now common with the main disassembler and the debugger disassembl command.
* Disassembler: Fix for external declaration generationRobert Moore2012-10-311-1/+7
| | | | | | Fixes a problem where an incorrect pathname could be generated for an external declaration if the original reference to the object includes leading carats.
* Performance: Remove function tracing from critical allocation functions.Robert Moore2012-10-254-47/+43
| | | | | | | Tracing is no longer needed for many of the low-level function. Removing the trace mechanism from these functions improves performance a small amount, also simplifies the debug trace output.
* AcpiSrc: Add error check after call to write().Robert Moore2012-10-251-2/+4
| | | | Ensure a write error is not missed.
* iASL: Move parser entry prototype to avoid duplicate declaration.Robert Moore2012-10-252-4/+9
| | | | | | 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.
* iASL: Update readme file for new versions of bison/flex.Robert Moore2012-10-251-5/+16
| | | | Add supported versions for linux as well as windows.
* iASL: Add check for return value from fwrite().Robert Moore2012-10-251-1/+6
| | | | Ensure that the fwrite did not fail.
* Performance enhancement for ACPI package objects.Robert Moore2012-10-241-7/+33
| | | | | | | | | 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.
* Fix possible memory leak.Robert Moore2012-10-231-1/+2
| | | | | Ensure cleanup after a memory allocation failure in dsmethod.c. Original Linux change from Jesper Juhl.
* Update version to 20121018.R10_18_12Robert Moore2012-10-181-1/+1
| | | | Version 20121018.
* Add two new readme files.Robert Moore2012-10-181-0/+88
| | | | | 1) Summary file for all other readme files 2) How to add a new ACPI table to ACPICA
* iASL: Update help message screen.Robert Moore2012-10-181-5/+5
| | | | Update various options.
* iASL: Update template for MPST table.Robert Moore2012-10-182-9/+18
| | | | Emit new template based upon recent header changes for MPST.
* Divergence: Backport Linux lockdep fix to ACPICA.Robert Moore2012-10-172-0/+20
| | | | | | | | | | | | | | | | 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>
* Divergence: Backport linux version of aclinux.h to ACPICA.Robert Moore2012-10-171-9/+10
| | | | | | | | | | | | | | | | | | | | | 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>
* AcpiGetObjectInfo: Add support for ACPI 5.0 _SUB method.Robert Moore2012-10-177-27/+151
| | | | | Now calls _SUB in addition to the other ID methods: _HID, _CID, and _UID.
* Change ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID.Robert Moore2012-10-178-51/+51
| | | | | | | | 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.
* Update for 64-bit generation of recent error message changes.Robert Moore2012-10-161-2/+2
| | | | Fix for errors on printf changes on 64-bit platforms and gcc.
* Fix externalize name to complete migration to ACPI_MOVE_NAME.Robert Moore2012-10-121-2/+4
| | | | Fix for name segment copy and validation.
* Add starting offset parameter to common dump buffer routine.Robert Moore2012-10-1214-42/+54
| | | | | | Rename the dump buffer routines. Offset parameter can specify the buffer starting offset that is used when displaying each line of the buffer.
* Deploy ACPI_MOVE_NAME across ACPICA source base.Robert Moore2012-10-1212-30/+28
| | | | | | 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.
* Update support for ACPI 5.0 MPST table.Robert Moore2012-10-124-21/+21
| | | | | | | 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.
* Enhance error reporting for invalid opcodes and bad ACPI_NAMEs.Robert Moore2012-10-124-14/+39
| | | | | | 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.
* Add ACPI_MOVE_NAME macro to optimize 4-byte ACPI_NAME copies.Robert Moore2012-10-121-0/+4
| | | | | Resolves to a 32-bit move for the normal case, strncpy on machines that do not support misaligned transfers.
* Disassembler: Add option (-vt) to also dump binary table data in hex.Robert Moore2012-10-113-0/+19
| | | | | Optionally dump the binary table data of an AML table (DSDT/SSDT) after the normal disassembly of the table.
* iASL: For -f option (force), allow non-ASCII characters in input.Robert Moore2012-10-111-2/+6
| | | | If -f is specified, allow an input file with non-ASCII characters.
* AcpiExec: Improve algorithm for tracking memory leaks.Robert Moore2012-10-111-30/+72
| | | | | | | | | 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.
* Update readme files for ACPICA and iASL generation.Robert Moore2012-10-051-73/+78
| | | | Miscellaneous updates for these help files.
* Add debug print message for mutex objects that are force-released.Robert Moore2012-09-281-1/+4
| | | | | At control method termination, any currently acquired mutex objects are force-released. Add a new message for each one that is released.
* Small fix for standard Intel legal header.Robert Moore2012-09-27310-313/+315
| | | | Remove an extraneous space after a comma, for consistency.
* acpibin: Add error check after fwrite invocation.Robert Moore2012-09-261-1/+6
| | | | | Always check for write errors. Feng Tang. ACPICA BZ 977.
* Resource Mgr: Small fix for buffer size calculation.Robert Moore2012-09-261-0/+10
| | | | | Fixes a one byte error in the output buffer calculation Feng Tang. ACPICA BZ 849.
* Remove extra spaces after periods in the Intel license.Robert Moore2012-09-26311-3429/+3422
| | | | For consistency with the rest of the source code.
* Remove extra spaces after periods within comments.Robert Moore2012-09-26108-358/+360
| | | | This makes all comments consistent.
* acpisrc: Add support to remove extra spaces after a period.Robert Moore2012-09-263-44/+99
| | | | Improves the consistency of the source. Invoked using -c option.
* Update local C library module comments for ASCII table.Robert Moore2012-09-261-130/+131
| | | | Improve the commenting of the table.
* Small lint changes, no functional change.Robert Moore2012-09-263-23/+22
| | | | fix va_arg and duplicate macro name.