summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-04-01 20:24:59 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-04-01 20:24:59 -0400
commitafec380a0d44482ac498b31b167b43a3c2b710a2 (patch)
tree3fd8978fabb2f7299f13e9bbd6bb99bebb01de7a /firmware/target/arm
parent9e15c19891282e3740a78cf7d6a74bd0041a55a2 (diff)
downloadrockbox-afec380a0d44482ac498b31b167b43a3c2b710a2.tar.gz
rockbox-afec380a0d44482ac498b31b167b43a3c2b710a2.tar.bz2
rockbox-afec380a0d44482ac498b31b167b43a3c2b710a2.zip
gigabeats: Fix hang on startup caused by a stack overflow
headphone ADC thread stack was slightly too small. Bump it up a bit. (it was _perfectly_ sized for the prior older toolchain+optimization flags...) Change-Id: I2ca67c2b85c54f879892a31e281d7696f893389c
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c
index cf0a378fc7..712e7eac8d 100644
--- a/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c
+++ b/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c
@@ -30,7 +30,7 @@
static struct semaphore headphone_wakeup;
static unsigned int headphone_thread_id;
-static unsigned int headphone_stack[176/sizeof(int)]; /* Little stack needed */
+static unsigned int headphone_stack[200/sizeof(int)]; /* Little stack needed; 184 bytes as of this writing. */
static const char * const headphone_thread_name = "headphone";
static bool headphones_detect = false;