Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

gunzip.c

Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Stefan Roese's avatar
    f8526286
    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
    History
    zlib/gunzip: Use WATCHDOG_RESET macro
    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>