[U-Boot] [U-BOOT] [PATCH] env: reduce the stack footprint for the env buf

Wolfgang Denk wd at denx.de
Sat Feb 5 15:11:52 CET 2011


Dear Graeme Russ,

In message <4D4D1987.5010405 at gmail.com> you wrote:
>
> Sounds like you have allocated too small a region for your stack - try
> increasing CONFIG_SYS_STACK_SIZE and decreasing CONFIG_SYS_MALLOC_LEN

Most systems don't have anything like CONFIG_SYS_STACK_SIZE; the stack
grows downward into free memory, and is only limited by the RAM size
and the memory areas you might be using in RAM for example to load
images or the like - the x86 implementation might be different,

> The only other thing I could think of that would make sense would be having
> the malloc heap in a completely different memory segment to the stack -
> odd, but possible

But I doubt that would actually save memory either.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Do not underestimate the value of print statements for debugging.


More information about the U-Boot mailing list