diff options
author | alc <alc@FreeBSD.org> | 2002-04-16 05:38:13 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-04-16 05:38:13 +0000 |
commit | d366f4114868d66ffc0435005c0ee5f4fb16763d (patch) | |
tree | df78818fa60f906caddef916f46ec065a709c874 /sys/ia64 | |
parent | 9d36fe9a23ba9180eec31398ef87f2c96258dd95 (diff) | |
download | FreeBSD-src-d366f4114868d66ffc0435005c0ee5f4fb16763d.zip FreeBSD-src-d366f4114868d66ffc0435005c0ee5f4fb16763d.tar.gz |
Remove code that updates vm->vm_ssize. This duplicates work already performed
by vm_map_growstack().
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/trap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index 722bce8..1283899 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -620,26 +620,6 @@ trap(int vector, int imm, struct trapframe *framep) */ rv = vm_fault(map, va, ftype, VM_FAULT_NORMAL); } - - /* - * If this was a stack access we keep track of the - * maximum accessed stack size. Also, if vm_fault - * gets a protection failure it is due to accessing - * the stack region outside the current limit and - * we need to reflect that as an access error. - */ - if (map != kernel_map && - (caddr_t)va >= vm->vm_maxsaddr - && (caddr_t)va < (caddr_t)USRSTACK) { - if (rv == KERN_SUCCESS) { - unsigned nss; - - nss = ia64_btop(round_page(USRSTACK - va)); - if (nss > vm->vm_ssize) - vm->vm_ssize = nss; - } else if (rv == KERN_PROTECTION_FAILURE) - rv = KERN_INVALID_ADDRESS; - } mtx_unlock(&Giant); if (rv == KERN_SUCCESS) goto out; |