diff options
Diffstat (limited to 'lib/libpthread/arch/i386/uthread_machdep.h')
-rw-r--r-- | lib/libpthread/arch/i386/uthread_machdep.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libpthread/arch/i386/uthread_machdep.h b/lib/libpthread/arch/i386/uthread_machdep.h index cac445509ca..dab5c413932 100644 --- a/lib/libpthread/arch/i386/uthread_machdep.h +++ b/lib/libpthread/arch/i386/uthread_machdep.h @@ -1,7 +1,7 @@ /* * OpenBSD/i386 machine-dependent thread macros * - * $OpenBSD: uthread_machdep.h,v 1.5 1999/03/10 09:50:33 d Exp $ + * $OpenBSD: uthread_machdep.h,v 1.6 1999/11/25 07:01:28 d Exp $ */ #include <machine/reg.h> @@ -59,9 +59,10 @@ struct _machdep_struct { /* entry */ \ (thr)->saved_jmp_buf.mjb_eip = (long) entry; \ /* stack */ \ - (thr)->saved_jmp_buf.mjb_esp = (long) (thr)->stack \ - + (pattr)->stacksize_attr \ - - sizeof(double); \ + (thr)->saved_jmp_buf.mjb_esp = \ + (long) (thr)->stack->base + \ + (thr)->stack->size \ + - sizeof(double); \ } static __inline int |