Jz4732: add hack to fix stack overflow in the power thread (fixes USB on non-bootloader)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20867 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-05-07 14:05:42 +00:00
parent d2c1298e19
commit 87978d4ee8
1 changed files with 4 additions and 0 deletions

View File

@ -93,7 +93,11 @@ static int battery_type = 0;
/* Power history: power_history[0] is the newest sample */
unsigned short power_history[POWER_HISTORY_LEN];
#if CONFIG_CPU == JZ4732 /* FIXME! */
static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK];
#else
static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK];
#endif
static const char power_thread_name[] = "power";
static int poweroff_timeout = 0;