From 2281d4ba935f2b6c06d2ee0e5258c41c78bd8d39 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 25 Jan 2023 01:58:23 +0100 Subject: ddb/db_mp.c: re-introduce remote_db_enter which will be useful for smp --- ddb/db_mp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ddb/db_mp.c') 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 @@ -246,6 +246,17 @@ db_on(int cpu) db_continue_cmd(0, 0, 0, ""); } +/* + * 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 -- cgit v1.2.3