]> Zhao Yanbai Git Server - minix.git/commitdiff
Giovanni's fixes to dp8390:
authorBen Gras <ben@minix3.org>
Sun, 4 Sep 2005 18:53:15 +0000 (18:53 +0000)
committerBen Gras <ben@minix3.org>
Sun, 4 Sep 2005 18:53:15 +0000 (18:53 +0000)
Date: Sat, 03 Sep 2005 11:05:22 +0200
Subject: Minix 3.0.8

drivers/dp8390/dp8390.c

index 63e12ec18f6f444d821533990ad324e068acb226..e7aeff46e92517fc28554861b57a9d9a01f73e7b 100644 (file)
@@ -1147,8 +1147,8 @@ void *dst;
 
        offset = page * DP_PAGESIZE + offset;
 
-       r= sys_vircopy(SELF, D, (vir_bytes)dst, 
-               BIOS_SEG, D, dep->de_linmem + offset, size);
+       r = sys_vircopy(SELF, BIOS_SEG, dep->de_linmem + offset,
+               SELF, D, (vir_bytes)dst, size);
 
        if (r != OK)
                panic("DP8390", "dp_getblock: sys_vircopy failed", r);
@@ -1270,7 +1270,7 @@ vir_bytes count;
 
                r= sys_vircopy(iovp->iod_proc_nr, D,
                        iovp->iod_iovec[i].iov_addr + offset,
-                       BIOS_SEG, D, vir_hw, bytes);
+                       SELF, BIOS_SEG, vir_hw, bytes);
                if (r != OK)
                        panic("DP8390", "dp_user2nic: sys_vircopy failed", r);
 
@@ -1486,7 +1486,7 @@ vir_bytes count;
                if (bytes > count)
                        bytes = count;
 
-               r= sys_vircopy(BIOS_SEG, D, vir_hw,
+               r= sys_vircopy(SELF, BIOS_SEG, vir_hw,
                        iovp->iod_proc_nr, D,
                        iovp->iod_iovec[i].iov_addr + offset, bytes);
                if (r != OK)