[rtems commit] config: Check CONFIGURE_INIT_TASK_STACK_SIZE
Sebastian Huber
sebh at rtems.org
Fri Nov 27 07:46:46 UTC 2020
Module: rtems
Branch: master
Commit: 6c1afc19f6d320e4d95315762e587c09ed3e0cce
Changeset: http://git.rtems.org/rtems/commit/?id=6c1afc19f6d320e4d95315762e587c09ed3e0cce
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Nov 24 08:05:43 2020 +0100
config: Check CONFIGURE_INIT_TASK_STACK_SIZE
---
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 a1bf5d3..3f76bee 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
More information about the vc
mailing list