mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
Battery_bench & announce_status stack fix
had stack growing the wrong way Change-Id: I51bf14526f5239e77e15dc0ffd76ad3ed8bdcbc8
This commit is contained in:
parent
a9ac2d0ba3
commit
84bfd68fb5
2 changed files with 4 additions and 6 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue