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

2016-07-09 Thread Tom Rini
On Sat, Jul 09, 2016 at 10:22:37AM +0200, Marek Vasut wrote: > On 07/09/2016 02:28 AM, Tom Rini wrote: > >On Fri, Jul 08, 2016 at 11:48:12PM +0200, Marek Vasut wrote: > >>On 07/08/2016 06:50 PM, Tom Rini wrote: > >>>On Fri, Jul 08, 2016 at 03:18:35PM +0100, Andre Przywara wrote: > >>> > As

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

2016-07-09 Thread Marek Vasut
On 07/09/2016 02:28 AM, Tom Rini wrote: On Fri, Jul 08, 2016 at 11:48:12PM +0200, Marek Vasut wrote: On 07/08/2016 06:50 PM, Tom Rini wrote: 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

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

2016-07-08 Thread Tom Rini
On Fri, Jul 08, 2016 at 11:48:12PM +0200, Marek Vasut wrote: > On 07/08/2016 06:50 PM, Tom Rini wrote: > >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

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

2016-07-08 Thread Marek Vasut
On 07/08/2016 06:50 PM, Tom Rini wrote: 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

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

2016-07-08 Thread Tom Rini
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