diff options
author | alc <alc@FreeBSD.org> | 2002-11-10 07:12:04 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-11-10 07:12:04 +0000 |
commit | fc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1 (patch) | |
tree | c2353317d021437c05c64b489549bbc567f14a5c /sys/kern/kern_exec.c | |
parent | 55c878faa1969b792313405f42e5c61771d3f9d3 (diff) | |
download | FreeBSD-src-fc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1.zip FreeBSD-src-fc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1.tar.gz |
When prot is VM_PROT_NONE, call pmap_page_protect() directly rather than
indirectly through vm_page_protect(). The one remaining page flag that
is updated by vm_page_protect() is already being updated by our various
pmap implementations.
Note: A later commit will similarly change the VM_PROT_READ case and
eliminate vm_page_protect().
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 0241c4d..0dc89f3 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -771,7 +771,7 @@ exec_map_first_page(imgp) (ma[0]->valid == 0)) { if (ma[0]) { vm_page_lock_queues(); - vm_page_protect(ma[0], VM_PROT_NONE); + pmap_page_protect(ma[0], VM_PROT_NONE); vm_page_free(ma[0]); vm_page_unlock_queues(); } |