From 32991495b48d1b5e4804b2f10a67a800f4608e75 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 9 Dec 2019 16:03:11 +0100 Subject: score: Statically allocate idle/MPCI stacks Place idle and MPCI stacks into extra linker sections. This can be optionally used by applications to control the placement of the stacks. Update #3835. --- testsuites/sptests/spstkalloc/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites') diff --git a/testsuites/sptests/spstkalloc/init.c b/testsuites/sptests/spstkalloc/init.c index ab9612c94a..60169435c4 100644 --- a/testsuites/sptests/spstkalloc/init.c +++ b/testsuites/sptests/spstkalloc/init.c @@ -18,14 +18,14 @@ const char rtems_test_name[] = "SPSTKALLOC"; /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); -#define MAXIMUM_STACKS 3 +#define MAXIMUM_STACKS 2 typedef struct { uint8_t Space[CPU_STACK_MINIMUM_SIZE]; } StackMemory_t; int stackToAlloc = 0; -StackMemory_t Stacks[3]; +StackMemory_t Stacks[MAXIMUM_STACKS]; void *StackDeallocated = NULL; static void *StackAllocator(size_t size) -- cgit v1.2.3