summaryrefslogtreecommitdiff
path: root/common/cmd_mem.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-05-20 21:08:08 +0000
committerJason Liu <r64343@freescale.com>2013-07-30 06:39:57 +0800
commit6d721ba979650092a036362e2f0376ce1f2e3ab9 (patch)
tree29f3b3e8956759e3d6d28c2f3783a9eb7f7b913f /common/cmd_mem.c
parent82684111e07ec7817dd0abb49badcb9b9173fea3 (diff)
downloadu-boot-imx-6d721ba979650092a036362e2f0376ce1f2e3ab9.zip
u-boot-imx-6d721ba979650092a036362e2f0376ce1f2e3ab9.tar.gz
u-boot-imx-6d721ba979650092a036362e2f0376ce1f2e3ab9.tar.bz2
cmd_mem: fix cp command
The "cp" command has not worked since commit 0628ab8ec59834f98ede267edd21ddb8ba0bb57b, 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>
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r--common/cmd_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index 64dd76a..6df00b1 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -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)