Make this compile again after mycroft's pmap fixes.
This commit is contained in:
parent
9506e86204
commit
e9ea59935c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mem.c,v 1.20 1999/03/27 00:30:07 mycroft Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.21 1999/03/27 06:31:31 abs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -132,7 +132,7 @@ mmrw(dev, uio, flags)
|
|||
prot = uio->uio_rw == UIO_READ ? VM_PROT_READ :
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, TRUE, prot);
|
||||
trunc_page(pa), prot, TRUE, prot);
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
|
|
Loading…
Reference in New Issue