summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/mips
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/mips
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/mips')
-rw-r--r--lib/libpthread/arch/mips/uthread_machdep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/arch/mips/uthread_machdep.h b/lib/libpthread/arch/mips/uthread_machdep.h
index 6052b2003da..89fb399d629 100644
--- a/lib/libpthread/arch/mips/uthread_machdep.h
+++ b/lib/libpthread/arch/mips/uthread_machdep.h
@@ -1,7 +1,7 @@
/*
* OpenBSD/mips machine-dependent thread macros
*
- * $OpenBSD: uthread_machdep.h,v 1.3 1999/01/17 23:49:49 d Exp $
+ * $OpenBSD: uthread_machdep.h,v 1.4 1999/11/25 07:01:28 d Exp $
*/
#include <machine/regnum.h>
@@ -23,8 +23,8 @@
j->sc_regs[RA] = j->sc_pc; /* for gdb */ \
j->sc_pc = (int)entry; \
/* stack */ \
- j->sc_regs[SP] = (int) (thr)->stack \
- + (pattr)->stacksize_attr \
+ j->sc_regs[SP] = (int) (thr)->stack->base \
+ + (thr)->stack->size \
- sizeof(double); \
}