On Wed, 2013-11-27 at 18:43 -0700, Simon Glass wrote:

> I have a similar patch locally, but it actually does memset() on the
> whole structure. Some archs handle this setup differently. For example
> both ARM and x86 now allocate it in low level code so there is no need
> for the board_f code to allocate a global data structure.
> 

Another approach would be to move "zero_global_data" from
"init_sequence_f" to the very beginning of "board_init_f" right after
global data allocation.

But IMHO it is a bit more significant modification so I decided to start
from the simplest fix that resolves a particular issue I see.

-Alexey

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to