summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-25 01:58:23 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-25 01:58:33 +0100
commit2281d4ba935f2b6c06d2ee0e5258c41c78bd8d39 (patch)
treeaf9c9307438ed839fb73c66059ef10ebfc485c49 /ddb
parent7d8fb901b68b6a88be9adc5a458fbba367a371bf (diff)
ddb/db_mp.c: re-introduce remote_db_enter
which will be useful for smp
Diffstat (limited to 'ddb')
-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.