From b4d4a2e5d48fc8da7314d320c7461a4b3cae09c3 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Fri, 8 Jan 1999 16:04:20 +0000 Subject: [PATCH] Sync with sys/i386/i386/machdep.c revision 1.320. --- sys/pc98/i386/machdep.c | 6 +++++- sys/pc98/pc98/machdep.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 121a21dfd7b..3cee3016660 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.102 1998/12/11 08:04:33 kato Exp $ + * $Id: machdep.c,v 1.103 1998/12/16 16:28:57 bde Exp $ */ #include "apm.h" @@ -538,7 +538,11 @@ sendsig(catcher, sig, mask, code) * and the stack can not be grown. useracc will return FALSE * if access is denied. */ +#ifdef VM_STACK + if ((grow_stack (p, (int)fp) == FALSE) || +#else if ((grow(p, (int)fp) == FALSE) || +#endif (useracc((caddr_t)fp, sizeof(struct sigframe), B_WRITE) == FALSE)) { /* * Process has trashed its stack; give it an illegal diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 121a21dfd7b..3cee3016660 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.102 1998/12/11 08:04:33 kato Exp $ + * $Id: machdep.c,v 1.103 1998/12/16 16:28:57 bde Exp $ */ #include "apm.h" @@ -538,7 +538,11 @@ sendsig(catcher, sig, mask, code) * and the stack can not be grown. useracc will return FALSE * if access is denied. */ +#ifdef VM_STACK + if ((grow_stack (p, (int)fp) == FALSE) || +#else if ((grow(p, (int)fp) == FALSE) || +#endif (useracc((caddr_t)fp, sizeof(struct sigframe), B_WRITE) == FALSE)) { /* * Process has trashed its stack; give it an illegal