RISC-V: Fix bug in riscv_addrenv.c

Need 1 full page extra for heap, not 1 byte.
This commit is contained in:
Ville Juven 2022-04-29 09:43:00 +03:00 committed by Xiang Xiao
parent 9b20f97064
commit 2fd29b6408

View File

@ -385,7 +385,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_NPAGES(1);
heapsize = heapsize + MM_PGALIGNUP(1);
/* Map the reserved area */