|
@@ -45,6 +45,7 @@
|
|
|
#include <acpi/acparser.h>
|
|
|
#include <acpi/acdispat.h>
|
|
|
#include <acpi/acinterp.h>
|
|
|
+#include <acpi/amlcode.h>
|
|
|
|
|
|
#define _COMPONENT ACPI_PARSER
|
|
|
ACPI_MODULE_NAME("psxface")
|
|
@@ -278,6 +279,22 @@ acpi_status acpi_ps_execute_method(struct acpi_evaluate_info *info)
|
|
|
goto cleanup;
|
|
|
}
|
|
|
|
|
|
+ /* Invoke an internal method if necessary */
|
|
|
+
|
|
|
+ if (info->obj_desc->method.method_flags & AML_METHOD_INTERNAL_ONLY) {
|
|
|
+ status = info->obj_desc->method.implementation(walk_state);
|
|
|
+ info->return_object = walk_state->return_desc;
|
|
|
+
|
|
|
+ /* Cleanup states */
|
|
|
+
|
|
|
+ acpi_ds_scope_stack_clear(walk_state);
|
|
|
+ acpi_ps_cleanup_scope(&walk_state->parser_state);
|
|
|
+ acpi_ds_terminate_control_method(walk_state->method_desc,
|
|
|
+ walk_state);
|
|
|
+ acpi_ds_delete_walk_state(walk_state);
|
|
|
+ goto cleanup;
|
|
|
+ }
|
|
|
+
|
|
|
/* Parse the AML */
|
|
|
|
|
|
status = acpi_ps_parse_aml(walk_state);
|