Don't call vm_map_growstack() from trapwrite() as vm_fault() now performs

this automatically.
This commit is contained in:
alc 2002-04-27 17:07:15 +00:00
parent 5cd1f09afc
commit 5feddc83ac
2 changed files with 8 additions and 14 deletions

View File

@ -886,13 +886,10 @@ int trapwrite(addr)
++p->p_lock;
PROC_UNLOCK(p);
if (vm_map_growstack(p, va) != KERN_SUCCESS)
rv = KERN_FAILURE;
else
/*
* fault the data page
*/
rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY);
/*
* fault the data page
*/
rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY);
PROC_LOCK(p);
--p->p_lock;

View File

@ -886,13 +886,10 @@ int trapwrite(addr)
++p->p_lock;
PROC_UNLOCK(p);
if (vm_map_growstack(p, va) != KERN_SUCCESS)
rv = KERN_FAILURE;
else
/*
* fault the data page
*/
rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY);
/*
* fault the data page
*/
rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY);
PROC_LOCK(p);
--p->p_lock;