summaryrefslogtreecommitdiffstats
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-08-25 07:52:04 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-08-25 12:15:53 +0000
commitc06766bbeb13146c78c5aa1a4a3c4298de5d3f13 (patch)
treedb27631fe9a1724ff87b5a56ba705cb4eea10c84 /apps/voice_thread.c
parent5dd4c006976130ebc3fd6309be3767614f666728 (diff)
downloadrockbox-c06766bbeb13146c78c5aa1a4a3c4298de5d3f13.tar.gz
rockbox-c06766bbeb13146c78c5aa1a4a3c4298de5d3f13.tar.bz2
rockbox-c06766bbeb13146c78c5aa1a4a3c4298de5d3f13.zip
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
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c5
1 files changed, 4 insertions, 1 deletions
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