diff options
author | rhabarber1848@web.de <rhabarber1848@web.de> | 2009-07-24 08:16:30 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-07-27 00:16:36 +0200 |
commit | fafbb2c3e4b35b60ca303ed2ad1c6cf400cd9a22 (patch) | |
tree | 03ca5e614ea8406e1caaf33a7308e59a8bdfb81e /lib_generic/lzma/LzmaTools.c | |
parent | 3c972849f2becbf19c13a24f090d293f37ecf616 (diff) | |
download | u-boot-imx-fafbb2c3e4b35b60ca303ed2ad1c6cf400cd9a22.zip u-boot-imx-fafbb2c3e4b35b60ca303ed2ad1c6cf400cd9a22.tar.gz u-boot-imx-fafbb2c3e4b35b60ca303ed2ad1c6cf400cd9a22.tar.bz2 |
add WATCHDOG_RESET to allow LZMA kernel decompression on slow machines
Signed-off-by: rhabarber1848@web.de
Diffstat (limited to 'lib_generic/lzma/LzmaTools.c')
-rw-r--r-- | lib_generic/lzma/LzmaTools.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib_generic/lzma/LzmaTools.c b/lib_generic/lzma/LzmaTools.c index c2a91e5..88ba399 100644 --- a/lib_generic/lzma/LzmaTools.c +++ b/lib_generic/lzma/LzmaTools.c @@ -36,6 +36,7 @@ #include <config.h> #include <common.h> +#include <watchdog.h> #ifdef CONFIG_LZMA @@ -112,6 +113,9 @@ int lzmaBuffToBuffDecompress (unsigned char *outStream, SizeT *uncompressedSize, /* Decompress */ outProcessed = outSizeFull; + + WATCHDOG_RESET(); + res = LzmaDecode( outStream, &outProcessed, inStream + LZMA_DATA_OFFSET, &compressedSize, |