Beispiel #1
0
/*
 * The constructors.
 */
struct tcb *
_tcb_ctor(struct pthread *thread, int initial)
{
	struct tcb *tcb;

	tcb = _rtld_allocate_tls((initial) ? _tcb_get() : NULL,
	    sizeof(struct tcb), 16);
	if (tcb)
		tcb->tcb_thread = thread;
	return (tcb);
}
Beispiel #2
0
/*
 * The constructors.
 */
struct tcb *
_tcb_ctor(struct pthread *thread, int initial)
{
	struct tcb *tcb;

	tcb = _rtld_allocate_tls((initial) ? ppc_get_tp() : NULL,
	    sizeof(struct tcb), 8);
	if (tcb == NULL)
		return (NULL);
	tcb->tcb_thread = thread;
	return (tcb);
}
Beispiel #3
0
/*
 * The constructors.
 */
struct tcb *
_tcb_ctor(struct pthread *thread, int initial)
{
	register char *tp __asm("%r13");
	struct tcb *tcb;

	tcb = _rtld_allocate_tls((initial) ? tp : NULL,
	    sizeof(struct tcb), 16);
	if (tcb == NULL)
		return (NULL);
	tcb->tcb_thread = thread;
	return (tcb);
}