diff options
author | dyson <dyson@FreeBSD.org> | 1996-11-09 03:54:25 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-11-09 03:54:25 +0000 |
commit | 6f0ff19196914a6507ef8aaf6b412e804420bb98 (patch) | |
tree | ec78a0f086b47cee35bb58ff12d89bd388bcdf2b /sys/kern/kern_exec.c | |
parent | a88e311da43c94bf10e08c4174e20cf9af3e9612 (diff) | |
download | FreeBSD-src-6f0ff19196914a6507ef8aaf6b412e804420bb98.zip FreeBSD-src-6f0ff19196914a6507ef8aaf6b412e804420bb98.tar.gz |
Fix an ordering bug -- pmap_remove_pages should be called BEFORE
vm_map_remove, not after...
2.2-RELEASE candidate.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 5a1767d..694ed0f 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -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, |