diff options
author | Bartlomiej Sieka <tur@semihalf.com> | 2008-04-18 12:39:23 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-24 17:21:55 +0200 |
commit | edbed247a14d70b94958010f736621212285de91 (patch) | |
tree | 9a12403755db2dfe959f5b0133b05bc69d0db4f5 /include/image.h | |
parent | 0a0b606faaec4afb3f750b09aa4df1e40a39dcb8 (diff) | |
download | bootable_bootloader_goldelico_gta04-edbed247a14d70b94958010f736621212285de91.zip bootable_bootloader_goldelico_gta04-edbed247a14d70b94958010f736621212285de91.tar.gz bootable_bootloader_goldelico_gta04-edbed247a14d70b94958010f736621212285de91.tar.bz2 |
Memory footprint optimizations
As suggested by Wolfgang Denk:
- image printing functions:
- remove wrappers
- remove indentation prefix from functions' signatures
- merge getenv_verify and getenv_autostart into one parametrized function
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/image.h b/include/image.h index 60fdb2b..4076484 100644 --- a/include/image.h +++ b/include/image.h @@ -364,8 +364,7 @@ int image_check_hcrc (image_header_t *hdr); int image_check_dcrc (image_header_t *hdr); #ifndef USE_HOSTCC int image_check_dcrc_wd (image_header_t *hdr, ulong chunksize); -int getenv_verify (void); -int getenv_autostart (void); +int getenv_yesno (char *var); ulong getenv_bootm_low(void); ulong getenv_bootm_size(void); void memmove_wd (void *to, void *from, size_t len, ulong chunksz); @@ -392,8 +391,7 @@ ulong image_multi_count (image_header_t *hdr); void image_multi_getimg (image_header_t *hdr, ulong idx, ulong *data, ulong *len); -inline void image_print_contents (image_header_t *hdr); -inline void image_print_contents_noindent (image_header_t *hdr); +void image_print_contents (image_header_t *hdr); #ifndef USE_HOSTCC static inline int image_check_target_arch (image_header_t *hdr) @@ -469,8 +467,7 @@ inline int fit_parse_conf (const char *spec, ulong addr_curr, inline int fit_parse_subimage (const char *spec, ulong addr_curr, ulong *addr, const char **image_name); -inline void fit_print_contents (const void *fit); -inline void fit_print_contents_noindent (const void *fit); +void fit_print_contents (const void *fit); void fit_image_print (const void *fit, int noffset, const char *p); void fit_image_print_hash (const void *fit, int noffset, const char *p); |