diff options
Diffstat (limited to 'c/src/exec/posix')
-rw-r--r-- | c/src/exec/posix/include/rtems/posix/config.h | 1 | ||||
-rw-r--r-- | c/src/exec/posix/src/pthread.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/posix/include/rtems/posix/config.h b/c/src/exec/posix/include/rtems/posix/config.h index c64250579c..2edb8a1909 100644 --- a/c/src/exec/posix/include/rtems/posix/config.h +++ b/c/src/exec/posix/include/rtems/posix/config.h @@ -39,6 +39,7 @@ extern "C" { typedef struct { void *(*thread_entry)(void *); + int stack_size; } posix_initialization_threads_table; typedef struct { diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c index f97b3a805d..1a238b006a 100644 --- a/c/src/exec/posix/src/pthread.c +++ b/c/src/exec/posix/src/pthread.c @@ -260,7 +260,7 @@ 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 ); + status = pthread_attr_setstacksize( &attr, user_threads[ index ].stack_size); assert( !status ); status = pthread_create( |