]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: Remove overwrite of relocated malloc limit
authorAndrew F. Davis <afd@ti.com>
Fri, 27 Jan 2017 16:39:19 +0000 (10:39 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 28 Jan 2017 19:04:34 +0000 (14:04 -0500)
commitb3d2861eb20a795b99292b823c923935df26dfc6
tree6a78113cd00a0301b3c72e973fbc397ccbf3e12a
parent1923d54bfc2261948448a821d284f10566fde7fe
spl: Remove overwrite of relocated malloc limit

spl_init on some boards is called after stack and heap relocation, on
some platforms spl_relocate_stack_gd is called to handle setting the
limit to its value CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN when simple
SPL malloc is enabled during relocation. spl_init should then not
re-assign the old pre-relocation limit when this is defined.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl.c