freertos: Add a small additional stack when optimization set to None

Fix for occasional crash on startup when DPORT task overwrites its stack during
context switch, otherwise.
This commit is contained in:
Angus Gratton 2021-03-04 17:56:58 +11:00 committed by bot
parent f5c6595cb4
commit 322cba0bf0
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@
/* with optimizations disabled, scheduler uses additional stack */
#if CONFIG_COMPILER_OPTIMIZATION_NONE
#define configSTACK_OVERHEAD_OPTIMIZATION 256
#define configSTACK_OVERHEAD_OPTIMIZATION 320
#else
#define configSTACK_OVERHEAD_OPTIMIZATION 0
#endif

View File

@ -197,7 +197,7 @@ int xt_clock_freq(void) __attribute__((deprecated));
/* with optimizations disabled, scheduler uses additional stack */
#if CONFIG_COMPILER_OPTIMIZATION_NONE
#define configSTACK_OVERHEAD_OPTIMIZATION 256
#define configSTACK_OVERHEAD_OPTIMIZATION 320
#else
#define configSTACK_OVERHEAD_OPTIMIZATION 0
#endif