summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update version to 20140926.R09_26_14Robert Moore2014-09-261-1/+1
| | | | Version 20140926.
* Logfile: Changes for version 20140926.Robert Moore2014-09-261-2/+71
| | | | Version 20140926.
* AcpiExec: Do not put STDIN into raw mode unless it is a terminal.Robert Moore2014-09-261-0/+9
| | | | | Eliminate an error message for batch-mode processing on unix systems. ACPICA BZ 1114.
* Documents/iASL: Update for new mapfile feature.Robert Moore2014-09-252-0/+0
| | | | -lm option: create mapfile for GPIO/etc. hardware connections.
* Documents/ACPICA: Update for new features.Robert Moore2014-09-252-0/+0
| | | | | New flag for the Event/GPE interfaces. Changes to GPIO op region interface.
* iASL: Remove "Illegal forward reference within a method" errorRobert Moore2014-09-251-18/+6
| | | | | | This error was found to cause regressions/problems with some ASL code. It is removed temporarily until the problem can be investigated and fixed.
* iASL: Remove "Illegal reference across two methods" error.Robert Moore2014-09-251-5/+26
| | | | | | This error was found to cause regressions/problems with some ASL code. It is removed for now until it can be investigated further and fixed.
* Tests: Update ASLTS makefiles.Robert Moore2014-09-251-2/+2
| | | | | | | | Update the main makefile to ensure that iASL compile failures are correctly reported. Also fix a missing semicolon. ACPICA BZ 1106. Reported by Dean Nelson <dnelson@redhat.com>, fixed by Lv Zheng. Independently validated by David Box.
* iASL: Add two workarounds for a very old GCC bug.Robert Moore2014-09-252-2/+7
| | | | From Jung-uk Kim (jkim@FreeBSD.org>
* Update file permissions.Robert Moore2014-09-193-0/+0
| | | | 644.
* iASL/Disassembler: Add support for hardware summary mapfiles.Robert Moore2014-09-1938-472/+2335
| | | | | Adds support for both iASL and the disassembler to create a hardware and connection summary mapfile (via the -lm option.)
* iASL/Makefile/ProjectFile: Update dependencies.Robert Moore2014-09-172-2/+4
| | | | | Update .y file dependencies to correctly build iASL for any .y file changes.
* iASL: Fix memory allocation/free issue.Robert Moore2014-09-173-13/+15
| | | | | This is a regression that was introduced in version 20140828. ACPICA BZ 1111.
* Disassembler: Add a null return pointer check in dmbuffer.cRobert Moore2014-09-121-0/+4
| | | | | Prevent a "possible" null pointer dereference. Reported by Bonnie Zhang <bonnie.zhang@oracle.com>
* Add "has handler" flag to event/gpe status interfaces.Robert Moore2014-09-123-12/+55
| | | | | | | This change adds a new flag, ACPI_EVENT_FLAGS_HAS_HANDLER to the AcpiGetEventStatus and AcpiGetGpeStatus external interfaces. It is set if the event/gpe currently has a handler associated with it. Lv Zheng.
* Update GPE handler removal, match behavior of handler install.Robert Moore2014-09-121-1/+2
| | | | | | The OriginallyEnabled check is not paired between AcpiInstallGpeHandler() and AcpiRemoveGpeHandler(). This patch contains the code that is already in the Linux kernel upstream. Lv Zheng.
* Disable BIOS-enabled GPEs during initialization.Robert Moore2014-09-121-0/+4
| | | | | | | GPEs with corresponding _Lxx/_Exx control methods need to be disabled during initialization in case they have been enabled by the BIOS, so that they don't fire up until they are enabled by AcpiUpdateAllGpes(). Rafael J. Wysocki.
* acpidump: Add ACPI 1.0 RSDP support.Robert Moore2014-09-093-1/+42
| | | | | | The acpidump currently always uses ACPI 2.0 format to dump RSDP, this patch adds ACPI 1.0 RSDP support. ACPICA BZ 1097. Reported by Rudolf Marek, fixed by Lv Zheng.
* acpiexamples: Makefile fix for incorrect CFLAGS.Robert Moore2014-09-091-1/+1
| | | | | Was using "EXAMPLES" instead of "ACPIEXAMPLES". Dean Nelson, dnelson@redhat.com. ACPICA BZ 1105.
* Update to GPIO region handler interface.Robert Moore2014-09-047-14/+122
| | | | | | | | | | | | | | | | | | | | | | | | | Changes to correct several GPIO issues: 1) The UpdateRule in a GPIO field definition is now ignored; a read-modify-write operation is never performed for GPIO fields. (Internally, this means that the field assembly/disassembly code is completely bypassed for GPIO.) 2) The Address parameter passed to a GPIO region handler is now the bit offset of the field from a previous Connection() operator. Thus, it becomes a "Pin Number Index" into the Connection() resource descriptor. 3) The BitWidth parameter passed to a GPIO region handler is now the exact bit width of the GPIO field. Thus, it can be interpreted as "number of pins". Overall, we can now say that the region handler interface to GPIO handlers is a raw "bit/pin" addressed interface, not a byte-addressed interface like the SystemMemory handler interface. For Linux, this patch will need to be applied simultaneously with the Linux GPIO handler patch that supports it.
* Add string for _DDN method name.Robert Moore2014-09-041-0/+1
| | | | The _DDN method will be used internally.
* Disassembler/acpihelp: Add new _HID values.Robert Moore2014-09-041-0/+22
| | | | | Added some new _HIDs that are recognized, along with their description strings.
* acpiexec: Fix incorrect return value.Robert Moore2014-09-041-1/+1
| | | | | Late handler installation function was returning bad status incorrectly.
* acpiexec: Update makefiles and project files for new file.Robert Moore2014-09-022-0/+5
| | | | aeregion.c
* acpiexec: Update file permissions.Robert Moore2014-09-021-0/+0
| | | | new file, aeregion.c
* acpiexec: Split large file, no functional change.Robert Moore2014-09-023-799/+969
| | | | | Split aehandlers.c into two files. The new file is aeregion.c, which contains the operation region handlers.
* Update version to 20140828.R08_28_14Robert Moore2014-08-281-1/+1
| | | | Version 20140828.
* Logfile: Changes for version 20140828.Robert Moore2014-08-281-2/+76
| | | | Version 20140828.
* ACPI 5.1: Add support for runtime validation of _DSD package.Robert Moore2014-08-281-0/+40
| | | | | | Adds ACPICA kernel runtime support to validate contents/format of the _DSD package, similar to the iASL support. Ported by Mika Westerberg.
* Disassembler: Fix for GpioInt interrupt polarity flags.Robert Moore2014-08-152-2/+4
| | | | The field is actually 2 bits, not 1.
* iASL: Add _HID or _ADR requirement for Device objects. Remove for _DSD.Robert Moore2014-08-142-22/+12
| | | | | _DSD no longer has a requirement for a _HID. However, a Device() object is required to have a _HID, a _ADR, or both.
* Headers: Add GTDT flag definitions for the timer subtable.Robert Moore2014-08-141-2/+6
| | | | Mostly by Hanjun Guo <hanjun.guo@linaro.org>
* ACPI 5.1/Disassembler: Add GICC affinity subtable to SRAT table.Robert Moore2014-08-148-8/+55
| | | | | | | Update template for SRAT. Add ClockDomain to standard CPU affinity subtable. Mostly by: Hanjun Guo <hanjun.guo@linaro.org>
* Standardize one blank line after copyright header, no functional change.Robert Moore2014-08-14108-104/+4
| | | | | From acpisrc execution -- the utility now ensures that there is exactly one blank line after the header.
* acpisrc: Add support to standardize lines after copyright header.Robert Moore2014-08-143-2/+34
| | | | | Now will ensure that there is exactly one blank line after the header -- no more, no less.
* iASL/TableCompiler: Add object caching, cleanup memory leaks.Robert Moore2014-08-1410-65/+204
| | | | | Add object caches for the field and subtable objects, to improve performance and to simplify memory management.
* iASL: Improve cacheing, reduce memory leaks.Robert Moore2014-08-1331-98/+293
| | | | | | | | Ensure that the parse tree is deleted for each compile. Fix other miscellaneous memory leaks per-compile. Consistently deploy the use of the string cache. Add tracking for multiple buffers within caches. Ensure the cache buffers are always deleted.
* acpiexec: Ensure terminal state is always restored.Robert Moore2014-08-131-0/+2
| | | | | | | | | | Fixes a problem where the original terminal state for the unix version was restored in these cases: acpiexec acpiexec -v ACPICA BZ 1104.
* iASL: Update file permissions.Robert Moore2014-08-085-0/+0
| | | | 644
* iASL: Split huge parser file into multiple subfiles. Uses M4.Robert Moore2014-08-088-1339/+1908
| | | | | | | | | | | Split the main aslcompiler.y file into a master file and 4 included subfiles, using the M4 macro processor to perform the actual include, since Bison does not provide this function. Makefiles/project files updated. M4 is typically included in the Bison package, for both Windows and Unix.
* iASL: Add error detection for illegal named references.Robert Moore2014-08-073-1/+195
| | | | | | | | | | | | | Check for an illegal reference to a named object: 1) References from one control method to another, non-parent method are not allowed, they will fail at runtime. 2) Forward references within a control method are not allowed. AML interpreters use a one-pass parse of control methods so these forward references will fail at runtime. ACPICA BZ 1008.
* iASL: New file, aslascii.cRobert Moore2014-08-011-0/+421
| | | | For ascii support routines.
* iASL: Split ASCII support functions to a new file.Robert Moore2014-08-014-476/+200
| | | | New file is aslascii.c
* Merge branch 'master' of ssh://ssh.github.com/acpica/acpicaRobert Moore2014-08-013-1/+35
|\
| * Merge pull request #45 from zetalog/acpica-1407Robert Moore2014-07-313-1/+35
| |\ | | | | | | Acpica 1407
| | * Executer: Fix a link error for 64-bit division in the Debug object timestamp ↵Lv Zheng2014-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generation. ACPICA should not use 64-bit division directly. This triggers the following build error on Linux i386 kernel builds: drivers/built-in.o: In function `acpi_ex_do_debug_object': (.text+0x4e1a4): undefined reference to `__udivdi3' This is introduced by the following commit: Commit: a4060d7fcfffff15a3e1d3aee7ccfd5cf00b50a0 Subject: Debug object: Add current value of Timer() to debug line prefix. Since the following 2 statements are equivalent as 0x03FFFFFF masking keeps lower bits of num/12, and num/10 should have contained all valid bits for 0x03FFFFFF masking no matter whether num is 32-bit or 64-bit: (UINT32) (num64 / 10) & 0x03FFFFFF; ((UINT32) num64 / 10) & 0x03FFFFFF; This patch fixes this using the latter form statement to avoid 64-bit division. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
| | * Linux: Add support to force header inclusion rules for <acpi/acpi.h>.Lv Zheng2014-07-301-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As there is only CONFIG_ACPI=n processing in the <linux/acpi.h>, it is not safe to include <acpi/acpi.h> directly for source out of Linux ACPI subsystems. This patch adds error messaging to warn developers of such wrong inclusions. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
| | * Linux: Add support to exclude <asm/acenv.h> inclusion.Lv Zheng2014-07-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The forthcoming patch will make <acpi/acpi.h> to be visible to all kernel source code. Thus for the architectures that do not support ACPI and haven't implemented <asm/acenv.h>, we need to make it excluded. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
| | * Linux: Add stub implementation of ACPICA 64-bit mathematics.Lv Zheng2014-07-301-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds default 64-bit mathematics in aclinux.h using do_div(). As do_div() can be used for all Linux architectures, this can also be used as stub macros for ACPICA 64-bit mathematics. But this is not a performance friendly way, as ACPICA's architecture specific division OSL only requires a dividing 64-bit number with a 32-bit number implementation, while Linux __div64_32() is not available for all build environments. So currently, if an architecture really wants to support ACPICA, it must implement its own division OSL. This is required by the ACPICA header stub support. ACPICA header stubs are useful to protect CONFIG_ACPI=n Linux kernel builds where ACPICA headers are included. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
* | | iASL: Add error checking for proper use of _PSx power methods.Robert Moore2014-08-011-1/+36
| | | | | | | | | | | | | | | | | | | | | Check to ensure the following are true: 1) _PS0 - One of these must exist: _PS1, _PS2, _PS3 2) _PS1/_PS2/_PS3: A _PS0 must exist