summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/posix
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-07 06:25:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-08 08:15:13 +0200
commitfd27bae5b949f1beee2ca2ba4cccecc7e89f40cb (patch)
tree4f2a002431ec9bf8b8f448289f332de78ddc75ff /cpukit/include/rtems/posix
parenttests: Remove CONFIGURE_MAXIMUM_DRIVERS (diff)
downloadrtems-fd27bae5b949f1beee2ca2ba4cccecc7e89f40cb.tar.bz2
CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE
Make CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE configurable by the user. Update #3434.
Diffstat (limited to 'cpukit/include/rtems/posix')
-rw-r--r--cpukit/include/rtems/posix/pthread.h2
-rw-r--r--cpukit/include/rtems/posix/pthreadimpl.h2
2 files changed, 3 insertions, 1 deletions
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