about summary refs log tree commit diff
path: root/linuxthreads/manager.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-08 21:05:48 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-08 21:05:48 +0000
commit3632a260206ba5ea8d5d6a37af54aedac774e20d (patch)
treeacb99aad042203f4bbedde299c444d4275fc28dc /linuxthreads/manager.c
parent403e0597cd0cd4ba489614bf2bea72465ce899b9 (diff)
downloadglibc-3632a260206ba5ea8d5d6a37af54aedac774e20d.tar.gz
glibc-3632a260206ba5ea8d5d6a37af54aedac774e20d.tar.xz
glibc-3632a260206ba5ea8d5d6a37af54aedac774e20d.zip
Update.
2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* elf/elf.h: Define R_SH_TLS_xxx macros.
	* elf/rtld.c: Remove an extra parenthesis.
	* elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
	TLS_GD macros.
	* sysdeps/generic/dl-tls.c: Add a missing semi-colon.
	* sysdeps/sh/dl-lookupcfg.h: New file.
	* sysdeps/sh/dl-tls.h: New file.
	* sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
	ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
	(elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
	R_SH_TLS_TPOFF32 relocations.
Diffstat (limited to 'linuxthreads/manager.c')
-rw-r--r--linuxthreads/manager.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c
index c846895d19..b52f65137f 100644
--- a/linuxthreads/manager.c
+++ b/linuxthreads/manager.c
@@ -244,15 +244,16 @@ __pthread_manager(void *arg)
 
 int __pthread_manager_event(void *arg)
 {
+  pthread_descr self = arg;
   /* If we have special thread_self processing, initialize it.  */
 #ifdef INIT_THREAD_SELF
-  INIT_THREAD_SELF(arg, 1);
+  INIT_THREAD_SELF(self, 1);
 #endif
 
   /* Get the lock the manager will free once all is correctly set up.  */
-  __pthread_lock (THREAD_GETMEM(((pthread_descr) arg), p_lock), NULL);
+  __pthread_lock (THREAD_GETMEM(self, p_lock), NULL);
   /* Free it immediately.  */
-  __pthread_unlock (THREAD_GETMEM(((pthread_descr) arg), p_lock));
+  __pthread_unlock (THREAD_GETMEM(self, p_lock));
 
   return __pthread_manager(arg);
 }