diff options
author | jhb <jhb@FreeBSD.org> | 2001-08-21 23:29:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-08-21 23:29:40 +0000 |
commit | 40315bd646f4bf1d7699a6c5ede43daba43efeb7 (patch) | |
tree | 902b78820738c99920b222a3cceea41b68dd6f34 /sys/kern/kern_shutdown.c | |
parent | e7f2aa236c4b3048ea2e37df9ee515e861ab26a9 (diff) | |
download | FreeBSD-src-40315bd646f4bf1d7699a6c5ede43daba43efeb7.zip FreeBSD-src-40315bd646f4bf1d7699a6c5ede43daba43efeb7.tar.gz |
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().
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <machine/md_var.h> #include <sys/signalvar.h> +#ifdef DDB +#include <ddb/ddb.h> +#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)); |