]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: fix entry_point equal to load_addr
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Mon, 25 Nov 2019 16:18:20 +0000 (17:18 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 5 Dec 2019 15:28:39 +0000 (10:28 -0500)
commitd3e97b53c1f2464f4898226de7d89abf242e4aa8
treeec047cd795178b481265e876d43fec714e800102
parent995237b04921574c3922734005d1493d5ec8be97
spl: fix entry_point equal to load_addr

At the moment entry_point is set to image_get_load(header) that sets it
to "load address" instead of "entry point", assuming entry_point is
equal to load_addr, but it's not true. Then load_addr is set to
"entry_point - header_size", but this is wrong too since load_addr is
not an entry point.

So use image_get_ep() for entry_point assignment and image_get_load()
for load_addr assignment.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
common/spl/spl.c