flash-writer: increase stack for MFS (#3235)

This commit is contained in:
Andrey G 2021-09-13 14:18:48 +03:00 committed by GitHub
parent c890a80c08
commit 1e2f85818f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -82,7 +82,12 @@ crc_t flashStateCrc(persistent_config_container_s *state) {
#if EFI_FLASH_WRITE_THREAD
chibios_rt::BinarySemaphore flashWriteSemaphore(/*taken =*/ true);
#if EFI_STORAGE_EXT_SNOR == TRUE
/* in case of MFS we need more stack */
static THD_WORKING_AREA(flashWriteStack, 3 * UTILITY_THREAD_STACK_SIZE);
#else
static THD_WORKING_AREA(flashWriteStack, UTILITY_THREAD_STACK_SIZE);
#endif
static void flashWriteThread(void*) {
chRegSetThreadName("flash writer");