From 4186eb92c819626a5ab86e599623969c13e938c2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 18 Jul 2007 16:48:15 +0000 Subject: cthread initialization fixup --- debian/patches/libpthread_tls_transitional.patch | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'debian') diff --git a/debian/patches/libpthread_tls_transitional.patch b/debian/patches/libpthread_tls_transitional.patch index de24ec34..a9198647 100644 --- a/debian/patches/libpthread_tls_transitional.patch +++ b/debian/patches/libpthread_tls_transitional.patch @@ -263,19 +263,7 @@ retrieving revision 1.17 diff -u -p -r1.17 cprocs.c --- libthreads/cprocs.c 29 May 2002 00:01:24 -0000 1.17 +++ libthreads/cprocs.c 8 Jul 2007 22:51:00 -0000 -@@ -434,6 +434,11 @@ cproc_init(void) - { - kern_return_t r; - -+ if (__libc_setup_tls) { -+ __libc_setup_tls (sizeof(tcbhead_t), __alignof__(tcbhead_t)); -+ asm volatile (""); -+ } -+ - cproc_t p = cproc_alloc(); - - cthread_kernel_threads = 1; -@@ -725,15 +730,22 @@ cproc_create(void) +@@ -725,15 +725,22 @@ cproc_create(void) extern void cproc_prepare(); extern void cthread_body(); thread_t n; -- cgit v1.2.3