summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-07-02 02:08:02 +0000
committerdyson <dyson@FreeBSD.org>1996-07-02 02:08:02 +0000
commitb60f2e04c997a7db556ab1a51e1e88b899867a36 (patch)
tree44da2c02f1c5277b5b70f939b215935db28381b2 /sys/vm/vm_kern.c
parent64422261a09e4e1bbd10d909af4cfea261c20a97 (diff)
downloadFreeBSD-src-b60f2e04c997a7db556ab1a51e1e88b899867a36.zip
FreeBSD-src-b60f2e04c997a7db556ab1a51e1e88b899867a36.tar.gz
Properly set the PG_MAPPED and PG_WRITEABLE flags. This fixes some potential
problems with vm_map_remove/vm_map_delete.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 1b9960e..5b117b0 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_kern.c,v 1.25 1996/05/18 03:37:39 dyson Exp $
+ * $Id: vm_kern.c,v 1.26 1996/05/23 02:24:55 dyson Exp $
*/
/*
@@ -381,6 +381,7 @@ retry:
PAGE_WAKEUP(m);
pmap_enter(kernel_pmap, addr + i, VM_PAGE_TO_PHYS(m),
VM_PROT_ALL, 1);
+ m->flags |= PG_MAPPED|PG_WRITEABLE;
}
vm_map_unlock(map);
OpenPOWER on IntegriCloud