[U-Boot] [U-Boot,v2] SPL: tiny-printf: avoid any BSS usage

Tom Rini trini at konsulko.com
Fri Jul 8 18:50:41 CEST 2016


On Fri, Jul 08, 2016 at 03:18:35PM +0100, Andre Przywara wrote:

> As printf calls may be executed quite early, we should avoid using any
> BSS stored variables, since some boards put BSS in DRAM, which may not
> have been initialised yet.
> Explicitly mark those "static global" variables as belonging to the
> .data section, to keep tiny-printf clear of any BSS usage.
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>

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/20160708/6eaa6975/attachment.sig>


More information about the U-Boot mailing list