diff options
author | Samuel Thibault <sthibault@debian.org> | 2007-07-18 16:48:15 +0000 |
---|---|---|
committer | Samuel Thibault <sthibault@debian.org> | 2007-07-18 16:48:15 +0000 |
commit | 4186eb92c819626a5ab86e599623969c13e938c2 (patch) | |
tree | 667b3caceca6d7f61f7fef9e0c9262801395a5af /debian/patches | |
parent | 667099687349eb43c02a9b2dec40547d791af72b (diff) |
cthread initialization fixup
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/libpthread_tls_transitional.patch | 14 |
1 files changed, 1 insertions, 13 deletions
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; |