diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-12-17 13:11:43 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-12-17 13:11:43 -0500 |
commit | 1aaa2824b6c9196424a104a0bf92e80bfb4302d0 (patch) | |
tree | a3948b89158e98b947866f726cbcbd13b9db8204 | |
parent | 02119357dc729076b5c104dacf3fc4f73a7eb68a (diff) | |
download | rockbox-1aaa2824b6c9196424a104a0bf92e80bfb4302d0.tar.gz rockbox-1aaa2824b6c9196424a104a0bf92e80bfb4302d0.zip |
voice: Increase voice thread stack size on hosted targets
Fixes a stack overflow on Sony NWZ players when loading the voice file
Change-Id: Id545517b827e757922b4cde043763ee7316435e6
-rw-r--r-- | apps/voice_thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 08c7fd6b0b..12fc25df16 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c | |||
@@ -83,7 +83,11 @@ static unsigned int voice_thread_id = 0; | |||
83 | #elif defined(CPU_COLDFIRE) | 83 | #elif defined(CPU_COLDFIRE) |
84 | /* ISR uses any available stack - need a bit more room */ | 84 | /* ISR uses any available stack - need a bit more room */ |
85 | #define VOICE_STACK_EXTRA 0x400 | 85 | #define VOICE_STACK_EXTRA 0x400 |
86 | #elif (CONFIG_PLATFORM & PLATFORM_HOSTED) | ||
87 | /* Needed at least on the Sony NWZ hosted targets, but probably a good idea on all of them */ | ||
88 | #define VOICE_STACK_EXTRA 0x500 | ||
86 | #else | 89 | #else |
90 | #warning "3c0" | ||
87 | #define VOICE_STACK_EXTRA 0x3c0 | 91 | #define VOICE_STACK_EXTRA 0x3c0 |
88 | #endif | 92 | #endif |
89 | static long voice_stack[(DEFAULT_STACK_SIZE + VOICE_STACK_EXTRA)/sizeof(long)] | 93 | static long voice_stack[(DEFAULT_STACK_SIZE + VOICE_STACK_EXTRA)/sizeof(long)] |