summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-07-14 00:58:53 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-07-14 00:58:53 +0000
commitd2c424e30cfecd22fea38aa7e3cdce9d030657cd (patch)
treeab7ca61b2fc224f6b1ec8f11777fe4ee3dcbb87c
parent79e1f83f8dbbe08a49246049b8adee47c38eab47 (diff)
downloadFreeBSD-src-d2c424e30cfecd22fea38aa7e3cdce9d030657cd.zip
FreeBSD-src-d2c424e30cfecd22fea38aa7e3cdce9d030657cd.tar.gz
Copy lwp id to thread mailbox.
-rw-r--r--lib/libkse/arch/arm/include/pthread_md.h1
-rw-r--r--lib/libpthread/arch/arm/include/pthread_md.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkse/arch/arm/include/pthread_md.h b/lib/libkse/arch/arm/include/pthread_md.h
index 4cce212..2ba486c 100644
--- a/lib/libkse/arch/arm/include/pthread_md.h
+++ b/lib/libkse/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);
diff --git a/lib/libpthread/arch/arm/include/pthread_md.h b/lib/libpthread/arch/arm/include/pthread_md.h
index 4cce212..2ba486c 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);
OpenPOWER on IntegriCloud