mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
x86: spl: Change the condition for copying U-Boot to RAM
Make this depend on whether the address matches the offset, rather than a particular board build. For samus_tpl we don't need to copy, for example. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -258,7 +258,7 @@ static int spl_board_load_image(struct spl_image_info *spl_image,
|
||||
spl_image->os = IH_OS_U_BOOT;
|
||||
spl_image->name = "U-Boot";
|
||||
|
||||
if (!IS_ENABLED(CONFIG_SYS_COREBOOT)) {
|
||||
if (spl_image->load_addr != spl_get_image_pos()) {
|
||||
/* Copy U-Boot from ROM */
|
||||
memcpy((void *)spl_image->load_addr,
|
||||
(void *)spl_get_image_pos(), spl_get_image_size());
|
||||
|
||||
Reference in New Issue
Block a user