summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/powerpc
diff options
context:
space:
mode:
authord <d@openbsd.org>1999-11-25 07:01:27 +0000
committerd <d@openbsd.org>1999-11-25 07:01:27 +0000
commit55c3be94fd3300052ae99760eb43f4d203a9deb4 (patch)
tree7e280922b53046d374ca3a322bae9e199089037b /lib/libpthread/arch/powerpc
parentkeep freebsd's thread info distcint from mine (diff)
downloadwireguard-openbsd-55c3be94fd3300052ae99760eb43f4d203a9deb4.tar.xz
wireguard-openbsd-55c3be94fd3300052ae99760eb43f4d203a9deb4.zip
sync with FreeBSD
Diffstat (limited to 'lib/libpthread/arch/powerpc')
-rw-r--r--lib/libpthread/arch/powerpc/uthread_machdep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/arch/powerpc/uthread_machdep.h b/lib/libpthread/arch/powerpc/uthread_machdep.h
index bd713b5ff0e..6041279d95e 100644
--- a/lib/libpthread/arch/powerpc/uthread_machdep.h
+++ b/lib/libpthread/arch/powerpc/uthread_machdep.h
@@ -1,7 +1,7 @@
/*
* OpenBSD/powerpc machine-dependent thread macros
*
- * $OpenBSD: uthread_machdep.h,v 1.3 1999/04/21 03:45:21 rahnds Exp $
+ * $OpenBSD: uthread_machdep.h,v 1.4 1999/11/25 07:01:29 d Exp $
*/
/* save the floating point state of a thread */
@@ -24,8 +24,8 @@
(thr)->saved_jmp_buf[JMP_lr] = \
(unsigned int) entry; \
(thr)->saved_jmp_buf[JMP_r1] = \
- ((unsigned int) (thr)->stack \
- + (pattr)->stacksize_attr \
+ ((unsigned int) (thr)->stack->base \
+ + (thr)->stack->size \
- 0x4) & ~0xf; \
{ \
unsigned int *pbacklink = \