Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128035
b: refs/heads/master
c: 7a4b813
h: refs/heads/master
i:
  128033: 5311779
  128031: 17f11d8
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Dec 30, 2008
1 parent 7234184 commit bbfd87f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eeb4437e63c39ce19cf9b2de36a1dddbf12910c4
refs/heads/master: 7a4b8131ac7b47feb110b3e0142d4207ee79a025
16 changes: 16 additions & 0 deletions trunk/drivers/acpi/parser/psxface.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,22 @@ acpi_status acpi_ps_execute_method(struct acpi_evaluate_info *info)
goto cleanup;
}

/*
* Start method evaluation with an implicit return of zero.
* This is done for Windows compatibility.
*/
if (acpi_gbl_enable_interpreter_slack) {
walk_state->implicit_return_obj =
acpi_ut_create_internal_object(ACPI_TYPE_INTEGER);
if (!walk_state->implicit_return_obj) {
status = AE_NO_MEMORY;
acpi_ds_delete_walk_state(walk_state);
goto cleanup;
}

walk_state->implicit_return_obj->integer.value = 0;
}

/* Parse the AML */

status = acpi_ps_parse_aml(walk_state);
Expand Down

0 comments on commit bbfd87f

Please sign in to comment.