mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Remove usage of nonexistent vm_mtx.
This commit is contained in:
parent
ba139b3c03
commit
da572e14d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81197
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user