diff options
-rw-r--r-- | board/cr50/ec.tasklist | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/board/cr50/ec.tasklist b/board/cr50/ec.tasklist index 43641c6c38..fd72cafaf9 100644 --- a/board/cr50/ec.tasklist +++ b/board/cr50/ec.tasklist @@ -6,7 +6,15 @@ /** * See CONFIG_TASK_LIST in config.h for details. */ + +#ifdef CRYPTO_TEST_SETUP +/* some crypto testing console commands require larger stack */ +#define CONSOLE_STACK_SIZE (CONFIG_STACK_SIZE + 512) +#else +#define CONSOLE_STACK_SIZE CONFIG_STACK_SIZE +#endif + #define CONFIG_TASK_LIST \ TASK_ALWAYS(HOOKS, hook_task, NULL, CONFIG_STACK_SIZE) \ TASK_NOTEST(TPM, tpm_task, NULL, 8192) \ - TASK_ALWAYS(CONSOLE, console_task, NULL, CONFIG_STACK_SIZE) + TASK_ALWAYS(CONSOLE, console_task, NULL, CONSOLE_STACK_SIZE) |