aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-03-31 18:04:51 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-03-31 18:04:51 +0000
commit0e317d05cc50e56df8422a90780933bea6dec2b9 (patch)
treec5a5d59efb1e51603cbebf9e141b7cb8fd55ce22 /sys/dev/fdc
parentd51a59611b93571b82c2171e347022c75b95e783 (diff)
Notes
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 99ddb32312e6..499a78de23d1 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.81 1996/03/28 14:28:37 scrappy Exp $
+ * $Id: fd.c,v 1.82 1996/03/29 11:45:12 bde Exp $
*
*/
@@ -1595,6 +1595,13 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
fdc->state = STARTRECAL;
break;
case STARTRECAL:
+ /* XXX clear the fdc results from the last reset, if any. */
+ {
+ int i;
+ for (i = 0; i < 4; i++)
+ (void)fd_sense_int(fdc, &st0, &cyl);
+ }
+
if(fd_cmd(fdcu,
2, NE7CMD_RECAL, fdu,
0)) /* Recalibrate Function */