[U-Boot] elf: fix cache flushing in 'bootelf -p' command

Tom Rini trini at konsulko.com
Wed Feb 20 01:57:11 UTC 2019


On Thu, Feb 07, 2019 at 02:19:45PM +0300, Kurban Mallachiev wrote:

> Currently there are two problems in 'bootelf -p' (load elf by segments)
> command:
> - bss section is not flushed, so booted elf can have non zero values
>   in bss;
> - at least on ARM there are 'CACHE: Misaligned operation at
>   range...' warnings
> 
> Use p_memsz instead of p_filesz during cache flushing for elf segment.
> p_filesz doesn't include zero initialized memory (e.g. bss section),
> which also should be flushed.
> 
> Align these cache flushes to line boundaries.
> 
> Signed-off-by: Kurban Mallachiev <mallachiev at ispras.ru>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190219/cf746c09/attachment.sig>


More information about the U-Boot mailing list