projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3450a85
)
cmd: load: align cache flush
author
Chris Packham
<judge.packham@gmail.com>
Tue, 25 Oct 2016 07:22:48 +0000
(20:22 +1300)
committer
Tom Rini
<trini@konsulko.com>
Mon, 31 Oct 2016 14:13:18 +0000
(10:13 -0400)
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>
cmd/load.c
patch
|
blob
|
history
diff --git
a/cmd/load.c
b/cmd/load.c
index 65557e4f9ec3737aa14569ef97d1db4a561fcb25..77c3359b29b7c057bd97e06e9423bcc1d9e5d843 100644
(file)
--- a/
cmd/load.c
+++ b/
cmd/load.c
@@
-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);