On Sat, Oct 05, 2013 at 10:00:13PM +0200, Wolfgang Denk wrote: > Dear Tom Rini, > > In message <1380227287-26057-3-git-send-email-tr...@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?
The main advantage is that we can use this code in environments with less than CONFIG_ENV_SIZE worth of stack available. Arguably it makes the behaviour and code paths similar for redundant and non-redundant cases (but someone posted a patch to make the redundant case use the stack). -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot