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_fault.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_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 29a7c16..c3424b9 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -66,7 +66,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_fault.c,v 1.51 1996/06/14 23:26:40 davidg Exp $ + * $Id: vm_fault.c,v 1.52 1996/06/16 20:37:26 dyson Exp $ */ /* @@ -972,10 +972,10 @@ vm_fault_copy_entry(dst_map, src_map, dst_entry, src_entry) * Enter it in the pmap... */ - dst_m->flags |= PG_WRITEABLE|PG_MAPPED; dst_m->flags &= ~PG_ZERO; pmap_enter(dst_map->pmap, vaddr, VM_PAGE_TO_PHYS(dst_m), prot, FALSE); + dst_m->flags |= PG_WRITEABLE|PG_MAPPED; /* * Mark it no longer busy, and put it on the active list. |