summaryrefslogtreecommitdiff
path: root/lib/libc_r/arch/i386
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-11-25 07:01:48 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-11-25 07:01:48 +0000
commit0fe78c3128864d128b2b10153b8d533ff8c00375 (patch)
tree5229c3d97eed15f4d71927a5f454180aef2632f6 /lib/libc_r/arch/i386
parented00fa742a6455d22e3b56cf846dc5acd7a51fd7 (diff)
sync with FreeBSD
Diffstat (limited to 'lib/libc_r/arch/i386')
-rw-r--r--lib/libc_r/arch/i386/uthread_machdep.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc_r/arch/i386/uthread_machdep.h b/lib/libc_r/arch/i386/uthread_machdep.h
index cac445509ca..dab5c413932 100644
--- a/lib/libc_r/arch/i386/uthread_machdep.h
+++ b/lib/libc_r/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