From c70d112599b1688d954f6566bfa29d5988d82464 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 14 Feb 2020 13:26:17 +0100 Subject: 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. --- cpukit/include/rtems/confdefs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/include/rtems/confdefs.h') 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 -- cgit v1.2.3