diff options
author | John Baldwin <jhb@FreeBSD.org> | 2001-05-21 18:30:50 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2001-05-21 18:30:50 +0000 |
commit | d8aad40c887d356320a70a4c4e5d628a8f13f931 (patch) | |
tree | 3cb2dfea2cb4301d67fb2c658e185a946672c434 /sys/kern/kern_exec.c | |
parent | 25baf47f309668be427dbb3089a6718861689dfd (diff) | |
download | src-d8aad40c887d356320a70a4c4e5d628a8f13f931.tar.gz src-d8aad40c887d356320a70a4c4e5d628a8f13f931.zip |
Axe unneeded spl()'s.
Notes
Notes:
svn path=/head/; revision=76939
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 8f49538f038b..abb08fcf2ace 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]; |