mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-05 14:38:57 +08:00
samples/minimum: Prevent a stack overflow
Prevent a stack overflow if RTEMS_COVERAGE is enabled.
This commit is contained in:
1 parent
5c13a96f36
commit
da8b234261
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user