freebsd-dev/lib/libkse
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
..
arch Avoid a level of indirection to get from the thread pointer to the 2003-08-06 04:17:42 +00:00
support Style. 2003-07-02 20:52:39 +00:00
sys Move the machine specific files from sys/Makefile.inc and put them 2003-06-23 04:28:31 +00:00
test o Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now it 2003-07-17 23:02:30 +00:00
thread Don't call kse_set_curthread() when scheduling a new bound 2003-08-06 00:43:28 +00:00
Makefile o Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now it 2003-07-17 23:02:30 +00:00