diff options
| author | Alan Cox <alc@FreeBSD.org> | 2002-04-16 05:56:01 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2002-04-16 05:56:01 +0000 |
| commit | edbecb0cf593c61107aa6fac8d5ba7eeb092f8d0 (patch) | |
| tree | ff783cec5ff91de7fbb83f322361947cf35c152d /sys | |
| parent | 87906298f1449635032ce7f766c13ac6fc2f3887 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/alpha/alpha/trap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c index bfb71bd8ae2f..16185b7cf6ce 100644 --- a/sys/alpha/alpha/trap.c +++ b/sys/alpha/alpha/trap.c @@ -559,26 +559,6 @@ trap(a0, a1, a2, entry, 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 long nss, rp; - rp = round_page(USRSTACK - va); - nss = alpha_btop(rp); - 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; |
