summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-04-06 03:04:31 +0000
committerdyson <dyson@FreeBSD.org>1997-04-06 03:04:31 +0000
commitf304c6bda9fc83454f09113fd380f2516a41ec9e (patch)
treede156e953f2ad042522971511e261f96ead06402 /sys
parent54fd4a3d4201dd1e69ab9b49ee4d228def32c6ab (diff)
downloadFreeBSD-src-f304c6bda9fc83454f09113fd380f2516a41ec9e.zip
FreeBSD-src-f304c6bda9fc83454f09113fd380f2516a41ec9e.tar.gz
Make vm_map_protect be more complete about map simplification. This
is useful when a process changes it's page range protections very much. Submitted by: Alan Cox <alc@cs.rice.edu>
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 95b2817..18753d3 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_map.c,v 1.72 1997/02/22 09:48:23 peter Exp $
+ * $Id: vm_map.c,v 1.73 1997/04/06 02:29:43 dyson Exp $
*/
/*
@@ -1178,10 +1178,12 @@ vm_map_protect(map, start, end, new_prot, set_max)
#undef max
#undef MASK
}
+
+ vm_map_simplify_entry(map, current);
+
current = current->next;
}
- vm_map_simplify_entry(map, entry);
vm_map_unlock(map);
return (KERN_SUCCESS);
}
OpenPOWER on IntegriCloud