diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-13 15:06:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-13 15:06:32 +0000 |
commit | ecf0f4c4c18956576aeb69372b93910af7ca37e9 (patch) | |
tree | bdc81902ff221b497c67e31822a08dbd69b69a40 /cpukit/rtems | |
parent | 2008-06-10 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-ecf0f4c4c18956576aeb69372b93910af7ca37e9.tar.bz2 |
2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/pthread.h, posix/src/pthread.c,
posix/src/pthreadcreate.c, rtems/include/rtems.h, rtems/src/attr.c,
sapi/include/confdefs.h, sapi/include/rtems/config.h,
score/inline/rtems/score/stack.inl, score/src/isr.c,
score/src/mpci.c, score/src/threadcreateidle.c,
score/src/threadinitialize.c, score/src/threadstackallocate.c: Add
ability for application to configure minimum stack size. Add
RTEMS_CONFIGURED_MINIMUM_STACK_SIZE constant so user can clearly
indicate they want the configured as opposed to the recommended
minimum stack size.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/include/rtems.h | 6 | ||||
-rw-r--r-- | cpukit/rtems/src/attr.c | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/rtems/include/rtems.h b/cpukit/rtems/include/rtems.h index 8eb91f12fa..537a6c8171 100644 --- a/cpukit/rtems/include/rtems.h +++ b/cpukit/rtems/include/rtems.h @@ -152,6 +152,12 @@ extern "C" { #define RTEMS_MINIMUM_STACK_SIZE STACK_MINIMUM_SIZE /** + * The following constant is used to specify that the task should + * be created with the configured minimum stack size. + */ +#define RTEMS_CONFIGURED_MINIMUM_STACK_SIZE 0 + +/** * Constant for indefinite wait. (actually an illegal interval) */ #define RTEMS_NO_TIMEOUT WATCHDOG_NO_TIMEOUT diff --git a/cpukit/rtems/src/attr.c b/cpukit/rtems/src/attr.c index 8b0b542441..2312d36bb5 100644 --- a/cpukit/rtems/src/attr.c +++ b/cpukit/rtems/src/attr.c @@ -21,7 +21,6 @@ #include <rtems/score/stack.h> #include <rtems/rtems/modes.h> -uint32_t rtems_minimum_stack_size = STACK_MINIMUM_SIZE; uint32_t rtems_interrupt_mask = RTEMS_INTERRUPT_MASK; rtems_attribute rtems_interrupt_level_attribute( |