From e0aba8cb9edd3630be3b81e1f1c3e8bdaf728d1e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 27 Mar 2021 11:15:43 +0100 Subject: score: Fix task stack initialization Do not adjust the stack area begin address since this may confuse the stack allocator and result in failed stack frees. Account for the alignment overhead in the stack space size estimate. Check that the stack size is in the expected interval. --- testsuites/validation/ts-default.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testsuites/validation') diff --git a/testsuites/validation/ts-default.h b/testsuites/validation/ts-default.h index e8e2334825..d519df09ff 100644 --- a/testsuites/validation/ts-default.h +++ b/testsuites/validation/ts-default.h @@ -48,7 +48,8 @@ #define TASK_STORAGE_SIZE \ RTEMS_TASK_STORAGE_SIZE( \ - MAX_TLS_SIZE + RTEMS_MINIMUM_STACK_SIZE, \ + MAX_TLS_SIZE + RTEMS_MINIMUM_STACK_SIZE + \ + CPU_STACK_ALIGNMENT - CPU_HEAP_ALIGNMENT, \ TASK_ATTRIBUTES \ ) -- cgit v1.2.3