[PATCH v2 3/4] config: Check CONFIGURE_INIT_TASK_STACK_SIZE

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 24 07:33:57 UTC 2020


---
 cpukit/include/rtems/confdefs/inittask.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/include/rtems/confdefs/inittask.h b/cpukit/include/rtems/confdefs/inittask.h
index 4183e00e54..450a4f4b53 100644
--- a/cpukit/include/rtems/confdefs/inittask.h
+++ b/cpukit/include/rtems/confdefs/inittask.h
@@ -144,6 +144,8 @@ RTEMS_SYSINIT_ITEM(
 
 #ifndef CONFIGURE_INIT_TASK_STACK_SIZE
   #define CONFIGURE_INIT_TASK_STACK_SIZE CONFIGURE_MINIMUM_TASK_STACK_SIZE
+#elif CONFIGURE_INIT_TASK_STACK_SIZE < CONFIGURE_MINIMUM_TASK_STACK_SIZE
+  #error "CONFIGURE_INIT_TASK_STACK_SIZE must be greater than or equal to CONFIGURE_MINIMUM_TASK_STACK_SIZE"
 #endif
 
 #if CONFIGURE_INIT_TASK_STACK_SIZE > CONFIGURE_MINIMUM_TASK_STACK_SIZE
-- 
2.26.2



More information about the devel mailing list