summaryrefslogtreecommitdiff
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-09 16:03:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-12 09:08:36 +0100
commit32991495b48d1b5e4804b2f10a67a800f4608e75 (patch)
tree2a05470107f3a8918689b9ed4c94760f08a2631a /testsuites
parent01d59443b06ab351039cbc63a688cfa87f196ea0 (diff)
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.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/spstkalloc/init.c4
1 files changed, 2 insertions, 2 deletions
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)