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>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
7ab58197d8
commit
a62a7117d9
@@ -599,6 +599,15 @@ acpi_ds_eval_data_object_operands(struct acpi_walk_state *walk_state,
|
||||
*/
|
||||
walk_state->operand_index = walk_state->num_operands;
|
||||
|
||||
/* Ignore if child is not valid */
|
||||
|
||||
if (!op->common.value.arg) {
|
||||
ACPI_ERROR((AE_INFO,
|
||||
"Dispatch: Missing child while executing TermArg for %X",
|
||||
op->common.aml_opcode));
|
||||
return_ACPI_STATUS(AE_OK);
|
||||
}
|
||||
|
||||
status = acpi_ds_create_operand(walk_state, op->common.value.arg, 1);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
return_ACPI_STATUS(status);
|
||||
|
Reference in New Issue
Block a user