diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-09-29 14:35:29 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-09-29 14:35:29 +0000 |
commit | 4183293558e99ea425774ebeb7a8badc70f84208 (patch) | |
tree | c2749c7e59ee3469612141cafebd092a2b77ff31 /lib | |
parent | 743ad0da7030a75abed08cdae1442be8689032f3 (diff) |
powerpc stack needs a bit more headroom; needed because of mmap()ed
stacks; report by Antoine Jacoutot; ok kurt@
Diffstat (limited to 'lib')
-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; |