
20 May
2019
20 May
'19
2:38 p.m.
On 20/05/19 5:55 PM, Adam Ford wrote:
What about adding a memset function to the end of spl_board_init() so after arch_cpu_init() is called,and after preloader_consol_init() is called, we clear BSS? I ran some preliminary tests on da850evm and it didn't see to break anything. There are a few boards that appear to do things in this order.
This will work, but, looks like there is a desire to maintain some "standard" around this. Ie board_init_r() can assume BSS is available (see README -> Board Initialisation Flow:).
Doing BSS init in in spl_board_init() called from board_init_r() will violate that.
Thanks, Sekhar