[U-Boot] elf: fix cache flushing in 'bootelf -p' command
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)
> - 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!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: not available
More information about the U-Boot