summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Scharsig <esw@bus-elektronik.de>2011-07-18 08:46:26 +0200
committerWolfgang Denk <wd@denx.de>2011-07-26 00:40:50 +0200
commit39c6e039a042063125a175132321e33b52b3d8f9 (patch)
treecddf94ae86c92c121263bc0dbb4450b89d74bc02
parentb038db852b5b7120f1ff825d8e2a5c2cd14c2f0f (diff)
Fix: if using crc32 command watchdog timed out
* Fix: if using crc32 command watchdog timed out * change function call crc32(..) to the watchdog-safe variant crc_32_wd(..) to support watchdog reset Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
-rw-r--r--common/cmd_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index a5576aaab0..4daa1b3db0 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -1092,7 +1092,7 @@ int do_mem_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
length = simple_strtoul (argv[2], NULL, 16);
- crc = crc32 (0, (const uchar *) addr, length);
+ crc = crc32_wd (0, (const uchar *) addr, length, CHUNKSZ_CRC32);
printf ("CRC32 for %08lx ... %08lx ==> %08lx\n",
addr, addr + length - 1, crc);
@@ -1137,7 +1137,7 @@ usage:
addr += base_address;
length = simple_strtoul(*av++, NULL, 16);
- crc = crc32(0, (const uchar *) addr, length);
+ crc = crc32_wd (0, (const uchar *) addr, length, CHUNKSZ_CRC32);
if (!verify) {
printf ("CRC32 for %08lx ... %08lx ==> %08lx\n",