[U-Boot] [PATCH 02/11] env_mmc.c: Make the non-redundant env_relocate_spec use malloc not stack

Wolfgang Denk wd at denx.de
Sat Oct 5 22:00:13 CEST 2013


Dear Tom Rini,

In message <1380227287-26057-3-git-send-email-trini at ti.com> you wrote:
> Switch the case of non-redundant non-embedded environment to use malloc
> to allocate buffers, rather than place them on the stack, like the
> redundant case does.

What exactly would be the benefit of this change?  It just adds code
size and execution time and makes the code more complex, without any
appearent advanteages?

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
"Never face facts; if you do, you'll never get up in the morning."
- Marlo Thomas


More information about the U-Boot mailing list