Lines Matching refs:hdr
188 boot_img_hdr *hdr = (void*) kernel_addr;
194 if((kernel_size < 2048) || memcmp(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)){
199 if(hdr->page_size != 2048) {
204 kernel_actual = (hdr->kernel_size + page_mask) & (~page_mask);
205 ramdisk_actual = (hdr->ramdisk_size + page_mask) & (~page_mask);
206 second_actual = (hdr->second_size + page_mask) & (~page_mask);
214 if(hdr->cmdline[0]){
215 hdr->cmdline[BOOT_ARGS_SIZE - 1] = 0;
216 memcpy(cmdline, hdr->cmdline, BOOT_ARGS_SIZE);
220 ramdisk_addr = hdr->ramdisk_addr;
221 ramdisk_size = hdr->ramdisk_size;
223 kernel_addr = hdr->kernel_addr;
224 kernel_size = hdr->kernel_size;
232 hdr->magic + 2048 + kernel_actual,
236 hdr->magic + 2048,