From c92a006d04dac8d82f56ec61c5d55f89936b41db Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 9 Aug 1997 01:44:25 +0000 Subject: 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. --- sys/scsi/sd.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sys/scsi') diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 8386c42..4578cc7 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -15,7 +15,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.105 1997/05/01 19:15:38 sos Exp $ + * $Id: sd.c,v 1.106 1997/06/25 19:07:43 tegge Exp $ */ #include "opt_bounce.h" @@ -1047,8 +1047,17 @@ sddump(dev_t dev) return (ENXIO); /* we said not to sleep! */ } - if ((unsigned) addr % (1024 * 1024) == 0) + /* + * If we are dumping core, it may take a while. + * So reassure the user and hold off any watchdogs. + */ + if ((unsigned)addr % (1024 * 1024) == 0) { +#ifdef HW_WDOG + if (wdog_tickler) + (*wdog_tickler)(); +#endif /* HW_WDOG */ printf("%ld ", num / 2048); + } /* update block count */ num -= blkcnt; blknum += blkcnt; -- cgit v1.1