From 2ee665339b06285a5fd9e36410d1167efc9b0606 Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 11 Oct 2004 22:43:02 +0000 Subject: * Patch by Pantelis Antoniou, 14 Sep 2004: Fix early serial hang when CONFIG_SERIAL_MULTI is defined. * Patch by Pantelis Antoniou, 14 Sep 2004: Kick watchdog when bz-decompressing --- lib_generic/bzlib.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib_generic/bzlib.c') diff --git a/lib_generic/bzlib.c b/lib_generic/bzlib.c index 8a64b799e..87e6a6eed 100644 --- a/lib_generic/bzlib.c +++ b/lib_generic/bzlib.c @@ -1,4 +1,6 @@ #include +#include +#include #ifdef CONFIG_BZIP2 /* @@ -841,6 +843,9 @@ int BZ_API(BZ2_bzDecompress) ( bz_stream *strm ) if (s->strm != strm) return BZ_PARAM_ERROR; while (True) { +#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) + WATCHDOG_RESET(); +#endif if (s->state == BZ_X_IDLE) return BZ_SEQUENCE_ERROR; if (s->state == BZ_X_OUTPUT) { if (s->smallDecompress) -- cgit v1.2.3