From e24c161e9d16483a1d97402557f7756e26afb6cf Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 13 Jun 2007 00:00:00 +0200 Subject: TLS support for libthreads. * libthreads/cprocs.c (cproc_create): Call into glibc to allocate static TLS block. * libthreads/cthread_internals.h (tcbhead_t): New structure; as in glibc. (cproc_setup): Take TCB parameter. (_dl_allocate_tls): Declare; from glibc. * libthreads/alpha/thread.c (cproc_setup): Compile-time warning for missing TLS support. * libthreads/i386/thread.c (cproc_setup): Imlement TLS support. --- libthreads/alpha/thread.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libthreads/alpha') diff --git a/libthreads/alpha/thread.c b/libthreads/alpha/thread.c index 2bf5ff64..db2cb0c8 100644 --- a/libthreads/alpha/thread.c +++ b/libthreads/alpha/thread.c @@ -65,10 +65,12 @@ extern bzero(); * so that it will invoke routine(child) * when it is resumed. */ +#warning TLS support not implemented void cproc_setup( register cproc_t child, thread_t thread, + tcbhead_t *tcb, void (*routine)(cproc_t)) { register integer_t *top; -- cgit v1.2.3