41 #define IMAGE_STEP 0x100
72 #ifdef UBOOT_APPLIC_NAME_START
74 const char uboot_applic_name_str[] = UBOOT_APPLIC_NAME_START;
75 #endif // UBOOT_APPLIC_NAME_START
89 #ifdef UBOOT_APPLIC_NAME_START
90 if (memcmp (image_get_name(img_hdr),uboot_applic_name_str) == 0)
133 unsigned int p = (
unsigned int ) ptr;
134 return (
void * )(p & (~(0x3)));
139 void * dst = image_get_load(img);
146 #if defined(USE_COMP)
153 return image_get_ep(img);
158 return image_get_load((
struct image_header * )src_address);
184 return (hcrc == image_get_hcrc(hdr));
193 return (dcrc == image_get_dcrc(hdr));
228 if (*src == (magic_num& 0xFF)){
230 uint_fast32_t data = *(
uint32_t *) src;
231 if (data == magic_num)