From 87978d4ee8ca4f65fa48197d73171cf97779254b Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 7 May 2009 14:05:42 +0000 Subject: 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 --- firmware/powermgmt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/powermgmt.c') 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; /* 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; -- cgit