diff options
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/confdefs.h | 5 | ||||
-rw-r--r-- | cpukit/include/rtems/posix/pthread.h | 2 | ||||
-rw-r--r-- | cpukit/include/rtems/posix/pthreadimpl.h | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 6e7bcdf570..7d1407564b 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -1165,8 +1165,10 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; * This specifies the default POSIX thread stack size. By default, it is * twice that recommended for the port. */ +#ifndef CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE #define CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE \ (2 * CONFIGURE_MINIMUM_TASK_STACK_SIZE) +#endif /** * @brief Idle task stack size configuration. @@ -3050,6 +3052,9 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE, CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME }; + + const size_t _Configuration_POSIX_Minimum_stack_size = + CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE; #endif /** diff --git a/cpukit/include/rtems/posix/pthread.h b/cpukit/include/rtems/posix/pthread.h index 05783ff4ad..bf46253776 100644 --- a/cpukit/include/rtems/posix/pthread.h +++ b/cpukit/include/rtems/posix/pthread.h @@ -37,6 +37,8 @@ extern "C" { */ /**@{**/ +extern const size_t _Configuration_POSIX_Minimum_stack_size; + /** * @brief POSIX threads initialize user threads body. * diff --git a/cpukit/include/rtems/posix/pthreadimpl.h b/cpukit/include/rtems/posix/pthreadimpl.h index e6ed1b8990..d900207fbd 100644 --- a/cpukit/include/rtems/posix/pthreadimpl.h +++ b/cpukit/include/rtems/posix/pthreadimpl.h @@ -40,7 +40,7 @@ extern "C" { /** * The following sets the minimum stack size for POSIX threads. */ -#define PTHREAD_MINIMUM_STACK_SIZE (_Stack_Minimum() * 2) +#define PTHREAD_MINIMUM_STACK_SIZE _Configuration_POSIX_Minimum_stack_size /** * The following defines the information control block used to manage |