Home
last modified time | relevance | path

Searched hist:"957 f51e86367e14be9e40cfe5cc3a494fc17abcf" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/cmd/
H A Delf.cdiff 957f51e86367e14be9e40cfe5cc3a494fc17abcf Thu Feb 07 05:19:45 CST 2019 Kurban Mallachiev <mallachiev@ispras.ru> elf: fix cache flushing in 'bootelf -p' command

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@ispras.ru>