]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: fix stack usage check if gd is not initialized
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Mon, 11 Nov 2019 21:30:46 +0000 (22:30 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 10 Jan 2020 15:25:13 +0000 (10:25 -0500)
commitc82abaa5d63f5259fd64c59bd70010310b4c4e4b
tree7b886c981a43ab45c1481d4ef911377379102514
parent8947145cd0ae8adf1c5dc0ae6756d49bf5330b48
spl: fix stack usage check if gd is not initialized

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")
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
common/init/board_init.c