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>
This commit is contained in:
parent
15cb98465f
commit
7d78abc9d9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user