From b60f4837e3f0cb276b00fed5d3c860285a8d9589 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 27 Feb 2006 05:36:31 +0000 Subject: import ia64 linuxthreads files --- 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