
30 Jun
2011
30 Jun
'11
1:09 p.m.
Hi Simon,
Le 30/06/2011 10:21, Simon Schwarz a écrit :
Hi,
Hmm, I actually porting a dm368 based board with nand_spl support (patches following soon), and there I have an empty bss section, so I can direct copy the u-boot image from nand to ram in board_init_f().
This is what I'am doing with OMAP3 also. IMHO it would be more readable if relocate_code is not called if there is no relocation and instead the clear_bss()-function is used as Andreas suggested. (Or to just not use clear_bss if bss is empty)
IMO, for the sake of rpbustness, the clear_bss code should handle the case where the BSS is empty, and for the sake of simplicity, it should be called always.
Regards Simon
Amicalement,
--
Albert.