aboutsummaryrefslogtreecommitdiff
path: root/ddb/db_mp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ddb/db_mp.c')
-rw-r--r--ddb/db_mp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ddb/db_mp.c b/ddb/db_mp.c
index dbd4abb8..7c0f6f26 100644
--- a/ddb/db_mp.c
+++ b/ddb/db_mp.c
@@ -247,6 +247,17 @@ db_on(int cpu)
}
/*
+ * Called by interprocessor interrupt when one CPU is
+ * in kernel debugger and wants to stop other CPUs
+ */
+void
+remote_db_enter(void)
+{
+ db_slave[cpu_number()]++;
+ kdb_kintr();
+}
+
+/*
* Acquire kernel debugger.
* Conditional code for forwarding characters from slave to console
* if console on master only.