diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-14 13:26:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:19 +0100 |
commit | c70d112599b1688d954f6566bfa29d5988d82464 (patch) | |
tree | 7630fae9977ca3d6fa413fa0ddfbb8f919a06091 /cpukit/include/rtems/confdefs.h | |
parent | config: Add _Watchdog_Ticks_per_timeslice (diff) | |
download | rtems-c70d112599b1688d954f6566bfa29d5988d82464.tar.bz2 |
config: Add _Thread_Idle_stack_size
Move the idle thread stack size configuration constant out of the
configuration table.
Add THREAD_IDLE_STACK_SIZE_DEFAULT and use it to provide a default
definition of the idle thread stack size constant.
Update #3875.
Diffstat (limited to 'cpukit/include/rtems/confdefs.h')
-rw-r--r-- | cpukit/include/rtems/confdefs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index b1c3a4a2d2..442ee7af92 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -1139,6 +1139,10 @@ extern "C" { #error "CONFIGURE_IDLE_TASK_STACK_SIZE less than CONFIGURE_MINIMUM_TASK_STACK_SIZE" #endif +#ifdef CONFIGURE_INIT + const size_t _Thread_Idle_stack_size = CONFIGURE_IDLE_TASK_STACK_SIZE; +#endif + /* * Interrupt stack configuration. * @@ -2633,7 +2637,6 @@ struct _reent *__getreent(void) const rtems_configuration_table Configuration = { CONFIGURE_EXECUTIVE_RAM_SIZE, /* required RTEMS workspace */ CONFIGURE_IDLE_TASK_BODY, /* user's IDLE task */ - CONFIGURE_IDLE_TASK_STACK_SIZE, /* IDLE task stack size */ #ifdef CONFIGURE_UNIFIED_WORK_AREAS /* true for unified work areas */ true, #else |