[U-Boot] tiny-printf: Adjust to avoid using data section

Tom Rini trini at konsulko.com
Wed Aug 10 02:46:39 CEST 2016


On Thu, Aug 04, 2016 at 09:58:14PM -0600, Simon Glass wrote:

> We can pass all the variables down to the functions that need them, and
> then everything is on the stack. This is safer than using the data section.
> 
> At least on firefly-rk3288, the code size is the same and the data size is
> 12 bytes smaller:
> 
> before:
>   18865	   2636	     40	  21541	   5425	b/firefly-rk3288/spl/u-boot-spl
> after:
>   18865	   2624	     40	  21529	   5419	b/firefly-rk3288/spl/u-boot-spl
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Tom Rini <trini at konsulko.com>
> Reviewed-by: Stefan Roese <sr at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160809/4c64b995/attachment.sig>


More information about the U-Boot mailing list