mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-29 23:53:33 +08:00
cmd_mem: fix cp command
The "cp" command has not worked since
commit 0628ab8ec5
,
because of the following lines, which set the destination
and the source to the same address.
buf = map_sysmem(addr, bytes);
src = map_sysmem(addr, bytes);
Tested-by: Tom Rini <trini@ti.com>
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
c28cbfa1a8
commit
53237afe5b
@ -445,7 +445,7 @@ static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
#endif
|
||||
|
||||
bytes = size * count;
|
||||
buf = map_sysmem(addr, bytes);
|
||||
buf = map_sysmem(dest, bytes);
|
||||
src = map_sysmem(addr, bytes);
|
||||
while (count-- > 0) {
|
||||
if (size == 4)
|
||||
|
Loading…
Reference in New Issue
Block a user