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:
parent
d4cebd5d77
commit
8071a55198
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user