summaryrefslogtreecommitdiffstats
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-11-02 21:30:41 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2020-11-02 21:38:13 -0500
commit611c18704cf8a8866235e4b7fe93f17e8a2614c4 (patch)
tree3771436138ce71ef5ecc08307ae6a1847b57c1bf /firmware/usb.c
parent0c99a3f9fb9db2e2ab96a69b5adc100462e72843 (diff)
downloadrockbox-611c18704cf8a8866235e4b7fe93f17e8a2614c4.tar.gz
rockbox-611c18704cf8a8866235e4b7fe93f17e8a2614c4.tar.bz2
rockbox-611c18704cf8a8866235e4b7fe93f17e8a2614c4.zip
FuzePlus USB+screen dump overflows usbstack
Bump USB stack by 128 bytes adds USB_EXTRA_STACK Change-Id: I12839edbe889c878482081cf59fc6540384673ac
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index f97cc75ffe..e0c0c45865 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -68,7 +68,10 @@ static int usb_mmc_countdown = 0;
/* Make sure there's enough stack space for screendump */
#ifdef USB_FULL_INIT
-static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE)/sizeof(long)];
+#ifndef USB_EXTRA_STACK
+# define USB_EXTRA_STACK 0x0 /*Define in firmware/export/config/[target].h*/
+#endif
+static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE + USB_EXTRA_STACK)/sizeof(long)];
static const char usb_thread_name[] = "usb";
static unsigned int usb_thread_entry = 0;
static bool usb_monitor_enabled = false;