summaryrefslogtreecommitdiffstats
path: root/apps/plugins/battery_bench.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-08-15 09:57:10 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-08-15 09:57:10 -0400
commit84bfd68fb5fc32debaf95551ffeafb5ea1583033 (patch)
tree6dac296a6f073500c18117d9d45a23e8871e274b /apps/plugins/battery_bench.c
parenta9ac2d0ba3b01de26944dc6a93c490c89c4ead70 (diff)
downloadrockbox-84bfd68fb5.tar.gz
rockbox-84bfd68fb5.tar.bz2
rockbox-84bfd68fb5.zip
Battery_bench & announce_status stack fix
had stack growing the wrong way Change-Id: I51bf14526f5239e77e15dc0ffd76ad3ed8bdcbc8
Diffstat (limited to 'apps/plugins/battery_bench.c')
-rw-r--r--apps/plugins/battery_bench.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index 75c448bb27..ff979abd8e 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -656,9 +656,7 @@ enum plugin_status plugin_start(const void* parameter)
rb->memset(buf, 0, buf_size);
gThread.stacksize = buf_size;
- gThread.stack = (long *) buf + buf_size; /* stack grows towards *buf */
-
- ALIGN_BUFFER(gThread.stack, gThread.stacksize, sizeof(long));
+ gThread.stack = (long *) buf;
if (gThread.stacksize < MIN_THREAD_STACK_SIZE)
{