From d032c07a7913c9aa932e35eb04a3cccdae8a9a1d Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Mon, 27 Feb 2006 23:12:57 +0000 Subject: Merge from trunk. --- libpthread/linuxthreads.old/pthread.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libpthread/linuxthreads.old/pthread.c') 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); -- cgit v1.2.3