Fix an ordering bug -- pmap_remove_pages should be called BEFORE

vm_map_remove, not after...

2.2-RELEASE candidate.
This commit is contained in:
dyson 1996-11-09 03:54:25 +00:00
parent 41748dec16
commit 207156b52f

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: kern_exec.c,v 1.46 1996/07/30 03:08:34 dyson Exp $
* $Id: kern_exec.c,v 1.47 1996/10/12 21:35:19 dyson Exp $
*/
#include <sys/param.h>
@ -367,8 +367,8 @@ exec_new_vmspace(imgp)
/* Blow away entire process VM */
if (vmspace->vm_shm)
shmexit(imgp->proc);
vm_map_remove(&vmspace->vm_map, 0, USRSTACK);
pmap_remove_pages(&vmspace->vm_pmap, 0, USRSTACK);
vm_map_remove(&vmspace->vm_map, 0, USRSTACK);
/* Allocate a new stack */
error = vm_map_find(&vmspace->vm_map, NULL, 0, (vm_offset_t *)&stack_addr,