From 86acd5963441f4bfc087ceca8c30f8d72c6a5fa6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 25 May 2007 05:24:16 +0000 Subject: * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX, THREAD_COPY_PRIVATE_FUTEX): Define. * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX, THREAD_COPY_PRIVATE_FUTEX): Define. * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX. * init.c (__pthread_initialize_minimal_internal): Use THREAD_SET_PRIVATE_FUTEX. --- nptl/allocatestack.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'nptl/allocatestack.c') diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 9c9372b..4ac04db 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -376,10 +376,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif -#ifndef __ASSUME_PRIVATE_FUTEX +#ifdef THREAD_COPY_PRIVATE_FUTEX /* The thread must know when private futexes are supported. */ - pd->header.private_futex = THREAD_GETMEM (THREAD_SELF, - header.private_futex); + THREAD_COPY_PRIVATE_FUTEX (pd); #endif #ifdef NEED_DL_SYSINFO @@ -516,10 +515,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif -#ifndef __ASSUME_PRIVATE_FUTEX +#ifdef THREAD_COPY_PRIVATE_FUTEX /* The thread must know when private futexes are supported. */ - pd->header.private_futex = THREAD_GETMEM (THREAD_SELF, - header.private_futex); + THREAD_COPY_PRIVATE_FUTEX (pd); #endif #ifdef NEED_DL_SYSINFO -- cgit v1.1