Fixed a glitch introduced in safe i/o conversion.

This commit is contained in:
Ben Gras 2007-10-17 10:50:18 +00:00
parent 21ae963cf1
commit 23f6e478df

View file

@ -130,10 +130,10 @@ static void el3_write_fifo(dpeth_t * dep, int pktsize)
bytes = iovp->iod_iovec[ix].iov_size; /* Size of buffer */
if (bytes > pktsize) bytes = pktsize;
/* Writes from user buffer to Tx FIFO */
r= sys_safe_insb(dep->de_data_port, iovp->iod_proc_nr,
r= sys_safe_outsb(dep->de_data_port, iovp->iod_proc_nr,
iovp->iod_iovec[ix].iov_grant, 0, bytes);
if (r != OK)
panic(__FILE__, "el3_write_fifo: sys_safe_insb failed", r);
panic(__FILE__, "el3_write_fifo: sys_safe_outsb failed", r);
if (++ix >= IOVEC_NR) { /* Next buffer of IO vector */
dp_next_iovec(iovp);