diff options
author | dyson <dyson@FreeBSD.org> | 1996-07-02 02:08:02 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-07-02 02:08:02 +0000 |
commit | b60f2e04c997a7db556ab1a51e1e88b899867a36 (patch) | |
tree | 44da2c02f1c5277b5b70f939b215935db28381b2 /sys/vm/vm_glue.c | |
parent | 64422261a09e4e1bbd10d909af4cfea261c20a97 (diff) | |
download | FreeBSD-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_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 6e2d55b..21d28f7 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -59,7 +59,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_glue.c,v 1.50 1996/05/31 00:37:57 dyson Exp $ + * $Id: vm_glue.c,v 1.51 1996/06/30 21:16:18 dyson Exp $ */ #include "opt_ddb.h" @@ -253,7 +253,7 @@ vm_fork(p1, p2) pmap_kenter(((vm_offset_t) up) + i * PAGE_SIZE, VM_PAGE_TO_PHYS(m)); m->flags &= ~PG_ZERO; - m->flags |= PG_MAPPED; + m->flags |= PG_MAPPED|PG_WRITEABLE; m->valid = VM_PAGE_BITS_ALL; } @@ -364,7 +364,7 @@ retry: m->valid = VM_PAGE_BITS_ALL; } PAGE_WAKEUP(m); - m->flags |= PG_MAPPED; + m->flags |= PG_MAPPED|PG_WRITEABLE; } s = splhigh(); |