]> Zhao Yanbai Git Server - minix.git/commitdiff
Fixed a glitch introduced in safe i/o conversion.
authorBen Gras <ben@minix3.org>
Wed, 17 Oct 2007 10:50:18 +0000 (10:50 +0000)
committerBen Gras <ben@minix3.org>
Wed, 17 Oct 2007 10:50:18 +0000 (10:50 +0000)
drivers/dpeth/3c509.c

index 14c89a526f17ef074e57ccf9e6b3ee7c579e4aa1..ffa89ff081260c663b586beb50ccce00fdbd9de9 100644 (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);