[PATCH v3 4/5] config: Check CONFIGURE_INIT_TASK_STACK_SIZE
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Nov 25 07:12:22 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 a1bf5d3b54..3f76bee223 100644
--- a/cpukit/include/rtems/confdefs/inittask.h
+++ b/cpukit/include/rtems/confdefs/inittask.h
@@ -152,6 +152,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