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
This commit is contained in:
parent
02119357dc
commit
1aaa2824b6
1 changed files with 4 additions and 0 deletions
|
@ -83,7 +83,11 @@ static unsigned int voice_thread_id = 0;
|
||||||
#elif defined(CPU_COLDFIRE)
|
#elif defined(CPU_COLDFIRE)
|
||||||
/* ISR uses any available stack - need a bit more room */
|
/* ISR uses any available stack - need a bit more room */
|
||||||
#define VOICE_STACK_EXTRA 0x400
|
#define VOICE_STACK_EXTRA 0x400
|
||||||
|
#elif (CONFIG_PLATFORM & PLATFORM_HOSTED)
|
||||||
|
/* Needed at least on the Sony NWZ hosted targets, but probably a good idea on all of them */
|
||||||
|
#define VOICE_STACK_EXTRA 0x500
|
||||||
#else
|
#else
|
||||||
|
#warning "3c0"
|
||||||
#define VOICE_STACK_EXTRA 0x3c0
|
#define VOICE_STACK_EXTRA 0x3c0
|
||||||
#endif
|
#endif
|
||||||
static long voice_stack[(DEFAULT_STACK_SIZE + VOICE_STACK_EXTRA)/sizeof(long)]
|
static long voice_stack[(DEFAULT_STACK_SIZE + VOICE_STACK_EXTRA)/sizeof(long)]
|
||||||
|
|
Loading…
Reference in a new issue