diff options
author | gibbs <gibbs@FreeBSD.org> | 1996-05-24 15:22:36 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1996-05-24 15:22:36 +0000 |
commit | eccdc91746094b57c2babe17bace465ea6636078 (patch) | |
tree | d94e8f99057fe1aea257c557f6d6186d14b4591c /sys/dev | |
parent | b487d785426d6ce362110cde389db8d37b6504c4 (diff) | |
download | FreeBSD-src-eccdc91746094b57c2babe17bace465ea6636078.zip FreeBSD-src-eccdc91746094b57c2babe17bace465ea6636078.tar.gz |
Properly determine the offset of the remaining bytes we need to transfer
after outsl'ing all the long words we can during transmission in 32bit mode.
Closes PR:i386/1243
Submitted by: flash@eru.tubank.msk.su
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ep/if_ep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 4ee4b83..aecba9b 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -38,7 +38,7 @@ */ /* - * $Id: if_ep.c,v 1.42 1996/02/26 01:05:34 gibbs Exp $ + * $Id: if_ep.c,v 1.43 1996/02/28 17:19:03 gibbs Exp $ * * Promiscuous mode added and interrupt logic slightly changed * to reduce the number of adapter failures. Transceiver select @@ -795,7 +795,7 @@ startagain: m->m_len / 4); if (m->m_len & 3) outsb(BASE + EP_W1_TX_PIO_WR_1, - mtod(m, caddr_t) + m->m_len / 4, + mtod(m, caddr_t) + (m->m_len & (~3)), m->m_len & 3); } else { outsw(BASE + EP_W1_TX_PIO_WR_1, mtod(m, caddr_t), m->m_len / 2); |