summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-06-11 08:04:35 +0000
committermiod <miod@openbsd.org>2004-06-11 08:04:35 +0000
commitd65189596be3d8657e22d159c0687308147cc7e5 (patch)
tree7c1685407f924e537b97383c6e58b57f11a85638
parentdoc cpuid (diff)
downloadwireguard-openbsd-d65189596be3d8657e22d159c0687308147cc7e5.tar.xz
wireguard-openbsd-d65189596be3d8657e22d159c0687308147cc7e5.zip
Better stack usage on m88k for lwp.
-rw-r--r--usr.sbin/afs/src/lwp/lwp_asm.c2
-rw-r--r--usr.sbin/afs/src/lwp/lwp_asm.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/afs/src/lwp/lwp_asm.c b/usr.sbin/afs/src/lwp/lwp_asm.c
index 835a2a4994d..9c9ca801fe5 100644
--- a/usr.sbin/afs/src/lwp/lwp_asm.c
+++ b/usr.sbin/afs/src/lwp/lwp_asm.c
@@ -97,7 +97,7 @@ RCSID("$arla: lwp_asm.c,v 1.27 2002/07/16 19:35:40 lha Exp $");
#elif defined(__s390__)
#define STACK_HEADROOM 24
#elif defined(__m88k__)
-#define STACK_HEADROOM 4
+#define STACK_HEADROOM (32 / REGSIZE)
#else
#define STACK_HEADROOM 5
#endif
diff --git a/usr.sbin/afs/src/lwp/lwp_asm.h b/usr.sbin/afs/src/lwp/lwp_asm.h
index 4167f9ad14a..db69c6a7f2f 100644
--- a/usr.sbin/afs/src/lwp/lwp_asm.h
+++ b/usr.sbin/afs/src/lwp/lwp_asm.h
@@ -157,10 +157,13 @@ struct lwp_ctl { /* LWP control structure */
char *outersp; /* outermost stack pointer */
struct lwp_pcb *outerpid; /* process carved by Initialize */
struct lwp_pcb *first, last; /* ptrs to first and last pcbs */
-#if defined(__hp9000s800) || defined(__m88k__)
+#if defined(__hp9000s800)
double dsptchstack[100]; /* stack for dispatcher use only */
/* force 8 byte alignment */
#else
+#if defined(__m88k__)
+ int pad; /* force 8 byte alignment */
+#endif
char dsptchstack[800]; /* stack for dispatcher use only */
#endif
};