Re: [U-Boot] [PATCH] spl: fix stack usage check if gd is not initialized

2020-01-10 Thread Tom Rini
On Mon, Nov 11, 2019 at 10:30:46PM +0100, Simon Goldschmidt wrote: > Most platforms do not set up gd->start_addr_sp in SPL. Since this is > required for CONFIG_SPL_SYS_REPORT_SACK_F_USAGE to work correctly, set > up gd->start_addr_sp in SPL to the value passed to > board_init_f_init_reserve if it

[U-Boot] [PATCH] spl: fix stack usage check if gd is not initialized

2019-11-11 Thread Simon Goldschmidt
Most platforms do not set up gd->start_addr_sp in SPL. Since this is required for CONFIG_SPL_SYS_REPORT_SACK_F_USAGE to work correctly, set up gd->start_addr_sp in SPL to the value passed to board_init_f_init_reserve if it is not set yet. Fixes: d8c0332031 ("spl: implement stack usage check")