diff options
Diffstat (limited to 'devel/linuxthreads/files/patch-aa')
| -rw-r--r-- | devel/linuxthreads/files/patch-aa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/linuxthreads/files/patch-aa b/devel/linuxthreads/files/patch-aa index 31cb50737af6..38e9402ebbf2 100644 --- a/devel/linuxthreads/files/patch-aa +++ b/devel/linuxthreads/files/patch-aa @@ -311,6 +311,26 @@ diff -ru ../../work/linuxthreads-2.2.3/attr.c ./attr.c attr->__inheritsched = PTHREAD_EXPLICIT_SCHED; attr->__scope = PTHREAD_SCOPE_SYSTEM; attr->__guardsize = ps; +@@ -283,6 +286,9 @@ + + attr->__inheritsched = descr->p_inheritsched; + attr->__scope = PTHREAD_SCOPE_SYSTEM; ++ if (descr == &__pthread_initial_thread) ++ attr->__stacksize = 3 * STACK_SIZE; ++ else + attr->__stacksize = (char *)(descr + 1) - (char *)descr->p_guardaddr + - descr->p_guardsize; + attr->__guardsize = descr->p_guardsize; +@@ -295,6 +301,9 @@ + otherwise the range of the stack area cannot be computed. */ + attr->__stacksize += attr->__guardsize; + #endif ++ if (descr == &__pthread_initial_thread) ++ attr->__stackaddr = __pthread_initial_thread_bos + 3 * STACK_SIZE; ++ else + #ifndef _STACK_GROWS_UP + attr->__stackaddr = (char *)(descr + 1); + #else diff -ru ../../work/linuxthreads-2.2.3/cancel.c ./cancel.c --- ../../work/linuxthreads-2.2.3/cancel.c Thu Apr 12 23:10:53 2001 +++ ./cancel.c Thu Jun 7 22:59:29 2001 |
