Battery_bench & announce_status stack fix

had stack growing the wrong way

Change-Id: I51bf14526f5239e77e15dc0ffd76ad3ed8bdcbc8
This commit is contained in:
William Wilgus 2020-08-15 09:57:10 -04:00
parent a9ac2d0ba3
commit 84bfd68fb5
2 changed files with 4 additions and 6 deletions

View file

@ -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)
{