- must return original memory size in *heap_size_p if policy == -1

This commit is contained in:
Till Straumann
2009-03-05 20:09:59 +00:00
parent 21ae805dc1
commit ad82bec5d1

View File

@@ -107,6 +107,7 @@ uintptr_t _bsp_sbrk_init(
if ( 0 != &BSP_sbrk_policy ) {
switch ( BSP_sbrk_policy ) {
case (uint32_t)(-1):
*heap_size_p += rval;
remaining_start = heap_start + *heap_size_p;
remaining_size = 0;
/* return a nonzero sbrk_amount because the libsupport code