[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] PPC nptl changes
- From: Steven Munroe <sjmunroe vnet ibm com>
- To: NPTL <phil-list redhat com>, Paul Mackerras <paulus samba org>
- Subject: [PATCH] PPC nptl changes
- Date: Fri, 14 Mar 2003 16:31:26 -0600
Roland McGrath writes:
> Please post the patches to generic code separate from the powerpc
> additions and with log entries. Those can go in without delay.
OK.
2003-03-12 Steven Munroe <sjmunroe us ibm com>
* allocatestack.c (__stack_user): Use hidden_data_def.
* init.c [__powerpc__]: Define __NR_set_tid_address.
* pthread_create.c (__pthread_keys): Use hidden_data_def
diff -rupP nptl-0.29/nptl/allocatestack.c libc23/nptl/allocatestack.c
--- nptl-0.29/nptl/allocatestack.c 2003-03-11 12:02:17.000000000 -0600
+++ libc23/nptl/allocatestack.c 2003-03-14 09:40:48.000000000 -0600
@@ -102,7 +102,7 @@ static LIST_HEAD (stack_used);
/* List of the threads with user provided stacks in use. No need to
initialize this, since it's done in __pthread_initialize_minimal. */
list_t __stack_user __attribute__ ((nocommon));
-hidden_def (__stack_user)
+hidden_data_def (__stack_user)
/* Number of threads created. */
static unsigned int nptl_ncreated;
diff -rupP nptl-0.29/nptl/init.c libc23/nptl/init.c
--- nptl-0.29/nptl/init.c 2003-03-11 14:35:21.000000000 -0600
+++ libc23/nptl/init.c 2003-03-13 13:59:59.000000000 -0600
@@ -44,7 +44,9 @@
# define __NR_set_tid_address 258
#elif defined __x86_64__
# define __NR_set_tid_address 218
-#eli
+#elif defined __powerpc__
+# define __NR_set_tid_address 232
+#elif
# error "define __NR_set_tid_address"
#endif
#endif
diff -rupP nptl-0.29/nptl/pthread_create.c libc23/nptl/pthread_create.c
--- nptl-0.29/nptl/pthread_create.c 2003-03-11 12:02:18.000000000 -0600
+++ libc23/nptl/pthread_create.c 2003-03-14 09:40:29.000000000 -0600
@@ -59,7 +59,7 @@ unsigned int __nptl_nthreads = 1;
/* Table of the key information. */
struct pthread_key_struct __pthread_keys[PTHREAD_KEYS_MAX]
__attribute__ ((nocommon));
-hidden_def (__pthread_keys)
+hidden_data_def (__pthread_keys)
/* This is for libthread_db only. */
const int __pthread_pthread_sizeof_descr = sizeof (struct pthread);
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]