diff options
-rw-r--r-- | lib/libkse/arch/arm/include/pthread_md.h | 1 | ||||
-rw-r--r-- | lib/libpthread/arch/arm/include/pthread_md.h | 1 |
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); |