diff options
author | 2006-09-29 14:35:28 +0000 | |
---|---|---|
committer | 2006-09-29 14:35:28 +0000 | |
commit | 78dc01886a8cc5e4508fe77ff24e132265edb272 (patch) | |
tree | be92ddc86cfeec29b11f046408265a14a94b6d55 /lib/libpthread/arch | |
parent | add strtod() underflow test (diff) | |
download | wireguard-openbsd-78dc01886a8cc5e4508fe77ff24e132265edb272.tar.xz wireguard-openbsd-78dc01886a8cc5e4508fe77ff24e132265edb272.zip |
powerpc stack needs a bit more headroom; needed because of mmap()ed
stacks; report by Antoine Jacoutot; ok kurt@
Diffstat (limited to 'lib/libpthread/arch')
-rw-r--r-- | lib/libpthread/arch/powerpc/uthread_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/powerpc/uthread_machdep.c b/lib/libpthread/arch/powerpc/uthread_machdep.c index f85801c13ff..51735790825 100644 --- a/lib/libpthread/arch/powerpc/uthread_machdep.c +++ b/lib/libpthread/arch/powerpc/uthread_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_machdep.c,v 1.4 2003/01/27 21:45:24 drahn Exp $ */ +/* $OpenBSD: uthread_machdep.c,v 1.5 2006/09/29 14:35:28 otto Exp $ */ /* David Leonard, <d@csee.uq.edu.au>. Public domain */ #include <pthread.h> @@ -33,7 +33,7 @@ _thread_machdep_init(statep, base, len, entry) struct frame *f; /* Locate the initial frame, aligned at the top of the stack */ - f = (struct frame *)(((int)base + len - sizeof *f) & ~ALIGNBYTES); + f = (struct frame *)(((int)base - 16 + len - sizeof *f) & ~ALIGNBYTES); f->r1 = (int)&f->next_r1; f->reserved = 0; |