From 5d5d5969b17422e3b1af6f88436e91f32a36fd58 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 11 Mar 2003 09:20:36 +0000 Subject: 2003-03-11 Jakub Jelinek * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined. (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP]. Use ARCH_CLONE. * allocatestack.c (ALLOCATE_STACK_PARMS): New macro. [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES, STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS, ALLOCATE_STACK): New macros. (TLS_TPADJ): New macro. (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ. (allocate_stack): Handle TLS_DTV_AT_TP and NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ. * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]: Don't set PD->self. * init.c [__ia64__] (__NR_set_tid_address): Define. --- nptl/pthread_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/pthread_create.c') diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index c1da67db79..58116f7925 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -344,10 +344,10 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg) performed in 'get_cached_stack'. This way we avoid doing this if the stack freshly allocated with 'mmap'. */ +#ifdef TLS_TCB_AT_TP /* Reference to the TCB itself. */ pd->self = pd; -#ifdef TLS_TCB_AT_TP /* Self-reference for TLS. */ pd->tcb = pd; #endif -- cgit 1.4.1