ACPICA: Implement deferred resolution of reference package elements
ACPICA commit 0c08790c56fdf0dc081ae869495a09d8c4230854 This change defers the resolution of package elements that are named references until after the entire namespace has been loaded from the definition block. This allows such references to be in fact forward references for both module level code and control methods. Link: https://github.com/acpica/acpica/commit/0c08790c Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
此提交包含在:
@@ -224,7 +224,7 @@ acpi_ut_create_update_state_and_push(union acpi_operand_object *object,
|
||||
*
|
||||
* RETURN: Status
|
||||
*
|
||||
* DESCRIPTION: Walk through a package
|
||||
* DESCRIPTION: Walk through a package, including subpackages
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
@@ -236,8 +236,8 @@ acpi_ut_walk_package_tree(union acpi_operand_object *source_object,
|
||||
acpi_status status = AE_OK;
|
||||
union acpi_generic_state *state_list = NULL;
|
||||
union acpi_generic_state *state;
|
||||
u32 this_index;
|
||||
union acpi_operand_object *this_source_obj;
|
||||
u32 this_index;
|
||||
|
||||
ACPI_FUNCTION_TRACE(ut_walk_package_tree);
|
||||
|
||||
@@ -251,8 +251,10 @@ acpi_ut_walk_package_tree(union acpi_operand_object *source_object,
|
||||
/* Get one element of the package */
|
||||
|
||||
this_index = state->pkg.index;
|
||||
this_source_obj = (union acpi_operand_object *)
|
||||
this_source_obj =
|
||||
state->pkg.source_object->package.elements[this_index];
|
||||
state->pkg.this_target_obj =
|
||||
&state->pkg.source_object->package.elements[this_index];
|
||||
|
||||
/*
|
||||
* Check for:
|
||||
|
新增問題並參考
封鎖使用者