From 4183293558e99ea425774ebeb7a8badc70f84208 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 29 Sep 2006 14:35:29 +0000 Subject: powerpc stack needs a bit more headroom; needed because of mmap()ed stacks; report by Antoine Jacoutot; ok kurt@ --- lib/libpthread/arch/powerpc/uthread_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libpthread/arch/powerpc') 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, . Public domain */ #include @@ -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; -- cgit v1.2.3