58 #define _COMPONENT ACPI_PARSER
61 static
u32 acpi_gbl_depth = 0;
110 walk_state->aml_offset =
112 walk_state->parser_state.aml_start);
123 switch (walk_state->op_info->class) {
139 "Found unknown opcode 0x%X at AML address %p offset 0x%X, ignoring",
140 walk_state->opcode, walk_state->parser_state.aml,
141 walk_state->aml_offset));
147 walk_state->parser_state.aml++;
154 walk_state->parser_state.aml +=
156 walk_state->arg_types = walk_state->op_info->parse_args;
190 unnamed_op->
common.arg_list_length = 0;
262 (*op)->named.data = aml_op_start;
263 (*op)->named.length = 0;
296 status = acpi_ps_get_aml_opcode(walk_state);
311 acpi_ps_build_named_op(walk_state, aml_op_start, op,
329 op->
named.data = aml_op_start;
330 op->
named.length = 0;
338 op->
named.data = aml_op_start;
339 op->
named.length = 0;
351 if (parent_scope->
common.arg_list_length >
365 walk_state->
op = *new_op =
op;
401 switch (op->
common.aml_opcode) {
470 switch (op->
common.aml_opcode) {
483 acpi_ps_link_module_code(op->
common.
496 "Pass1: Skipping an If/Else/While body\n"));
514 && (op->
common.parent->common.aml_opcode ==
519 if ((op_info->
class ==
522 "Detected an unsupported executable opcode "
523 "at module-level: [0x%.4X] at table offset 0x%.4X",
535 switch (op->
common.aml_opcode) {
559 if ((op->
common.parent) &&
560 (op->
common.parent->common.aml_opcode ==
568 op->
named.data = aml_op_start;
632 next = next->
method.mutex;
640 ((prev->
method.aml_start + prev->
method.aml_length) != aml_start)) {
649 if (parent_op->
common.node) {
650 parent_node = parent_op->
common.node;
655 method_obj->
method.aml_start = aml_start;
656 method_obj->
method.aml_length = aml_length;
664 method_obj->
method.next_object =
670 prev->
method.mutex = method_obj;
673 prev->
method.aml_length += aml_length;
702 walk_state->
parser_state.scope->parse_scope.arg_count--;
732 walk_state->
op = *
op;
735 walk_state->
opcode = (*op)->common.aml_opcode;
755 while (!(*op) || ((*op)->common.aml_opcode !=
AML_WHILE_OP)) {
763 walk_state->
op = *
op;
766 walk_state->
opcode = (*op)->common.aml_opcode;
898 acpi_ps_complete_op(walk_state, &op,
990 #if (!defined (ACPI_NO_METHOD_EXECUTION) && !defined (ACPI_CONSTANT_EVAL_ONLY))
1023 "Invoked method did not return a value"));
1027 "GetPredicate Failed"));
1040 "Popped scope, Op=%p\n", op));
1041 }
else if (walk_state->
prev_op) {
1053 while ((parser_state->
aml < parser_state->
aml_end) || (op)) {
1054 aml_op_start = parser_state->
aml;
1057 acpi_ps_create_op(walk_state, aml_op_start, &op);
1068 acpi_ps_complete_op(walk_state, &op,
1081 "Opcode %4.4X [%s] Op %p Aml %p AmlOffset %5.5X\n",
1083 walk_state->
op_info->name, op,
1102 acpi_ps_get_arguments(walk_state, aml_op_start, op);
1105 acpi_ps_complete_op(walk_state, &op,
1127 acpi_ps_complete_op(walk_state, &op,
1147 if (acpi_gbl_depth) {
1190 walk_state->
op =
op;
1201 status = acpi_ps_complete_op(walk_state, &op, status);
1208 status = acpi_ps_complete_final_op(walk_state, op, status);