From 65f52d006054cd4cbf06215b47373901dd5abea5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 25 Jul 2018 11:25:30 +0200 Subject: samples/minimum: Use default interrupt stack size Update #3433. --- testsuites/samples/minimum/init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testsuites') 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 @@ -64,6 +64,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. -- cgit v1.2.3