mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
SPL: FIT: Align loading address for header
If bl_len is not aligned it can caused a problem because another code expects that start is aligned. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
71db3270db
commit
90a7417602
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ int spl_load_simple_fit(struct spl_load_info *info, ulong sector, void *fit)
|
|||
* be before CONFIG_SYS_TEXT_BASE.
|
||||
*/
|
||||
fit = (void *)(CONFIG_SYS_TEXT_BASE - size - info->bl_len);
|
||||
fit = (void *)ALIGN((ulong)fit, 8);
|
||||
sectors = (size + info->bl_len - 1) / info->bl_len;
|
||||
count = info->read(info, sector, sectors, fit);
|
||||
debug("fit read sector %lx, sectors=%d, dst=%p, count=%lu\n",
|
||||
|
|
Loading…
Reference in a new issue