forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/acpi/acpica/dsmethod.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: dsmethod - Parser/Interpreter interface - control method parsing
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -532,6 +532,9 @@
532532 goto cleanup;
533533 }
534534
535
+ next_walk_state->method_nesting_depth =
536
+ this_walk_state->method_nesting_depth + 1;
537
+
535538 /*
536539 * Delete the operands on the previous walkstate operand stack
537540 * (they were copied to new objects)
....@@ -549,6 +552,17 @@
549552 "**** Begin nested execution of [%4.4s] **** WalkState=%p\n",
550553 method_node->name.ascii, next_walk_state));
551554
555
+ this_walk_state->method_pathname =
556
+ acpi_ns_get_normalized_pathname(method_node, TRUE);
557
+ this_walk_state->method_is_nested = TRUE;
558
+
559
+ /* Optional object evaluation log */
560
+
561
+ ACPI_DEBUG_PRINT_RAW((ACPI_DB_EVALUATION,
562
+ "%-26s: %*s%s\n", " Nested method call",
563
+ next_walk_state->method_nesting_depth * 3, " ",
564
+ &this_walk_state->method_pathname[1]));
565
+
552566 /* Invoke an internal method if necessary */
553567
554568 if (obj_desc->method.info_flags & ACPI_METHOD_INTERNAL_ONLY) {