diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-27 23:12:57 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-27 23:12:57 +0000 |
commit | d032c07a7913c9aa932e35eb04a3cccdae8a9a1d (patch) | |
tree | 602adadabd571e89b1288643647510533baef791 /libpthread/linuxthreads.old/pthread.c | |
parent | 589a76ea96e1153a3d4c30a09ecb6b54546d3bf8 (diff) | |
download | uClibc-alpine-d032c07a7913c9aa932e35eb04a3cccdae8a9a1d.tar.bz2 uClibc-alpine-d032c07a7913c9aa932e35eb04a3cccdae8a9a1d.tar.xz |
Merge from trunk.
Diffstat (limited to 'libpthread/linuxthreads.old/pthread.c')
-rw-r--r-- | libpthread/linuxthreads.old/pthread.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/pthread.c b/libpthread/linuxthreads.old/pthread.c index 4adf66cd6..d9adfa432 100644 --- a/libpthread/linuxthreads.old/pthread.c +++ b/libpthread/linuxthreads.old/pthread.c @@ -528,10 +528,18 @@ int __pthread_initialize_manager(void) __pthread_lock(__pthread_manager_thread.p_lock, NULL); +#ifdef __ia64__ + pid = __clone2(__pthread_manager_event, + (void **) __pthread_manager_thread_tos, + THREAD_MANAGER_STACK_SIZE, + CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND, + (void *)(long)manager_pipe[0]); +#else pid = clone(__pthread_manager_event, (void **) __pthread_manager_thread_tos, CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND, (void *)(long)manager_pipe[0]); +#endif if (pid != -1) { @@ -555,9 +563,16 @@ int __pthread_initialize_manager(void) } if (pid == 0) { +#ifdef __ia64__ + pid = __clone2(__pthread_manager, (void **) __pthread_manager_thread_tos, + THREAD_MANAGER_STACK_SIZE, + CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND, + (void *)(long)manager_pipe[0]); +#else pid = clone(__pthread_manager, (void **) __pthread_manager_thread_tos, CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND, (void *)(long)manager_pipe[0]); +#endif } if (pid == -1) { free(__pthread_manager_thread_bos); |