Remove usage of nonexistent vm_mtx.

This commit is contained in:
Doug Rabson 2001-08-06 12:52:17 +00:00
parent ba139b3c03
commit da572e14d4
2 changed files with 0 additions and 6 deletions

View File

@ -175,7 +175,6 @@ cpu_startup(dummy)
/*
* Good {morning,afternoon,evening,night}.
*/
mtx_lock(&vm_mtx);
identifycpu();
/* startrtclock(); */
@ -284,7 +283,6 @@ cpu_startup(dummy)
pager_map->system_map = 1;
exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(16*(ARG_MAX+(PAGE_SIZE*3))));
mtx_unlock(&vm_mtx);
/*
* Finally, allocate mbuf pool.

View File

@ -189,19 +189,15 @@ mmrw(dev_t dev, struct uio *uio, int flags)
*/
addr = trunc_page(v);
eaddr = round_page(v + c);
mtx_lock(&vm_mtx);
for (; addr < eaddr; addr += PAGE_SIZE)
if (pmap_extract(kernel_pmap, addr) == 0) {
mtx_unlock(&vm_mtx);
return EFAULT;
}
if (!kernacc((caddr_t)v, c,
uio->uio_rw == UIO_READ ?
VM_PROT_READ : VM_PROT_WRITE)) {
mtx_unlock(&vm_mtx);
return (EFAULT);
}
mtx_unlock(&vm_mtx);
error = uiomove((caddr_t)v, c, uio);
}