11757 Commits

Author SHA1 Message Date
Robert Moore
f6846f58d6 Logfile: Changes for version 20130725.
Version 20130725.
2013-07-25 10:01:45 -07:00
Robert Moore
5b989f48e5 Documentation: Update for new features.
ACPICA: Add AcpiUpdateInterfaces interface.
iASL: Add -so option.
2013-07-25 09:36:36 -07:00
Robert Moore
222b42aa01 Update headers for rename of walk namespace arguments.
Reflects changes in the main source concerning the names
of the user callbacks.
2013-07-25 09:14:25 -07:00
Robert Moore
9e07e469a4 ASLTS: Some additional fixes to support recent DerefOf behavior change.
Can no longer DerefOf on an uninitialized package element.
2013-07-25 09:11:20 -07:00
Robert Moore
7913123a9b iASL: Add some new requested features for the -so option.
Add support for Processor/Device/Scope/ThermalZone objects.
Emit offset of last nameseg for operators with namepath operands
2013-07-25 08:48:42 -07:00
Robert Moore
b358ad9051 Update names for WalkNamespace callbacks to clarify usage.
Use of "preorder" and "postorder" was incorrect. The callbacks are
simply invoked during tree ascent and descent during the
depth-first walk.
2013-07-25 08:13:51 -07:00
Robert Moore
342052a9b8 ASLTS: Handle new exception for DerefOf operator.
Changed the error checking function to correctly expect two errors
(instead of one) and to correctly check for the exception
AE_AML_UNINITIALIZED_ELEMENT when unitialized objects are referenced.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
2013-07-25 07:56:30 -07:00
Robert Moore
346762a661 ASLTS: Handle ACPICA change that now causes multiple errors in test
M708 expects errors. Recent DerefOf change in ACPICA now causes two
errors instead of one. This change fixes the test to expect this.
David Box.
2013-07-24 12:01:43 -07:00
Robert Moore
8751a199dc Add new linux generation script for ACPICA.
git-extract.sh: can extract:
1. Linux source tree at a specified commit point
2. Linux patch for a specified commit From ACPICA repository
Lv Zheng.
2013-07-24 09:37:27 -07:00
Robert Moore
0c61f39d2b ASLTS: Fix for region test.
Fixes AE_NOT_EXIST error by including a conditional for the
EmbeddedControl which does not have a handler in the interpreter.

Also fixes AML_NO_RETURN_VALUE errors due the Derefof patch fix
by referencing the correct value that should be returned and checked
against by a Derefof operation.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
2013-07-23 13:56:13 -07:00
Robert Moore
e76a7a2ee2 Return error if DerefOf resolves to a null package element.
Disallow the dereference of a reference (via index) to an uninitialized
package element. Provides compatibility with other ACPI
implementations. ACPICA BZ 1003.
2013-07-19 13:01:02 -07:00
Robert Moore
195653b25d Make ACPI Power Management Timer (PM Timer) optional.
PM Timer is now optional. Also makes ACPICA compatible with
other ACPI implementations.
2013-07-19 09:49:31 -07:00
Robert Moore
7d16594c20 Linux scripts: Update acpisrc generation script.
bin32 and bin64 are now obsolete, update script.
2013-07-19 09:43:58 -07:00
Robert Moore
67e4284b91 iASL: -so option, add ACPI object types to offset table.
Add the standard ACPI objects type for each object in the emitted
offset table. Requested by BIOS developers.
2013-07-19 08:57:00 -07:00
Robert Moore
ad55658253 iASL: Ensure valid C identifiers in output files.
For the options that create tables in C, ensure that the C names that
are emitted consist of valid C characters. The OemTableID is used
to generate unique C identifiers. Convert any non-alphanumeric
characters to underscores.
2013-07-19 08:54:20 -07:00
Robert Moore
b0eb391776 Expose _OSI invocation information to the host.
Expose AcipGbl_OsiData so that code outside of ACPICA can check
the value of the last successfull _OSI call. The definitions for
OSI versions are moved to actypes.h so that other components can
access them also.

