summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-08-09 01:44:25 +0000
committerjulian <julian@FreeBSD.org>1997-08-09 01:44:25 +0000
commitc92a006d04dac8d82f56ec61c5d55f89936b41db (patch)
treeabe7af26d48944ae9893cd242f69574ec6d008e4 /sys/kern
parent305573cb2990c5d329d149cef5a3b5533b1e8fd9 (diff)
downloadFreeBSD-src-c92a006d04dac8d82f56ec61c5d55f89936b41db.zip
FreeBSD-src-c92a006d04dac8d82f56ec61c5d55f89936b41db.tar.gz
Teach both disk drivers how to cope with a hardware watchdog
while dumping core.. I'm tired of getting 1/2 of a core-dump conditional on -DHW_WDOG for now this will migrate to 2.2 as that's where I need it.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_shutdown.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index c34e875..5f809a0 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
- * $Id: kern_shutdown.c,v 1.17 1997/06/22 16:04:16 peter Exp $
+ * $Id: kern_shutdown.c,v 1.18 1997/08/09 01:25:53 julian Exp $
*/
#include "opt_ddb.h"
@@ -90,6 +90,7 @@ SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, CTLFLAG_RW,
#endif
+#ifdef HW_WDOG
/*
* If there is a hardware watchdog, point this at the function needed to
* hold it off.
@@ -98,6 +99,7 @@ SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, CTLFLAG_RW,
* your precious core-dump only half written because the wdog kicked in.
*/
watchdog_tickle_fn wdog_tickler = NULL;
+#endif /* HW_WDOG */
/*
* Variable panicstr contains argument to first call to panic; used as flag
OpenPOWER on IntegriCloud