freebsd-dev/lib/libpthread/arch
Marcel Moolenaar d7c68311ee Avoid a level of indirection to get from the thread pointer to the
TCB. We know that the thread pointer points to &tcb->tcb_tp, so all
we have to do is subtract offsetof(struct tcb, tcb_tp) from the
thread pointer to get to the TCB. Any reasonably smart compiler will
translate accesses to fields in the TCB as negative offsets from TP.

In _tcb_set() make sure the fake TCB gets a pointer to the current
KCB, just like any other TCB. This fixes a NULL-pointer dereference
in _thr_ref_add() when it tried to get the current KSE.
2003-08-06 04:17:42 +00:00
..
alpha Remove _atomic_lock. It's not used. 2003-06-23 04:33:32 +00:00
amd64 Rethink the MD interfaces for libpthread to account for 2003-08-05 22:46:00 +00:00
i386 Use auto LDT allocation for i386. 2003-08-05 23:09:22 +00:00
ia64 Avoid a level of indirection to get from the thread pointer to the 2003-08-06 04:17:42 +00:00