aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJens Scharsig <esw@bus-elektronik.de>2011-07-18 14:39:07 +0200
committerWolfgang Denk <wd@denx.de>2011-07-26 14:33:10 +0200
commit3e499b6ab02663e996e4b08456f8733f4234fdab (patch)
treea8d1065768df8781d4762a90641fd5a723b1859a /common
parentd0c4c33850793be7e211d1cb20c9e0ce67c26c3b (diff)
downloadu-boot-midas-3e499b6ab02663e996e4b08456f8733f4234fdab.tar.gz
u-boot-midas-3e499b6ab02663e996e4b08456f8733f4234fdab.tar.bz2
u-boot-midas-3e499b6ab02663e996e4b08456f8733f4234fdab.zip
Fix: watchdog timed out, if using sha1 command
* Fix: if using sha1 command watchdog timed out * change function call sha1_csum(..) to the watchdog-safe variant sha1_csum_wd(..) to support watchdog reset Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_sha1sum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_sha1sum.c b/common/cmd_sha1sum.c
index bb3cff01f0..2b2dd8b45a 100644
--- a/common/cmd_sha1sum.c
+++ b/common/cmd_sha1sum.c
@@ -37,7 +37,7 @@ static int do_sha1sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
addr = simple_strtoul(argv[1], NULL, 16);
len = simple_strtoul(argv[2], NULL, 16);
- sha1_csum((unsigned char *) addr, len, output);
+ sha1_csum_wd((unsigned char *) addr, len, output, CHUNKSZ_SHA1);
printf("SHA1 for %08lx ... %08lx ==> ", addr, addr + len - 1);
for (i = 0; i < 20; i++)
printf("%02x", output[i]);