X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_generic%2Fbzlib.c;h=5844e187c098bcb2d7a64b07cd436b8a0d25395a;hb=2ed0869d30602eb660569eababb8fedff36bd23a;hp=8a64b799e4a54c2d8faa1cd48bf8400a62ffb045;hpb=42d1f0394bef0624fc9664714d54bb137931d6a6;p=u-boot diff --git a/lib_generic/bzlib.c b/lib_generic/bzlib.c index 8a64b799e4..5844e187c0 100644 --- a/lib_generic/bzlib.c +++ b/lib_generic/bzlib.c @@ -1,5 +1,6 @@ #include -#ifdef CONFIG_BZIP2 +#include +#include /* * This file is a modified version of bzlib.c from the bzip2-1.0.2 @@ -841,6 +842,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) @@ -1587,9 +1591,11 @@ const char * BZ_API(BZ2_bzerror) (BZFILE *b, int *errnum) } #endif +void bz_internal_error(int errcode) +{ + printf ("BZIP2 internal error %d\n", errcode); +} /*-------------------------------------------------------------*/ /*--- end bzlib.c ---*/ /*-------------------------------------------------------------*/ - -#endif /* CONFIG_BZIP2 */