From a152234cf9a52766984ecb9a96cc1e5740ae9d78 Mon Sep 17 00:00:00 2001 From: alc Date: Tue, 1 Aug 2006 19:06:06 +0000 Subject: Complete the transition from pmap_page_protect() to pmap_remove_write(). Originally, I had adopted sparc64's name, pmap_clear_write(), for the function that is now pmap_remove_write(). However, this function is more like pmap_remove_all() than like pmap_clear_modify() or pmap_clear_reference(), hence, the name change. The higher-level rationale behind this change is described in src/sys/amd64/amd64/pmap.c revision 1.567. The short version is that I'm trying to clean up and fix our support for execute access. Reviewed by: marcel@ (ia64) --- sys/vm/vm_page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vm_page.c') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index b36b1fa..af77ada 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1786,7 +1786,7 @@ vm_page_cowsetup(vm_page_t m) mtx_assert(&vm_page_queue_mtx, MA_OWNED); m->cow++; - pmap_page_protect(m, VM_PROT_READ); + pmap_remove_write(m); } #include "opt_ddb.h" -- cgit v1.1