[rtems commit] samples/minimum: Use default interrupt stack size

Sebastian Huber sebh at rtems.org
Fri Jul 27 11:26:43 UTC 2018


Module:    rtems
Branch:    master
Commit:    65f52d006054cd4cbf06215b47373901dd5abea5
Changeset: http://git.rtems.org/rtems/commit/?id=65f52d006054cd4cbf06215b47373901dd5abea5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jul 25 11:25:30 2018 +0200

samples/minimum: Use default interrupt stack size

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 c1f423d..18a89b8 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.
  */



More information about the vc mailing list