From 4f4b4ddf3664d37a4f6920b16be19b2be623a950 Mon Sep 17 00:00:00 2001 From: TomoYamanaka Date: Thu, 14 Dec 2017 20:41:28 +0900 Subject: [PATCH] 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. --- TESTS/mbedmicro-rtos-mbed/threads/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TESTS/mbedmicro-rtos-mbed/threads/main.cpp b/TESTS/mbedmicro-rtos-mbed/threads/main.cpp index 8940024eb5..7ebf09e795 100644 --- a/TESTS/mbedmicro-rtos-mbed/threads/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/threads/main.cpp @@ -26,7 +26,11 @@ #endif #define THREAD_STACK_SIZE 512 +#if defined(__CORTEX_A9) +#define PARALLEL_THREAD_STACK_SIZE 512 +#else #define PARALLEL_THREAD_STACK_SIZE 384 +#endif #define CHILD_THREAD_STACK_SIZE 384 using namespace utest::v1;