Based on a patch by Matthew Garrett which in turn was based on
an earlier patch from Seth Forshee.
2013-07-18 13:08:36 -07:00
Robert Moore
5fb057d225 Add AcpiUpdateInterfaces public interface.
Add new API to allow OSPM to disable/enable specific types of _OSI
interface strings.

ACPICA does not have the knowledge about whether an _OSI interface string
is an OS vendor string or a feature group string and there isn't any API
interface to allow OSPM to install a new interface string as a feature
group string.
This patch simply adds all feature group strings defined by ACPI
specification into the AcpiDefaultSupportedInterfaces with ACPI_OSI_FEATURE
flag set to fix this gap.  This patch also adds codes to keep their default
states as ACPI_OSI_INVALID before the initialization and after the
termination.

Reported by Lv Zheng.
2013-07-18 13:02:34 -07:00
Robert Moore
4265a6713e iASL: Add support for One/Ones/Zero opcodes for the -so option.
Emits an offset entry for Name() objects that are initialized
with these AML opcodes.
2013-07-18 12:24:06 -07:00
Robert Moore
44a34fe66c Fix possible fault for methods that optionally have no return value.
Currently applies to the _WAK method only. If the method has no return
value and slack mode is not enabled, the return value validation code
can fault.

Also improves the error message when an expected return value is
missing (for any predefined name/method).
2013-07-18 12:22:11 -07:00
Robert Moore
87c98c18d6 DeRefOf operator: Update to fully resolve FieldUnit and BufferField refs.
Previously, references to these objects were resolved only to the actual
FieldUnit or BufferField object. The correct behavior is to resolve these
references to an actual value.

