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>
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>
Disallow the dereference of a reference (via index) to an uninitialized
package element. Provides compatibility with other ACPI
implementations. ACPICA BZ 1003.
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.
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.
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.
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).
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.
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.
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.
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>