From c191eb7d8fa40bb10a2d1ef9aa512425aeb30ec7 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Sun, 24 Oct 2010 21:23:02 +0000 Subject: [PATCH] Increase USB stack size on iPod Nano 2G to prevent screendump from overflowing it. Not committing this to trunk because a better, but more invasive, fix is being prepared. git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_7@28353 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/usb.c b/firmware/usb.c index baf6af7d69..04bb4180e7 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -71,7 +71,11 @@ static int usb_mmc_countdown = 0; /* FIXME: The extra 0x800 is consumed by fat_mount() when the fsinfo needs updating */ #ifdef USB_FULL_INIT +#ifdef IPOD_NANO2G +static long usb_stack[(DEFAULT_STACK_SIZE + 0x1000)/sizeof(long)]; +#else static long usb_stack[(DEFAULT_STACK_SIZE + 0x800)/sizeof(long)]; +#endif static const char usb_thread_name[] = "usb"; static unsigned int usb_thread_entry = 0; #ifndef USB_STATUS_BY_EVENT