From: Ben Gras Date: Sun, 4 Sep 2005 18:53:15 +0000 (+0000) Subject: Giovanni's fixes to dp8390: X-Git-Tag: v3.1.0~193 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/sign.html?a=commitdiff_plain;h=dfe3b33cf5b1cf628a39b2c44e6af121739e10f1;p=minix.git Giovanni's fixes to dp8390: Date: Sat, 03 Sep 2005 11:05:22 +0200 Subject: Minix 3.0.8 --- diff --git a/drivers/dp8390/dp8390.c b/drivers/dp8390/dp8390.c index 63e12ec18..e7aeff46e 100644 --- a/drivers/dp8390/dp8390.c +++ b/drivers/dp8390/dp8390.c @@ -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)