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);
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);
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)