]> Git Repo - linux.git/blobdiff - drivers/acpi/acpica/dbxface.c
ACPICA: Debugger: Fix runtime stub issues of ACPI_DEBUGGER_EXEC using different stub...
[linux.git] / drivers / acpi / acpica / dbxface.c
index d95e91f7ce49c19ec285c494289d6968e7490bf2..d7ff58e8c23363f4680959eb51661ae33bab4703 100644 (file)
@@ -117,6 +117,36 @@ error_exit:
        return (status);
 }
 
+/*******************************************************************************
+ *
+ * FUNCTION:    acpi_db_signal_break_point
+ *
+ * PARAMETERS:  walk_state      - Current walk
+ *
+ * RETURN:      Status
+ *
+ * DESCRIPTION: Called for AML_BREAK_POINT_OP
+ *
+ ******************************************************************************/
+
+void acpi_db_signal_break_point(struct acpi_walk_state *walk_state)
+{
+
+#ifndef ACPI_APPLICATION
+       if (acpi_gbl_db_thread_id != acpi_os_get_thread_id()) {
+               return;
+       }
+#endif
+
+       /*
+        * Set the single-step flag. This will cause the debugger (if present)
+        * to break to the console within the AML debugger at the start of the
+        * next AML instruction.
+        */
+       acpi_gbl_cm_single_step = TRUE;
+       acpi_os_printf("**break** Executed AML BreakPoint opcode\n");
+}
+
 /*******************************************************************************
  *
  * FUNCTION:    acpi_db_single_step
This page took 0.033106 seconds and 4 git commands to generate.