summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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