diff options
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index e39ee45..fa6c150 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -672,8 +672,10 @@ mi_switch() /* * Don't perform context switches from the debugger. */ - if (db_active) + if (db_active) { + mtx_unlock_spin(&sched_lock); db_error("Context switches not allowed in the debugger."); + } #endif #if 0 |