diff options
Diffstat (limited to 'boot/image-fit.c')
| -rw-r--r-- | boot/image-fit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/image-fit.c b/boot/image-fit.c index 067ad236081..b0fcaf6e17f 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -2282,7 +2282,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr, printf(" Loading %s from 0x%08lx to 0x%08lx\n", prop_name, data, load); } else { - load = data; /* No load address specified */ + load = data; /* load address specified but set to 0 */ } comp = IH_COMP_NONE; @@ -2311,7 +2311,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr, } len = load_end - load; } else if (load_op != FIT_LOAD_IGNORED && image_type == IH_TYPE_FLATDT && - ((uintptr_t)buf & 7)) { + (load & 7)) { loadbuf = aligned_alloc(8, len); load = map_to_sysmem(loadbuf); memcpy(loadbuf, buf, len); |
