riscv/riscv_addrenv.c: Allocate heap for default task stacksize

1 page might not be enough, if the task has a bigger stack. Best effort
is to allocate the default amount, however this won't work will all
tasks either.
This commit is contained in:
Ville Juven 2023-08-22 14:00:27 +03:00 committed by Xiang Xiao
parent d4cebd5d77
commit 8071a55198

View File

@ -419,7 +419,7 @@ int up_addrenv_create(size_t textsize, size_t datasize, size_t heapsize,
/* Allocate 1 extra page for heap, temporary fix for #5811 */
heapsize = heapsize + MM_PGALIGNUP(1);
heapsize = heapsize + MM_PGALIGNUP(CONFIG_DEFAULT_TASK_STACKSIZE);
/* Map the reserved area */