summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>2002-03-20 11:15:05 +0000
committerkato <kato@FreeBSD.org>2002-03-20 11:15:05 +0000
commit0e4d29dacb4016b18699d542c75a72f983727869 (patch)
tree530aead7e40a81dd0e52828063893c3f3df8c3a1 /sys/pc98
parent89c4600244e2748c5fd1bf466692a61b6d8bdb14 (diff)
downloadFreeBSD-src-0e4d29dacb4016b18699d542c75a72f983727869.zip
FreeBSD-src-0e4d29dacb4016b18699d542c75a72f983727869.tar.gz
MFi386: revision 1.504.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c14
-rw-r--r--sys/pc98/pc98/machdep.c14
2 files changed, 8 insertions, 20 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 44bc84f..6e685e2 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -399,12 +399,9 @@ osendsig(catcher, sig, mask, code)
}
/*
- * Copy the sigframe out to the user's stack. If this fails,
- * try growing the stack and retrying the copy.
+ * Copy the sigframe out to the user's stack.
*/
- if (copyout(&sf, fp, sizeof(*fp)) != 0 &&
- (grow_stack(p, (int)fp) == 0 ||
- copyout(&sf, fp, sizeof(*fp)) != 0)) {
+ if (copyout(&sf, fp, sizeof(*fp)) != 0) {
#ifdef DEBUG
printf("process %ld has trashed its stack\n", (long)p->p_pid);
#endif
@@ -531,12 +528,9 @@ sendsig(catcher, sig, mask, code)
}
/*
- * Copy the sigframe out to the user's stack. If this fails,
- * try growing the stack and retrying the copy.
+ * Copy the sigframe out to the user's stack.
*/
- if (copyout(&sf, sfp, sizeof(*sfp)) != 0 &&
- (grow_stack(p, (int)sfp) == 0 ||
- copyout(&sf, sfp, sizeof(*sfp)) != 0)) {
+ if (copyout(&sf, sfp, sizeof(*sfp)) != 0) {
#ifdef DEBUG
printf("process %ld has trashed its stack\n", (long)p->p_pid);
#endif
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 44bc84f..6e685e2 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -399,12 +399,9 @@ osendsig(catcher, sig, mask, code)
}
/*
- * Copy the sigframe out to the user's stack. If this fails,
- * try growing the stack and retrying the copy.
+ * Copy the sigframe out to the user's stack.
*/
- if (copyout(&sf, fp, sizeof(*fp)) != 0 &&
- (grow_stack(p, (int)fp) == 0 ||
- copyout(&sf, fp, sizeof(*fp)) != 0)) {
+ if (copyout(&sf, fp, sizeof(*fp)) != 0) {
#ifdef DEBUG
printf("process %ld has trashed its stack\n", (long)p->p_pid);
#endif
@@ -531,12 +528,9 @@ sendsig(catcher, sig, mask, code)
}
/*
- * Copy the sigframe out to the user's stack. If this fails,
- * try growing the stack and retrying the copy.
+ * Copy the sigframe out to the user's stack.
*/
- if (copyout(&sf, sfp, sizeof(*sfp)) != 0 &&
- (grow_stack(p, (int)sfp) == 0 ||
- copyout(&sf, sfp, sizeof(*sfp)) != 0)) {
+ if (copyout(&sf, sfp, sizeof(*sfp)) != 0) {
#ifdef DEBUG
printf("process %ld has trashed its stack\n", (long)p->p_pid);
#endif
OpenPOWER on IntegriCloud