[PATCH] samples/minimum: Use default interrupt stack size
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Jul 25 09:26:05 UTC 2018
Update #3433.
---
testsuites/samples/minimum/init.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c
index c1f423daf3..18a89b8d2c 100644
--- a/testsuites/samples/minimum/init.c
+++ b/testsuites/samples/minimum/init.c
@@ -65,6 +65,16 @@ static void *Init( uintptr_t ignored )
#define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512
/*
+ * Keep the interrupt/initialization stack as is. Otherwise, the test may fail
+ * in the low level system initialization.
+ */
+#ifdef BSP_INTERRUPT_STACK_SIZE
+ #define CONFIGURE_INTERRUPT_STACK_SIZE BSP_INTERRUPT_STACK_SIZE
+#else
+ #define CONFIGURE_INTERRUPT_STACK_SIZE CPU_STACK_MINIMUM_SIZE
+#endif
+
+/*
* This lowers the number of priorities that this test is able to
* use. The Idle task will be running at the lowest priority.
*/
--
2.13.7
More information about the devel
mailing list