diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-19 21:08:44 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-19 21:08:44 +0000 |
commit | 74f6d0d46c772481e8721cc054dcf4d4815852f6 (patch) | |
tree | 25f3aab2a713e3d0f7f020a5bdd8827215cdf91b | |
parent | c382aa90246236898a439c1aee135bb0957b66f2 (diff) |
make sure we are hitting user stack and not smth else here, make init show normal vsz in ps now
-rw-r--r-- | sys/arch/hppa/hppa/trap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index c93623d835b..d318406e9ae 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.54 2002/12/17 21:54:25 mickey Exp $ */ +/* $OpenBSD: trap.c,v 1.55 2002/12/19 21:08:43 mickey Exp $ */ /* * Copyright (c) 1998-2001 Michael Shalayeff @@ -391,7 +391,8 @@ trap(type, frame) * the current limit and we need to reflect that as an access * error. */ - if (va >= (vaddr_t)vm->vm_maxsaddr + ctob(vm->vm_ssize)) { + if (space != 0 && va < (vaddr_t)vm->vm_minsaddr && + va >= (vaddr_t)vm->vm_maxsaddr + ctob(vm->vm_ssize)) { if (ret == 0) { vsize_t nss = btoc(va - USRSTACK + NBPG - 1); if (nss > vm->vm_ssize) |