mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user