From c06766bbeb13146c78c5aa1a4a3c4298de5d3f13 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 25 Aug 2020 07:52:04 -0400 Subject: [PATCH] voice: Increase voice stack size a bit for MIPS by 256 bytes. MIPS is stack hungry due to the large number of GPRs we have to save. With this extra headroom we now _idle_ at 75% stack use of a 2K stack! Change-Id: I197b730c817d948230010f18dba60747088487ba --- apps/voice_thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 59568d8ff9..325860be27 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c @@ -77,7 +77,10 @@ /* Voice thread variables */ static unsigned int voice_thread_id = 0; -#ifdef CPU_COLDFIRE +#if defined(CPU_MIPS) +/* MIPS is stack-hungry */ +#define VOICE_STACK_EXTRA 0x500 +#elif defined(CPU_COLDFIRE) /* ISR uses any available stack - need a bit more room */ #define VOICE_STACK_EXTRA 0x400 #else