Skip to content
Snippets Groups Projects
  1. Apr 22, 2015
  2. Jan 14, 2015
  3. Sep 03, 2013
  4. Jul 24, 2013
  5. Apr 30, 2012
  6. Apr 12, 2011
  7. Oct 12, 2010
    • Stefan Roese's avatar
      zlib/gunzip: Use WATCHDOG_RESET macro · f8526286
      Stefan Roese authored
      
      As usually done in U-Boot, the watchdog_reset code is called via a
      macro (WATCHDOG_RESET). In zlib.c this was done differently, by using
      a function pointer which is initialized with WATCHDOG_RESET upon watchdog
      usage or with NULL otherwise. This patch now uses the plain
      WATCHDOG_RESET macros to call the function resulting in slightly smaller
      U-Boot images and simpler code.
      
      U-Boot code size reduction:
      
      PowerPC board with watchdog support (lwmon5):
      -> 80 bytes smaller image size
      
      PowerPC board without watchdog support (sequoia):
      -> 112 bytes smaller image size
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Detlev Zundel <dzu@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      f8526286
  8. Apr 13, 2010
  9. Dec 21, 2009
  10. Apr 30, 2009
    • Ricardo Ribalda's avatar
      lib_generic: gunzip: New function zunzip · 35f6a943
      Ricardo Ribalda authored
      
      Separate gunzip in
      
      gunzip: Find the end of the header and call zunzip.
      zunzip: Inflate gunzip block without header.
      
      UBI fs blocks can be compresed in lzo, zlib or no-compression. The
      current implementation of u-boot supported all the compressions but
      there was a bug in the implementation of the zlib blocks.
      
      UBIFS's Zlib blocks do not have header but they were compressed using
      gunzip, a function used to decompress gunzip files/sectors with a
      header.
      
      This patch adds a new function zunzip that uncompress a zlib block with
      no header.
      
      Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@uam.es>
      35f6a943
  11. Apr 04, 2009
  12. Jan 27, 2009
    • Matthias Fuchs's avatar
      Fix gunzip in case of insufficient output buffer · 107b801c
      Matthias Fuchs authored
      
      U-Boot's gunzip() function does not handle the return code
      of zlib's inflate() function correctly. gunzip() is implemented
      to uncompress all input data in one run. So the correct return
      code for the good case is Z_STREAM_END. In case of insufficient
      output buffer memory inflate returns Z_OK. For gunzip() this
      is an error.
      
      It also makes sense to me to call inflateEnd() also in case
      of an error.
      
      Signed-off-by: default avatarMatthias Fuchs <matthias.fuchs@esd-electronics.com>
      107b801c
  13. Aug 29, 2008
  14. Feb 07, 2008
Loading