]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "spl: fix entry_point equal to load_addr"
authorTom Rini <trini@konsulko.com>
Fri, 6 Dec 2019 14:56:03 +0000 (09:56 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 6 Dec 2019 14:56:03 +0000 (09:56 -0500)
Due to the (seemingly bogus) assumption of a default
CONFIG_SYS_UBOOT_START value we will revert this change for now and
evaluate it again for the next release along with changes to
CONFIG_SYS_UBOOT_START.

This reverts commit d3e97b53c1f2464f4898226de7d89abf242e4aa8.

Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/spl.c

index 24da164b43889c896dce5bddb6bded16c8d2651b..d51dbe9942fc9f3be482ffd8d141d853bcb67d64 100644 (file)
@@ -264,9 +264,9 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
                        spl_image->entry_point = image_get_ep(header);
                        spl_image->size = image_get_data_size(header);
                } else {
-                       spl_image->entry_point = image_get_ep(header);
+                       spl_image->entry_point = image_get_load(header);
                        /* Load including the header */
-                       spl_image->load_addr = image_get_load(header) -
+                       spl_image->load_addr = spl_image->entry_point -
                                header_size;
                        spl_image->size = image_get_data_size(header) +
                                header_size;