From: Bartlomiej Sieka Date: Fri, 25 Apr 2008 12:09:33 +0200 Subject: [U-Boot-Users] [PATCH v3 0/2] Calculate image hashes with watchdog triggering In-Reply-To: <20080412111343.16495.21545.stgit@pollux.denx.de> References: <20080412111343.16495.21545.stgit@pollux.denx.de> Message-ID: <20080425100716.32281.23828.stgit@pollux.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hash calculation of an image can be a time consuming operation, with the possibility of making the hardware watchdog (if present/enabled) expire in the middle. Make image hash calculation use use watchdog-aware functions. --- v3 of the patchset, rebased against current TOT (commit 04a5b03d), dropped one patch already applied and added a patch changing crc32_wd prototype. Bartlomiej Sieka (2): Use watchdog-aware functions when calculating hashes of images crc32: use uint32_t rather than unsigned long in watchdog-aware variant common/image.c | 42 ++++++++---------------------------------- include/image.h | 17 +++++++++++++++-- lib_generic/crc32.c | 4 +++- lib_generic/md5.c | 4 ++++ lib_generic/sha1.c | 4 ++++ 5 files changed, 34 insertions(+), 37 deletions(-)