[U-Boot] Initializing global_data on SuperH before board_init_f() ?

2017-08-15 Thread Thomas Petazzoni
Hello, As you probably noticed with the few patches I sent late July, I am porting U-Boot to an old SH7786 platform. As part of this effort, I stumbled across a bug: the global_data structure is not initialized to zero by the SuperH architecture code before calling board_init_f(). The SuperH arch

Re: [U-Boot] Initializing global_data on SuperH before board_init_f() ?

2017-08-15 Thread Lokesh Vutla
Hi Thomas, On Wednesday 16 August 2017 02:37 AM, Thomas Petazzoni wrote: > Hello, > > As you probably noticed with the few patches I sent late July, I am > porting U-Boot to an old SH7786 platform. As part of this effort, I > stumbled across a bug: the global_data structure is not initialized to

Re: [U-Boot] Initializing global_data on SuperH before board_init_f() ?

2017-08-16 Thread Thomas Petazzoni
Hello, On Wed, 16 Aug 2017 08:09:06 +0530, Lokesh Vutla wrote: > > Should we put global_data within the .bss section, so that it gets > > zero-initialized automatically? Should we zero-initialize it explicitly? > > I am not sure how SuperH allocates the space for global data but > typically th

Re: [U-Boot] Initializing global_data on SuperH before board_init_f() ?

2017-08-17 Thread Vladimir Zapolskiy
Hello Thomas, On 08/16/2017 12:07 AM, Thomas Petazzoni wrote: > Hello, > > As you probably noticed with the few patches I sent late July, I am > porting U-Boot to an old SH7786 platform. nice, as time passes by, more and more U-Boot/SH users appear, now there are two of us :) Are you going to u

Re: [U-Boot] Initializing global_data on SuperH before board_init_f() ?

2017-08-19 Thread Thomas Petazzoni
Hello, On Thu, 17 Aug 2017 21:30:34 +0300, Vladimir Zapolskiy wrote: > > As you probably noticed with the few patches I sent late July, I am > > porting U-Boot to an old SH7786 platform. > > nice, as time passes by, more and more U-Boot/SH users appear, now > there are two of us :) He, yes :-