diff options
author | Jim Rees <rees@cvs.openbsd.org> | 1997-12-10 23:09:38 +0000 |
---|---|---|
committer | Jim Rees <rees@cvs.openbsd.org> | 1997-12-10 23:09:38 +0000 |
commit | b45e0265381aa1590bbd51bf460b190e7ffad617 (patch) | |
tree | 134dfafd4c2c0077ddee32caf2336011fe3d836a /sys/dev/isa/wd.c | |
parent | 804eb9f291b412712ca04f6018681a8c4d80abb0 (diff) |
Compute blkno in ata_start routine instead of wdstart
(see bug list in wdc.c change log)
Diffstat (limited to 'sys/dev/isa/wd.c')
-rw-r--r-- | sys/dev/isa/wd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c index e388b4cf4f5..5be8262f271 100644 --- a/sys/dev/isa/wd.c +++ b/sys/dev/isa/wd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wd.c,v 1.31 1997/10/18 21:09:57 deraadt Exp $ */ +/* $OpenBSD: wd.c,v 1.32 1997/12/10 23:09:37 rees Exp $ */ /* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */ /* @@ -311,9 +311,10 @@ wdstart(vp) xfer->c_bp = bp; xfer->c_p_offset = p_offset; xfer->databuf = bp->b_data; - xfer->c_bcount = bp->b_bcount; xfer->c_flags |= bp->b_flags & (B_READ|B_WRITE); - xfer->c_blkno = bp->b_blkno; + xfer->c_skip = 0; + xfer->c_errors = 0; + /* count and blkno are filled in by wdcstart */ /* Instrumentation. */ disk_busy(&wd->sc_dk); |