# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1505 -> 1.1506 # drivers/acpi/dispatcher/dsmthdat.c 1.24 -> 1.25 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 04/01/30 len.brown@intel.com 1.1506 # [ACPI] proposed fix for AML parameter passing from Bob Moore # http://bugzilla.kernel.org/show_bug.cgi?id=1766 # -------------------------------------------- # diff -Nru a/drivers/acpi/dispatcher/dsmthdat.c b/drivers/acpi/dispatcher/dsmthdat.c --- a/drivers/acpi/dispatcher/dsmthdat.c Fri Jan 30 21:37:06 2004 +++ b/drivers/acpi/dispatcher/dsmthdat.c Fri Jan 30 21:37:06 2004 @@ -203,9 +203,10 @@ while ((index < ACPI_METHOD_NUM_ARGS) && (index < max_param_count) && params[index]) { /* * A valid parameter. - * Store the argument in the method/walk descriptor + * Store the argument in the method/walk descriptor. + * Do not copy the arg in order to implement call by reference */ - status = acpi_ds_store_object_to_local (AML_ARG_OP, index, params[index], + status = acpi_ds_method_data_set_value (AML_ARG_OP, index, params[index], walk_state); if (ACPI_FAILURE (status)) { return_ACPI_STATUS (status);