summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-07 14:05:42 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-07 14:05:42 +0000
commit87978d4ee8ca4f65fa48197d73171cf97779254b (patch)
tree867dbb79ad3952d668a533226f73f38111e2967b
parentd2c1298e194f35ebe371dde7c345fbe2ee054208 (diff)
downloadrockbox-87978d4ee8ca4f65fa48197d73171cf97779254b.tar.gz
rockbox-87978d4ee8ca4f65fa48197d73171cf97779254b.zip
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
-rw-r--r--firmware/powermgmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 3fc216080b..64aa5c0637 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -93,7 +93,11 @@ static int battery_type = 0;
93/* Power history: power_history[0] is the newest sample */ 93/* Power history: power_history[0] is the newest sample */
94unsigned short power_history[POWER_HISTORY_LEN]; 94unsigned short power_history[POWER_HISTORY_LEN];
95 95
96#if CONFIG_CPU == JZ4732 /* FIXME! */
97static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK];
98#else
96static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK]; 99static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK];
100#endif
97static const char power_thread_name[] = "power"; 101static const char power_thread_name[] = "power";
98 102
99static int poweroff_timeout = 0; 103static int poweroff_timeout = 0;