diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-05-25 05:24:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-05-25 05:24:16 +0000 |
commit | 86acd5963441f4bfc087ceca8c30f8d72c6a5fa6 (patch) | |
tree | 1acc784992aafa1c297cc98232d609166f57d306 /nptl/init.c | |
parent | 0a54ab53f2bbbd380b019dc665047fb3acf37e3a (diff) | |
download | glibc-86acd5963441f4bfc087ceca8c30f8d72c6a5fa6.tar glibc-86acd5963441f4bfc087ceca8c30f8d72c6a5fa6.tar.gz glibc-86acd5963441f4bfc087ceca8c30f8d72c6a5fa6.tar.bz2 glibc-86acd5963441f4bfc087ceca8c30f8d72c6a5fa6.zip |
* 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.
Diffstat (limited to 'nptl/init.c')
-rw-r--r-- | nptl/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/init.c b/nptl/init.c index ff81087d0c..03862a147f 100644 --- a/nptl/init.c +++ b/nptl/init.c @@ -276,7 +276,7 @@ __pthread_initialize_minimal_internal (void) #endif set_robust_list_not_avail (); -#ifndef __ASSUME_PRIVATE_FUTEX +#ifdef THREAD_SET_PRIVATE_FUTEX /* Private futexes are always used (at least internally) so that doing the test once this early is beneficial. */ { @@ -284,7 +284,7 @@ __pthread_initialize_minimal_internal (void) res = INTERNAL_SYSCALL (futex, err, 3, &word, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1); if (!INTERNAL_SYSCALL_ERROR_P (res, err)) - THREAD_SETMEM (pd, header.private_futex, FUTEX_PRIVATE_FLAG); + THREAD_SET_PRIVATE_FUTEX (pd, FUTEX_PRIVATE_FLAG); } #endif |