mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
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:
@@ -154,7 +154,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
|
||||
|
@@ -194,7 +194,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
|
||||
|
Reference in New Issue
Block a user