]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
efi: Avoid using non-existent text base
authorBen Stoltz <stoltz@google.com>
Fri, 31 Jul 2015 15:31:37 +0000 (09:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:53 +0000 (08:00 +0200)
commit322c9cedbe2fedc3b2a3aa08634061e79bd4c773
tree3096a1bcdc3063380783fc32bb6984e94025fe8a
parent6446d1469d12a495f10925835c40e6ec9af01b9e
efi: Avoid using non-existent text base

When U-Boot runs as an EFI application is does not have a definition of
CONFIG_SYS_TEXT_BASE. U-Boot is a relocatable application and the relocation
is done by EFI. U-Boot can be loaded at any address.

This is similar to how sandbox works. Adjust the early board init to deal
with this.

Signed-off-by: Ben Stoltz <stoltz@google.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/board_f.c