]> git.baikalelectronics.ru Git - uboot.git/commit
u-boot: align cache flushes in load_elf_image_shdr to line boundaries
authorNeil Stainton <nstainton@asl-control.co.uk>
Mon, 20 Aug 2018 15:46:19 +0000 (15:46 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 24 Aug 2018 19:59:33 +0000 (15:59 -0400)
commit706aa9760c0270fcc23455a9238192f90e533b95
tree01bb6839252db0dad1bbfdec342dd38d64680372
parent5875cb2de12e1fc8c68a38be544b8aeebac11601
u-boot: align cache flushes in load_elf_image_shdr to line boundaries

Prevent cache warning messages when using the 'bootelf' command on an
Arm target. Round down each section start address and round up the
respective section end to the nearest cache line.

Currently when using bootelf to load an image on Arm, several warnings
such as the following appear in the console:
  CACHE: Misaligned operation at range [878000008783c5e0]
  CACHE: Misaligned operation at range [8783c5e08784b3e0]

Signed-off-by: Neil Stainton <nstainton@asl-control.co.uk>
[trini: Reword commit message to include the info after the --- which
included the Signed-off-by line, and change ' at ' to '@']
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/elf.c