From 40315bd646f4bf1d7699a6c5ede43daba43efeb7 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 21 Aug 2001 23:29:40 +0000 Subject: Clear db_active in boot() so that one can call the boot function (as well as use the panic command) w/o having to manually clear db_active first to avoid the db_error() in mi_switch(). --- sys/kern/kern_shutdown.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/kern/kern_shutdown.c') diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index a711cfb..3b83723 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -67,6 +67,9 @@ #include #include +#ifdef DDB +#include +#endif #ifndef PANIC_REBOOT_WAIT_TIME #define PANIC_REBOOT_WAIT_TIME 15 /* default to 15 seconds */ @@ -208,6 +211,11 @@ boot(int howto) /* collect extra flags that shutdown_nice might have set */ howto |= shutdown_howto; +#ifdef DDB + /* We are out of the debugger now. */ + db_active = 0; +#endif + #ifdef SMP if (smp_active) printf("boot() called on cpu#%d\n", PCPU_GET(cpuid)); -- cgit v1.1