summaryrefslogtreecommitdiffstats
path: root/testsuites/validation
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-27 11:15:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-27 18:05:05 +0100
commite0aba8cb9edd3630be3b81e1f1c3e8bdaf728d1e (patch)
treef2d7d3f04eb1b6cadb8047323a6e319fd8a1a01c /testsuites/validation
parentpwdgrp.c: Change to simply ignore return value from mkdir(/etc) (diff)
downloadrtems-e0aba8cb9edd3630be3b81e1f1c3e8bdaf728d1e.tar.bz2
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.
Diffstat (limited to 'testsuites/validation')
-rw-r--r--testsuites/validation/ts-default.h3
1 files changed, 2 insertions, 1 deletions
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 \
)