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/score | |
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/score')
-rw-r--r-- | cpukit/score/src/threadcreateidle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c index dbb2018bf8..66ed92702e 100644 --- a/cpukit/score/src/threadcreateidle.c +++ b/cpukit/score/src/threadcreateidle.c @@ -18,6 +18,7 @@ #include "config.h" #endif +#include <rtems/score/threadidledata.h> #include <rtems/score/threadimpl.h> #include <rtems/score/assert.h> #include <rtems/score/schedulerimpl.h> @@ -51,7 +52,7 @@ static void _Thread_Create_idle_for_CPU( Per_CPU_Control *cpu ) config.name.name_u32 = _Objects_Build_name( 'I', 'D', 'L', 'E' ); config.is_fp = CPU_IDLE_TASK_IS_FP; config.is_preemptible = true; - config.stack_size = rtems_configuration_get_idle_task_stack_size() + config.stack_size = _Thread_Idle_stack_size + CPU_IDLE_TASK_IS_FP * CONTEXT_FP_SIZE; config.stack_area = &_Thread_Idle_stacks[ _Per_CPU_Get_index( cpu ) * config.stack_size |