summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-02-10 21:56:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-02-10 21:56:11 +0000
commitfb06ed88b5810f53d16a2f3f90904ed7ea4de07a (patch)
tree0ad268ca945306e22e87692f6bb02fcd1220d0e4 /sys/arch/sh
parent4ed4205fc6bdb404dcf67f9f19347eea957f5982 (diff)
First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/mem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sh/sh/mem.c b/sys/arch/sh/sh/mem.c
index 85a4e37e673..7aa2fea8bc7 100644
--- a/sys/arch/sh/sh/mem.c
+++ b/sys/arch/sh/sh/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.4 2010/12/26 15:41:00 miod Exp $ */
+/* $OpenBSD: mem.c,v 1.5 2015/02/10 21:56:09 miod Exp $ */
/* $NetBSD: mem.c,v 1.21 2006/07/23 22:06:07 ad Exp $ */
/*
@@ -153,7 +153,7 @@ mmrw(dev_t dev, struct uio *uio, int flags)
if (__mm_mem_addr(v)) {
o = v & PGOFSET;
c = min(uio->uio_resid, (int)(PAGE_SIZE - o));
- error = uiomove((caddr_t)SH3_PHYS_TO_P1SEG(v),
+ error = uiomovei((caddr_t)SH3_PHYS_TO_P1SEG(v),
c, uio);
} else {
return (EFAULT);
@@ -171,7 +171,7 @@ mmrw(dev_t dev, struct uio *uio, int flags)
return (EFAULT);
*/
c = min(iov->iov_len, MAXPHYS);
- error = uiomove((caddr_t)v, c, uio);
+ error = uiomovei((caddr_t)v, c, uio);
} else if (v < SH3_P3SEG_BASE) /* P2 */
return (EFAULT);
else { /* P3 */
@@ -179,7 +179,7 @@ mmrw(dev_t dev, struct uio *uio, int flags)
if (!uvm_kernacc((void *)v, c,
uio->uio_rw == UIO_READ ? B_READ : B_WRITE))
return (EFAULT);
- error = uiomove((caddr_t)v, c, uio);
+ error = uiomovei((caddr_t)v, c, uio);
}
break;
@@ -197,7 +197,7 @@ mmrw(dev_t dev, struct uio *uio, int flags)
zeropage = malloc(PAGE_SIZE, M_TEMP,
M_WAITOK | M_ZERO);
c = min(iov->iov_len, PAGE_SIZE);
- error = uiomove(zeropage, c, uio);
+ error = uiomovei(zeropage, c, uio);
break;
default: