diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-26 09:31:29 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-10-14 07:29:41 +0200 |
commit | 2846b17d7e34f1bdcac579ea1e0fbcb251aff1cb (patch) | |
tree | 417358a08e61a123e196a378a29bed07ae9806f8 /cpukit/score/src/threadcreateidle.c | |
parent | score: Require power of two CPU_STACK_MINIMUM_SIZE (diff) | |
download | rtems-2846b17d7e34f1bdcac579ea1e0fbcb251aff1cb.tar.bz2 |
config: Changeable size for IDLE stack allocator
Allow the IDLE stack allocator to change the stack size. This can be
used by applications with a very dynamic thread-local storage size to
adjust the thread storage area of the IDLE tasks dynamically.
Update #4524.
Diffstat (limited to 'cpukit/score/src/threadcreateidle.c')
-rw-r--r-- | cpukit/score/src/threadcreateidle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c index b5e0cfdc9b..3e3c7cfc83 100644 --- a/cpukit/score/src/threadcreateidle.c +++ b/cpukit/score/src/threadcreateidle.c @@ -73,9 +73,9 @@ static void _Thread_Create_idle_for_CPU( Per_CPU_Control *cpu ) * The IDLE thread stacks may be statically allocated or there may be a * custom allocator provided just as with user threads. */ - config.stack_area = (*_Stack_Allocator_allocate_for_idle)( + config.stack_area = ( *_Stack_Allocator_allocate_for_idle )( _Per_CPU_Get_index( cpu ), - config.stack_size + &config.stack_size ); /* |