From dfe3b33cf5b1cf628a39b2c44e6af121739e10f1 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 4 Sep 2005 18:53:15 +0000 Subject: [PATCH] Giovanni's fixes to dp8390: Date: Sat, 03 Sep 2005 11:05:22 +0200 Subject: Minix 3.0.8 --- drivers/dp8390/dp8390.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.44.0