diff options
author | Bob Moore <robert.moore@intel.com> | 2008-11-12 20:45:35 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-29 22:38:37 -0500 |
commit | a8fadc923d1659f1a322194d420808d5b255883c (patch) | |
tree | b8afd36cc4217400efb0e71c550c69bfc8822352 /drivers/acpi/parser/psparse.c | |
parent | 9f15fc666ef54afc7aff31dfa31edecf00e0d81a (diff) |
ACPICA: Add support to externally execute _OSI method
The current implemenation of _OSI within ACPICA only allows other
control methods to execute _OSI. This change allows the host
OS to execute _OSI via the AcpiEvaluateObject interface. _OSI
is a special method -- it does not exist in the AML code, it is
implemented within ACPICA.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/parser/psparse.c')
-rw-r--r-- | drivers/acpi/parser/psparse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/parser/psparse.c b/drivers/acpi/parser/psparse.c index dfd3d9028018..5156203883d7 100644 --- a/drivers/acpi/parser/psparse.c +++ b/drivers/acpi/parser/psparse.c | |||
@@ -447,6 +447,10 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state) | |||
447 | walk_state, walk_state->parser_state.aml, | 447 | walk_state, walk_state->parser_state.aml, |
448 | walk_state->parser_state.aml_size)); | 448 | walk_state->parser_state.aml_size)); |
449 | 449 | ||
450 | if (!walk_state->parser_state.aml) { | ||
451 | return_ACPI_STATUS(AE_NULL_OBJECT); | ||
452 | } | ||
453 | |||
450 | /* Create and initialize a new thread state */ | 454 | /* Create and initialize a new thread state */ |
451 | 455 | ||
452 | thread = acpi_ut_create_thread_state(); | 456 | thread = acpi_ut_create_thread_state(); |