int uImage_arm_load(int argc, char **argv, const char *buf, off_t len, struct kexec_info *info) { /* * If len is zero then call zImage_arm_load with len zero, * else adjust for size of image_header struct. */ if (len > 0) len -= sizeof(struct image_header); return zImage_arm_load(argc, argv, buf + sizeof(struct image_header), len, info); }
int uImage_arm_load(int argc, char **argv, const char *buf, off_t len, struct kexec_info *info) { return zImage_arm_load(argc, argv, buf + sizeof(struct image_header), len - sizeof(struct image_header), info); }