From fc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1 Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 10 Nov 2002 07:12:04 +0000 Subject: 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(). --- sys/kern/kern_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_exec.c') 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(); } -- cgit v1.1