Skip to content

Commit 4f4b4dd

Browse files
committed
Change the "thread" test main for Cortex-A
In pararell threads of "thread" test is a simple thread, but it seems that there is a difference in the stack used between Cortex-A and Cortex-M. As a result of check, in Cortex-A, program aborts because of the lack of stack when PARALLEL_THREAD_STACK_SIZE is 384, workes properly when PARALLEL_THREAD_STACK_SIZE is 512 at least.
1 parent a105f6f commit 4f4b4dd

File tree

1 file changed

+4
-0
lines changed
  • TESTS/mbedmicro-rtos-mbed/threads

1 file changed

+4
-0
lines changed

TESTS/mbedmicro-rtos-mbed/threads/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
#endif
2727

2828
#define THREAD_STACK_SIZE 512
29+
#if defined(__CORTEX_A9)
30+
#define PARALLEL_THREAD_STACK_SIZE 512
31+
#else
2932
#define PARALLEL_THREAD_STACK_SIZE 384
33+
#endif
3034
#define CHILD_THREAD_STACK_SIZE 384
3135

3236
using namespace utest::v1;

0 commit comments

Comments
 (0)