summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-05-21 18:30:50 +0000
committerjhb <jhb@FreeBSD.org>2001-05-21 18:30:50 +0000
commit50d57b68fb2b13077d66ee41159a56a11536e776 (patch)
tree736abbc57aa69a2df4568043dceced5e9d6e335e /sys/kern
parent76d662958aa4460c71ae7dc6596ed71f18029a16 (diff)
downloadFreeBSD-src-50d57b68fb2b13077d66ee41159a56a11536e776.zip
FreeBSD-src-50d57b68fb2b13077d66ee41159a56a11536e776.tar.gz
Axe unneeded spl()'s.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 8f49538..abb08fc 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -400,7 +400,7 @@ int
exec_map_first_page(imgp)
struct image_params *imgp;
{
- int s, rv, i;
+ int rv, i;
int initial_pagein;
vm_page_t ma[VM_INITIAL_PAGEIN];
vm_object_t object;
@@ -411,7 +411,6 @@ exec_map_first_page(imgp)
}
VOP_GETVOBJECT(imgp->vp, &object);
- s = splvm();
mtx_lock(&vm_mtx);
ma[0] = vm_page_grab(object, 0, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
@@ -443,7 +442,6 @@ exec_map_first_page(imgp)
vm_page_protect(ma[0], VM_PROT_NONE);
vm_page_free(ma[0]);
}
- splx(s);
mtx_unlock(&vm_mtx);
return EIO;
}
@@ -451,7 +449,6 @@ exec_map_first_page(imgp)
vm_page_wire(ma[0]);
vm_page_wakeup(ma[0]);
- splx(s);
pmap_kenter((vm_offset_t) imgp->image_header, VM_PAGE_TO_PHYS(ma[0]));
imgp->firstpage = ma[0];
OpenPOWER on IntegriCloud