summaryrefslogtreecommitdiff
path: root/pthread
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-08-31 00:06:31 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-08-31 00:06:31 +0200
commitfa9eb2c255e1d46beadcd81edd459b9c3d7dcb8c (patch)
treebf387b58773a9382b2b576d7c9317e2d1d1b966b /pthread
parentb1a5dd9b39835776796cdee3bd8f08adf6c9e46d (diff)
parentdd127d39712eaefc173bd41b18af1e35888e9589 (diff)
Merge commit 'refs/top-bases/tschwinge/Peter_Herbolzheimer' into tschwinge/Peter_Herbolzheimertschwinge/Peter_Herbolzheimer
Diffstat (limited to 'pthread')
-rw-r--r--pthread/pt-create.c6
-rw-r--r--pthread/pt-internal.h3
2 files changed, 2 insertions, 7 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c
index 4d81a95..ca6b66c 100644
--- a/pthread/pt-create.c
+++ b/pthread/pt-create.c
@@ -38,12 +38,8 @@ __atomic_t __pthread_total;
/* The entry-point for new threads. */
static void
-entry_point (struct __pthread *self, void *(*start_routine)(void *), void *arg)
+entry_point (void *(*start_routine)(void *), void *arg)
{
-#ifdef ENABLE_TLS
- ___pthread_self = self;
-#endif
-
#ifdef HAVE_USELOCALE
/* A fresh thread needs to be bound to the global locale. */
uselocale (LC_GLOBAL_LOCALE);
diff --git a/pthread/pt-internal.h b/pthread/pt-internal.h
index 067fb73..2a21744 100644
--- a/pthread/pt-internal.h
+++ b/pthread/pt-internal.h
@@ -219,8 +219,7 @@ extern void __pthread_stack_dealloc (void *stackaddr, size_t stacksize);
/* Setup thread THREAD's context. */
extern int __pthread_setup (struct __pthread *__restrict thread,
- void (*entry_point)(struct __pthread *,
- void *(*)(void *),
+ void (*entry_point)(void *(*)(void *),
void *),
void *(*start_routine)(void *),
void *__restrict arg);