Remove an unnecessary and inconsistently used variable from exec_new_vmspace().
This commit is contained in:
parent
d306122d60
commit
cb100b25ce
@ -583,7 +583,6 @@ exec_new_vmspace(imgp)
|
||||
struct execlist *ep;
|
||||
struct vmspace *vmspace = imgp->proc->p_vmspace;
|
||||
vm_offset_t stack_addr = USRSTACK - maxssiz;
|
||||
vm_map_t map = &vmspace->vm_map;
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
@ -604,11 +603,10 @@ exec_new_vmspace(imgp)
|
||||
if (vmspace->vm_shm)
|
||||
shmexit(imgp->proc);
|
||||
pmap_remove_pages(vmspace_pmap(vmspace), 0, VM_MAXUSER_ADDRESS);
|
||||
vm_map_remove(map, 0, VM_MAXUSER_ADDRESS);
|
||||
vm_map_remove(&vmspace->vm_map, 0, VM_MAXUSER_ADDRESS);
|
||||
} else {
|
||||
vmspace_exec(imgp->proc);
|
||||
vmspace = imgp->proc->p_vmspace;
|
||||
map = &vmspace->vm_map;
|
||||
}
|
||||
|
||||
/* Allocate a new stack */
|
||||
|
Loading…
x
Reference in New Issue
Block a user