summaryrefslogtreecommitdiffstats
path: root/sys/vm/device_pager.c
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-05-13 04:02:07 +0000
committerluoqi <luoqi@FreeBSD.org>1999-05-13 04:02:07 +0000
commit923ece6a8c5fdc7c16506b789620383807c0066f (patch)
tree5ec4bd3452f12e309d9c43f65f3969ece157c4d3 /sys/vm/device_pager.c
parent3274538263c7e7c87af9a27173ad7dc624c07723 (diff)
downloadFreeBSD-src-923ece6a8c5fdc7c16506b789620383807c0066f.zip
FreeBSD-src-923ece6a8c5fdc7c16506b789620383807c0066f.tar.gz
Device pager's handle is dev_t not udev_t.
Diffstat (limited to 'sys/vm/device_pager.c')
-rw-r--r--sys/vm/device_pager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c
index 997667d..fcff2f6 100644
--- a/sys/vm/device_pager.c
+++ b/sys/vm/device_pager.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)device_pager.c 8.1 (Berkeley) 6/11/93
- * $Id: device_pager.c,v 1.40 1999/05/08 06:40:29 phk Exp $
+ * $Id: device_pager.c,v 1.41 1999/05/11 19:55:07 phk Exp $
*/
#include <sys/param.h>
@@ -103,7 +103,7 @@ dev_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t fo
/*
* Make sure this device can be mapped.
*/
- dev = udev2dev((uintptr_t) handle, 2);
+ dev = (dev_t) (uintptr_t) handle;
mapfunc = devsw(dev)->d_mmap;
if (mapfunc == NULL || mapfunc == (d_mmap_t *)nullop) {
printf("obsolete map function %p\n", (void *)mapfunc);
@@ -199,7 +199,7 @@ dev_pager_getpages(object, m, count, reqpage)
d_mmap_t *mapfunc;
int prot;
- dev = udev2dev((uintptr_t) object->handle, 2);
+ dev = (dev_t) (uintptr_t) object->handle;
offset = m[reqpage]->pindex;
prot = PROT_READ; /* XXX should pass in? */
mapfunc = devsw(dev)->d_mmap;
OpenPOWER on IntegriCloud