For architectures with relatively large minimum stack sizes, ensure that
the init task stack size is at least the minimum stack size to prevent a
configuration error during compilation.
---
 testsuites/samples/unlimited/system.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testsuites/samples/unlimited/system.h 
b/testsuites/samples/unlimited/system.h
index 2624a696df..dafbf9f92e 100644
--- a/testsuites/samples/unlimited/system.h
+++ b/testsuites/samples/unlimited/system.h
@@ -12,6 +12,7 @@
  */
 
 #include <rtems.h>
+#include <sys/param.h>
 
 /* functions */
 
@@ -50,7 +51,7 @@ extern void test3(void);
 #define TASK_ALLOCATION_SIZE     (5)
 #define CONFIGURE_UNLIMITED_OBJECTS
 #define CONFIGURE_UNLIMITED_ALLOCATION_SIZE TASK_ALLOCATION_SIZE
-#define CONFIGURE_INIT_TASK_STACK_SIZE (8 * 1024)
+#define CONFIGURE_INIT_TASK_STACK_SIZE MAX(8 * 1024, 
CONFIGURE_MINIMUM_TASK_STACK_SIZE)
 
 
 #include <rtems/confdefs.h>
-- 
2.20.1

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to