Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128029
b: refs/heads/master
c: a8fadc9
h: refs/heads/master
i:
  128027: 38341a6
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Dec 30, 2008
1 parent f5e0fab commit c47877c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f15fc666ef54afc7aff31dfa31edecf00e0d81a
refs/heads/master: a8fadc923d1659f1a322194d420808d5b255883c
3 changes: 3 additions & 0 deletions trunk/drivers/acpi/dispatcher/dsmethod.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ acpi_ds_call_control_method(struct acpi_thread_state *thread,

if (obj_desc->method.method_flags & AML_METHOD_INTERNAL_ONLY) {
status = obj_desc->method.implementation(next_walk_state);
if (status == AE_OK) {
status = AE_CTRL_TERMINATE;
}
}

return_ACPI_STATUS(status);
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/acpi/parser/psparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
walk_state, walk_state->parser_state.aml,
walk_state->parser_state.aml_size));

if (!walk_state->parser_state.aml) {
return_ACPI_STATUS(AE_NULL_OBJECT);
}

/* Create and initialize a new thread state */

thread = acpi_ut_create_thread_state();
Expand Down
17 changes: 17 additions & 0 deletions trunk/drivers/acpi/parser/psxface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/acpi/utilities/uteval.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state)

/* The interface is supported */

return_ACPI_STATUS(AE_CTRL_TERMINATE);
return_ACPI_STATUS(AE_OK);
}
}

Expand All @@ -143,13 +143,13 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state)

/* The interface is supported */

return_ACPI_STATUS(AE_CTRL_TERMINATE);
return_ACPI_STATUS(AE_OK);
}

/* The interface is not supported */

return_desc->integer.value = 0;
return_ACPI_STATUS(AE_CTRL_TERMINATE);
return_ACPI_STATUS(AE_OK);
}

/*******************************************************************************
Expand Down

0 comments on commit c47877c

Please sign in to comment.