summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-10-06 08:47:14 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-10-14 10:48:23 +0200
commit64fbeaa0d1b4321cb439923c86993d134fbd3acb (patch)
tree8172b38a5e3075575ff5359fe0bbbb663878d0ac /cpukit/score
parentconfig: Add CONFIGURE_IDLE_TASK_STORAGE_SIZE (diff)
downloadrtems-64fbeaa0d1b4321cb439923c86993d134fbd3acb.tar.bz2
score: INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL
Ensure that the IDLE storage allocator did allocate a suffiently large area. Update #3835. Update #4524.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/src/threadcreateidle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c
index 04565f910b..cb15d5cc3c 100644
--- a/cpukit/score/src/threadcreateidle.c
+++ b/cpukit/score/src/threadcreateidle.c
@@ -84,6 +84,10 @@ static void _Thread_Create_idle_for_CPU(
&config.stack_size
);
+ if ( config.stack_size < storage_size ) {
+ _Internal_error( INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL );
+ }
+
/*
* The entire workspace is zeroed during its initialization. Thus, all
* fields not explicitly assigned were explicitly zeroed by