cmd: load: align cache flush
Prevent cache misalignment message by ensuring that a whole cache line is flushed. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
3450a8596d
commit
0a6036da63
|
@ -997,7 +997,7 @@ static ulong load_serial_ymodem(ulong offset, int mode)
|
|||
xyzModem_stream_terminate(false, &getcxmodem);
|
||||
|
||||
|
||||
flush_cache(offset, size);
|
||||
flush_cache(offset, ALIGN(size, ARCH_DMA_MINALIGN));
|
||||
|
||||
printf("## Total Size = 0x%08x = %d Bytes\n", size, size);
|
||||
setenv_hex("filesize", size);
|
||||
|
|
Loading…
Reference in New Issue