summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-30 20:14:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-30 20:14:08 +0000
commit348ba429c0da3d9b00d33a9588f4f8e5c366ac6b (patch)
tree411e9cd00b8ea0f4be94d5010d6befa95d4d036c
parentupdated for Release 3.6.0 to reflect status of posix threads. (diff)
downloadrtems-348ba429c0da3d9b00d33a9588f4f8e5c366ac6b.tar.bz2
changed stack size of posix initialization threads to double the minimum
stack size so more of acvc would pass.
-rw-r--r--c/src/exec/posix/src/pthread.c3
-rw-r--r--cpukit/posix/src/pthread.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c
index 2137e97b99..5864c22072 100644
--- a/c/src/exec/posix/src/pthread.c
+++ b/c/src/exec/posix/src/pthread.c
@@ -259,6 +259,9 @@ void _POSIX_Threads_Initialize_user_threads( void )
status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
assert( !status );
+ status = pthread_attr_setstacksize( &attr, PTHREAD_MINIMUM_STACK_SIZE * 2 );
+ assert( !status );
+
status = pthread_create(
&thread_id,
&attr,
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 2137e97b99..5864c22072 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -259,6 +259,9 @@ void _POSIX_Threads_Initialize_user_threads( void )
status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
assert( !status );
+ status = pthread_attr_setstacksize( &attr, PTHREAD_MINIMUM_STACK_SIZE * 2 );
+ assert( !status );
+
status = pthread_create(
&thread_id,
&attr,