summaryrefslogtreecommitdiffstats
path: root/sys/isa/fd.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-05-11 04:58:30 +0000
committerbde <bde@FreeBSD.org>1999-05-11 04:58:30 +0000
commitcf3df57f13f2c77a6700b8ae97e4146268389f1d (patch)
treefb7518aa71bad285570a967f307bad28c811f7ec /sys/isa/fd.c
parentf98dc1ea4ac9d62112a0d10103e86dd520ee7945 (diff)
downloadFreeBSD-src-cf3df57f13f2c77a6700b8ae97e4146268389f1d.zip
FreeBSD-src-cf3df57f13f2c77a6700b8ae97e4146268389f1d.tar.gz
Fixed reset handling for motor off resets. I first fixed this together
with other reset handling in rev.1.83 but broke it in rev.1.120. The breakage didn't seem to cause any problems even on the system which had problems ("extra" interrupts and botched handling thereof) before rev.1.83. It only affects multi-floppy systems anyway.
Diffstat (limited to 'sys/isa/fd.c')
-rw-r--r--sys/isa/fd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index 197975b..35cc34c 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -47,7 +47,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.141 1999/05/08 18:13:14 peter Exp $
+ * $Id: fd.c,v 1.142 1999/05/08 21:59:24 dfr Exp $
*
*/
@@ -2042,8 +2042,9 @@ fdstate(fdc_p fdc)
* If all motors were off, then the controller was
* reset, so it has lost track of the current
* cylinder. Recalibrate to handle this case.
+ * But first, discard the results of the reset.
*/
- fdc->state = STARTRECAL;
+ fdc->state = RESETCOMPLETE;
}
return (1); /* will return immediatly */
default:
OpenPOWER on IntegriCloud