提交 2b09ce98 编写于 作者: B Bob Moore 提交者: Len Brown

ACPICA: Fix implementation of AML BreakPoint operator (break to debugger)

The AML BreakPoint opcode will now cause a break into the AML
debugger if it is present/configured. This matches the expected
behavior per the ACPI specification. Previously, only a message
was output.
Signed-off-by: NBob Moore <robert.moore@intel.com>
Signed-off-by: NLin Ming <ming.m.lin@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 ba9c3f55
...@@ -1386,14 +1386,19 @@ acpi_ds_exec_end_control_op(struct acpi_walk_state * walk_state, ...@@ -1386,14 +1386,19 @@ acpi_ds_exec_end_control_op(struct acpi_walk_state * walk_state,
case AML_BREAK_POINT_OP: case AML_BREAK_POINT_OP:
/* Call up to the OS service layer to handle this */ /*
* Set the single-step flag. This will cause the debugger (if present)
status = * to break to the console within the AML debugger at the start of the
acpi_os_signal(ACPI_SIGNAL_BREAKPOINT, * next AML instruction.
"Executed AML Breakpoint opcode"); */
ACPI_DEBUGGER_EXEC(acpi_gbl_cm_single_step = TRUE);
ACPI_DEBUGGER_EXEC(acpi_os_printf
("**break** Executed AML BreakPoint opcode\n"));
/* If and when it returns, all done. */ /* Call to the OSL in case OS wants a piece of the action */
status = acpi_os_signal(ACPI_SIGNAL_BREAKPOINT,
"Executed AML Breakpoint opcode");
break; break;
case AML_BREAK_OP: case AML_BREAK_OP:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册