dscontrol.c (bf61c8840efe60fd8f91446860b63338fb424158) | dscontrol.c (1d1ea1b723d9f239f736b8cf284327cbbf9d15d1) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: dscontrol - Support for execution control opcodes - 4 * if/else/while/return 5 * 6 *****************************************************************************/ 7 8/* --- 64 unchanged lines hidden (view full) --- 73 74 ACPI_FUNCTION_NAME(ds_exec_begin_control_op); 75 76 ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, "Op=%p Opcode=%2.2X State=%p\n", 77 op, op->common.aml_opcode, walk_state)); 78 79 switch (op->common.aml_opcode) { 80 case AML_WHILE_OP: | 1/****************************************************************************** 2 * 3 * Module Name: dscontrol - Support for execution control opcodes - 4 * if/else/while/return 5 * 6 *****************************************************************************/ 7 8/* --- 64 unchanged lines hidden (view full) --- 73 74 ACPI_FUNCTION_NAME(ds_exec_begin_control_op); 75 76 ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, "Op=%p Opcode=%2.2X State=%p\n", 77 op, op->common.aml_opcode, walk_state)); 78 79 switch (op->common.aml_opcode) { 80 case AML_WHILE_OP: |
81 | |
82 /* 83 * If this is an additional iteration of a while loop, continue. 84 * There is no need to allocate a new control state. 85 */ 86 if (walk_state->control_state) { 87 if (walk_state->control_state->control. 88 aml_predicate_start == 89 (walk_state->parser_state.aml - 1)) { --- 4 unchanged lines hidden (view full) --- 94 ACPI_CONTROL_CONDITIONAL_EXECUTING; 95 break; 96 } 97 } 98 99 /*lint -fallthrough */ 100 101 case AML_IF_OP: | 81 /* 82 * If this is an additional iteration of a while loop, continue. 83 * There is no need to allocate a new control state. 84 */ 85 if (walk_state->control_state) { 86 if (walk_state->control_state->control. 87 aml_predicate_start == 88 (walk_state->parser_state.aml - 1)) { --- 4 unchanged lines hidden (view full) --- 93 ACPI_CONTROL_CONDITIONAL_EXECUTING; 94 break; 95 } 96 } 97 98 /*lint -fallthrough */ 99 100 case AML_IF_OP: |
102 | |
103 /* 104 * IF/WHILE: Create a new control state to manage these 105 * constructs. We need to manage these as a stack, in order 106 * to handle nesting. 107 */ 108 control_state = acpi_ut_create_control_state(); 109 if (!control_state) { 110 status = AE_NO_MEMORY; --- 26 unchanged lines hidden (view full) --- 137 138 break; 139 140 case AML_RETURN_OP: 141 142 break; 143 144 default: | 101 /* 102 * IF/WHILE: Create a new control state to manage these 103 * constructs. We need to manage these as a stack, in order 104 * to handle nesting. 105 */ 106 control_state = acpi_ut_create_control_state(); 107 if (!control_state) { 108 status = AE_NO_MEMORY; --- 26 unchanged lines hidden (view full) --- 135 136 break; 137 138 case AML_RETURN_OP: 139 140 break; 141 142 default: |
143 |
|
145 break; 146 } 147 148 return (status); 149} 150 151/******************************************************************************* 152 * --- 186 unchanged lines hidden (view full) --- 339 /* End the control method execution right now */ 340 341 status = AE_CTRL_TERMINATE; 342 break; 343 344 case AML_NOOP_OP: 345 346 /* Just do nothing! */ | 144 break; 145 } 146 147 return (status); 148} 149 150/******************************************************************************* 151 * --- 186 unchanged lines hidden (view full) --- 338 /* End the control method execution right now */ 339 340 status = AE_CTRL_TERMINATE; 341 break; 342 343 case AML_NOOP_OP: 344 345 /* Just do nothing! */ |
346 |
|
347 break; 348 349 case AML_BREAK_POINT_OP: 350 351 /* 352 * Set the single-step flag. This will cause the debugger (if present) 353 * to break to the console within the AML debugger at the start of the 354 * next AML instruction. --- 56 unchanged lines hidden --- | 347 break; 348 349 case AML_BREAK_POINT_OP: 350 351 /* 352 * Set the single-step flag. This will cause the debugger (if present) 353 * to break to the console within the AML debugger at the start of the 354 * next AML instruction. --- 56 unchanged lines hidden --- |