summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-08-06 12:52:17 +0000
committerdfr <dfr@FreeBSD.org>2001-08-06 12:52:17 +0000
commitc47efb9434c0e529e9cb53bff1a19bbbee99d295 (patch)
tree44199504e43a7c7ee80f523c604b360b28911e09 /sys
parent442f7519d7013113800638963d39f4382ffb2ad2 (diff)
downloadFreeBSD-src-c47efb9434c0e529e9cb53bff1a19bbbee99d295.zip
FreeBSD-src-c47efb9434c0e529e9cb53bff1a19bbbee99d295.tar.gz
Remove usage of nonexistent vm_mtx.
Diffstat (limited to 'sys')
-rw-r--r--sys/ia64/ia64/machdep.c2
-rw-r--r--sys/ia64/ia64/mem.c4
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index 0ff71fc..1bf4a78 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -175,7 +175,6 @@ cpu_startup(dummy)
/*
* Good {morning,afternoon,evening,night}.
*/
- mtx_lock(&vm_mtx);
identifycpu();
/* startrtclock(); */
@@ -284,7 +283,6 @@ again:
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.
diff --git a/sys/ia64/ia64/mem.c b/sys/ia64/ia64/mem.c
index 6aed40d..a6dd046 100644
--- a/sys/ia64/ia64/mem.c
+++ b/sys/ia64/ia64/mem.c
@@ -189,19 +189,15 @@ kmemphys:
*/
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);
}
OpenPOWER on IntegriCloud