NOTE: It appears that this issues is present in Windows7 but not
Windows8.
2013-07-17 13:06:12 -07:00
Robert Moore
2d680bf6e4 ASLTS: Update bdemo/0241 test to expect two errors, not just one.
Change in ACPICA behavior after DeRefOf fix.
2013-07-17 13:05:05 -07:00
Robert Moore
6dea0505c2 iASL: Add -so support for Processor objects.
Emit offset entries for processor object. Offset points to the
PBlock Address.
2013-07-17 11:44:01 -07:00
Robert Moore
58bcc6c515 Merge pull request #16 from juikim/master
AcpiDump: tidy up for FreeBSD
2013-07-03 13:44:19 -07:00
Robert Moore
bb99bfe60f AcpiExec: Install two UEFI tables to test multi-UEFI support.
UEFI tables are allowed to have multiple instances, in addition
to SSDTs.
2013-07-03 12:39:15 -07:00
Robert Moore
d1aadfc5f0 Update ACPICA build instructions.
Small fix for updating the website.
2013-07-03 12:08:15 -07:00
Robert Moore
cf8b77624f Tests/ASLTS: miscellaneous fixes to resolve test errors.
Reduces runtime error count(s). Chao Guan.
2013-07-03 12:01:11 -07:00
Robert Moore
4e3dd4273f iASL/Disassembler: Emit all unresolved method externals in a text block
Put all of the unresolved external method declarations in a single block,
since they are important and may cause the resulting disassembled ASL file
to not compile.
2013-06-28 13:10:00 -07:00
Robert Moore
3d822b0f66 iASL: Make argument to -T optional (default is DSDT template)
The most common usage of -T is to create a DSDT template, so make
the argument optional, and if not specified, default to the DSDT.
2013-06-28 12:54:06 -07:00
Jung-uk Kim
6d2f24b8c6 Fix binary installations for FreeBSD.
Also strip binaries and set mode by default.
2013-06-27 20:03:09 -04:00
Jung-uk Kim
79d463c63b Use "uname -p" instead of "uname -m" to detect 64-bit processors on FreeBSD. 2013-06-27 20:01:57 -04:00
Jung-uk Kim
9be9b615dd Move few platform-specific definitions from FreeBSD header files to acfreebsd.h. 2013-06-27 19:58:08 -04:00
Jung-uk Kim
af558371fb Simplify the error check. 2013-06-26 14:47:15 -04:00
Jung-uk Kim
513d329d5a Reduce code duplication. 2013-06-26 14:37:03 -04:00
Robert Moore
680197ffe8 Update version to 20160626.
Version 20160626.
R06_26_13
2013-06-26 10:56:18 -07:00
Robert Moore
ebc97948e1 Logfile: Changes for version 20130626.
Version 20130626.
2013-06-26 10:55:48 -07:00
Robert Moore
95540c4acc ACPICA reference: Update for acpidump and multiple UEFI tables.
Additional changes for acpidump; allow multiple UEFI tables,
similar to multiple SSDTs.
2013-06-26 10:05:59 -07:00
Robert Moore
27f70f5fdd AcpiDump/FreeBSD: Fix possible duplicate checksum error.
Fix duplicate error message on checksum error; general cleanup
for memory leaks and error messages.
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-26 09:46:36 -07:00
Robert Moore
01b8a575ef AcpiDump/Linux: Fix possible duplicate checksum message.
Do not duplicate checksum error message.
2013-06-26 09:45:50 -07:00
Robert Moore
8cb37d69cf Revert "Fix a problem with the ASL DeRefOf operator."
This reverts commit bc9a14b13ef0bd4b96294d7498df126df4e3d008.
This fix causes problems with ASLTS and requires additional
debug.
2013-06-26 09:37:49 -07:00
Robert Moore
bc9a14b13e Fix a problem with the ASL DeRefOf operator.
Fixes a problem where where the dereferencing of a reference object
did not work properly when the object being referenced was a FieldUnit
or BufferField object. This would typically result in an AE_TYPE
later during execution of the method.
2013-06-25 12:51:28 -07:00
Robert Moore
b0dcf1681a Tests: Misc aslts error fixes for Identity2MS test.
Fixes some problems with the test itself, reducing runtime errors.
Chao Guan.
2013-06-21 09:45:34 -07:00
Robert Moore
6d291fb820 AcpiDump/FreeBSD: Fix for memory leak and an AE_ exception.
1) Make sure to unmap table in an error case.
2) Return AE_LIMIT when there exists an instance.  Otherwise, return AE_NOT_FOUND.

Jung-uk Kim <jkim@FreeBSD.org>
2013-06-19 13:00:57 -07:00
Robert Moore
588973fc4b Disassembler: Add EINJ "Flush Cacheline" instruction.
This instruction was added post-ACPI 5.0
Colin Ian King <colin.king@canonical.com>
2013-06-19 10:48:48 -07:00
Robert Moore
1ad15d5595 AcpiDump: Add preliminary support for FreeBSD.
Adds the OSL file for FreeBSD. Updates makefile.
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-19 10:04:55 -07:00
Robert Moore
bce1e0e71e Fix compiler warnings for casting issues (only some compilers).
Fixes compiler warnings from GCC 4.2 and perhaps other compilers.
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-19 09:56:23 -07:00
Robert Moore
35357adc05 Automated cleanup, no functional change.
Removed extraneous spaces.
2013-06-19 09:51:56 -07:00
Robert Moore
4cd5eb8593 Makefiles: Update flags for old GCC and other compilers.
Adds support for FreeBSD, which uses old gcc 4.2
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-19 09:21:14 -07:00
Robert Moore
88982558e5 Makefiles: Update to improve portability.
1) Use $(MAKE) instead of naked make.
2) Consistently use braces instead of parentheses.
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-18 12:34:01 -07:00
Robert Moore
d43e189699 AcpiDump: Change "version" option to -v to standardize.
Verbose option is -z for now.
2013-06-07 11:59:37 -07:00
Robert Moore
0fa1f81d0f Remove restriction of 256 maximum GPEs in any GPE block.
The FADT can support over 1000 GPEs, so remove any restriction
on the GPE numbers.
2013-06-07 10:35:52 -07:00