summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev
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/hppa/dev
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/hppa/dev')
-rw-r--r--sys/arch/hppa/dev/mem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/dev/mem.c b/sys/arch/hppa/dev/mem.c
index 282b31cd505..fb15c42ea2f 100644
--- a/sys/arch/hppa/dev/mem.c
+++ b/sys/arch/hppa/dev/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.34 2014/04/08 09:34:22 mpi Exp $ */
+/* $OpenBSD: mem.c,v 1.35 2015/02/10 21:56:09 miod Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -359,7 +359,7 @@ mmrw(dev, uio, flags)
}
c = ptoa(physmem) - v;
c = min(c, uio->uio_resid);
- error = uiomove((caddr_t)v, c, uio);
+ error = uiomovei((caddr_t)v, c, uio);
break;
case 1: /* /dev/kmem */
@@ -372,7 +372,7 @@ mmrw(dev, uio, flags)
/* this will break us out of the loop */
continue;
}
- error = uiomove((caddr_t)v, c, uio);
+ error = uiomovei((caddr_t)v, c, uio);
break;
case 2: /* /dev/null */
@@ -394,7 +394,7 @@ mmrw(dev, uio, 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: