提交 53237afe 编写于 作者: M Masahiro Yamada 提交者: Tom Rini

cmd_mem: fix cp command

The "cp" command has not worked since
commit 0628ab8e,
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: NTom Rini <trini@ti.com>
Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
上级 c28cbfa1
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册