mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
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:
parent
d2c1298e19
commit
87978d4ee8
1 changed files with 4 additions and 0 deletions
|
|
@ -93,7 +93,11 @@ static int battery_type = 0;
|
||||||
/* Power history: power_history[0] is the newest sample */
|
/* Power history: power_history[0] is the newest sample */
|
||||||
unsigned short power_history[POWER_HISTORY_LEN];
|
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];
|
static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK];
|
||||||
|
#endif
|
||||||
static const char power_thread_name[] = "power";
|
static const char power_thread_name[] = "power";
|
||||||
|
|
||||||
static int poweroff_timeout = 0;
|
static int poweroff_timeout = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue