summaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-10-04 09:29:20 +0200
committerTom Rini <trini@konsulko.com>2018-10-06 14:09:41 -0400
commit83a64560dd4f352832fbfc508a9c8904809f55d1 (patch)
tree868365f5f92ae920a1d96afc4af88cee80852e00 /common/spl
parent362612df53284e72ca7945aaf29d37c14a1ad3ca (diff)
spl: ram: Fix u_boot_pos calculation
The patch: "spl: Weed out CONFIG_SYS_TEXT_BASE usage" (sha1: 04ce5427bd3914cab8be78513275a20ab878520a) introduced bug where assigning to u_boot_pos variable wasn't done which end up in situation where SPL wasn't able to find out image on the selected address. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/spl_ram.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c
index 619b39a537..5fcc3b1504 100644
--- a/common/spl/spl_ram.c
+++ b/common/spl/spl_ram.c
@@ -63,9 +63,8 @@ static int spl_ram_load_image(struct spl_image_info *spl_image,
* No binman support or no information. For now, fix it
* to the address pointed to by U-Boot.
*/
- header = spl_get_load_buffer(-sizeof(*header),
- sizeof(*header));
-
+ u_boot_pos = (ulong)spl_get_load_buffer(-sizeof(*header),
+ sizeof(*header));
}
header = (struct image_header *)map_sysmem(u_boot_pos, 0);