diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-06-28 16:21:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-04 08:30:40 +0200 |
commit | da8b234261dadbc09bfdd7fdebf56ca1bab78b02 (patch) | |
tree | a2e560a7f6d669c70df75805eee57209533fbb8f /testsuites/samples | |
parent | build: Add RTEMS_GCOV_COVERAGE option (diff) | |
download | rtems-da8b234261dadbc09bfdd7fdebf56ca1bab78b02.tar.bz2 |
samples/minimum: Prevent a stack overflow
Prevent a stack overflow if RTEMS_COVERAGE is enabled.
Diffstat (limited to 'testsuites/samples')
-rw-r--r-- | testsuites/samples/minimum/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c index c988d6d750..347b6ce991 100644 --- a/testsuites/samples/minimum/init.c +++ b/testsuites/samples/minimum/init.c @@ -81,7 +81,12 @@ static void *Init( uintptr_t ignored ) * demonstrates that the user can specify how small of a minimum * stack they want. */ +#ifdef RTEMS_GCOV_COVERAGE +#define CONFIGURE_MINIMUM_TASK_STACK_SIZE \ + (CPU_STACK_MINIMUM_SIZE - CPU_STACK_ALIGNMENT) +#else #define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512 +#endif /* * Keep the interrupt/initialization stack as is. Otherwise, the test may fail |