summaryrefslogtreecommitdiff
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
parent5dd4c006976130ebc3fd6309be3767614f666728 (diff)
downloadrockbox-c06766bbeb13146c78c5aa1a4a3c4298de5d3f13.tar.gz
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
-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 @@
77 77
78/* Voice thread variables */ 78/* Voice thread variables */
79static unsigned int voice_thread_id = 0; 79static unsigned int voice_thread_id = 0;
80#ifdef CPU_COLDFIRE 80#if defined(CPU_MIPS)
81/* MIPS is stack-hungry */
82#define VOICE_STACK_EXTRA 0x500
83#elif defined(CPU_COLDFIRE)
81/* ISR uses any available stack - need a bit more room */ 84/* ISR uses any available stack - need a bit more room */
82#define VOICE_STACK_EXTRA 0x400 85#define VOICE_STACK_EXTRA 0x400
83#else 86#else