aboutsummaryrefslogtreecommitdiff
path: root/lib/libpthread/arch/arm
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2004-07-14 00:58:53 +0000
committerDavid Xu <davidxu@FreeBSD.org>2004-07-14 00:58:53 +0000
commitdd094c943dffad0c025c5252ad1af108299c9e29 (patch)
treeab7ca61b2fc224f6b1ec8f11777fe4ee3dcbb87c /lib/libpthread/arch/arm
parent707783de09da410e1ec01fc66858a449cbbaeace (diff)
Notes
Diffstat (limited to 'lib/libpthread/arch/arm')
-rw-r--r--lib/libpthread/arch/arm/include/pthread_md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpthread/arch/arm/include/pthread_md.h b/lib/libpthread/arch/arm/include/pthread_md.h
index 4cce2123f90b..2ba486cae3cc 100644
--- a/lib/libpthread/arch/arm/include/pthread_md.h
+++ b/lib/libpthread/arch/arm/include/pthread_md.h
@@ -233,6 +233,7 @@ _thread_switch(struct kcb *kcb, struct tcb *tcb, int setmbox)
_tcb_set(kcb, tcb);
mc = &tcb->tcb_tmbx.tm_context.uc_mcontext;
if (_libkse_debug == 0) {
+ tcb->tcb_tmbx.tm_lwp = kcb->kcb_kmbx.km_lwp;
if (setmbox)
_thr_setcontext(mc, (intptr_t)&tcb->tcb_tmbx,
(intptr_t *)&kcb->kcb_kmbx.km_curthread);