]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: spl: Add a function to find the text base
authorSimon Glass <sjg@chromium.org>
Sun, 24 Jan 2021 17:06:03 +0000 (10:06 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 1 Feb 2021 07:11:41 +0000 (15:11 +0800)
commit86c372af1abd02f6d81c287159e5d80bb27b8ae4
tree0debd858c894d13c390efbf483fc1b52b199ec35
parent6754393d260cf779a1c441a58c305a6b62e6a82d
x86: spl: Add a function to find the text base

It is useful to know the TEXT_BASE value for the image being loaded in
TPL/SPL. Add a new spl_get_image_text_base() function to handle this.

Make use of this in the x86 SPL handler, instead of having the logic
there.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/spl/spl.c
include/spl.h