mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
301051a01e
commit
c6841cd18f
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue