Lines Matching refs:mbh
103 struct multiboot_header *mbh; in map_image() local
117 mbh = (struct multiboot_header *)((char *)ptr + mbh_offset); in map_image()
118 if (mbh->magic != MULTIBOOT_MAGIC) in map_image()
120 if (mbh->magic + mbh->flags + mbh->checksum) in map_image()
122 if (mbh->flags & MULTIBOOT_VIDEO_MODE) in map_image()
124 else if (mbh->flags & MULTIBOOT_AOUT_KLUDGE) in map_image()
136 bad_flags = mbh->flags & MULTIBOOT_UNSUPPORTED; in map_image()
164 if (eh && !(opt.aout && mbh_len && (mbh->flags & MULTIBOOT_AOUT_KLUDGE))) { in map_image()
268 } else if (mbh_len && (mbh->flags & MULTIBOOT_AOUT_KLUDGE)) { in map_image()
276 regs.eip = mbh->entry_addr; in map_image()
278 data_ptr = (char *)mbh - (mbh->header_addr - mbh->load_addr); in map_image()
280 if (mbh->load_end_addr) in map_image()
281 data_len = mbh->load_end_addr - mbh->load_addr; in map_image()
283 data_len = len - mbh_offset + (mbh->header_addr - mbh->load_addr); in map_image()
285 bss_addr = mbh->load_addr + data_len; in map_image()
287 if (mbh->bss_end_addr) in map_image()
288 bss_len = mbh->bss_end_addr - mbh->load_end_addr; in map_image()
292 if (syslinux_memmap_type(amap, mbh->load_addr, data_len + bss_len) in map_image()
295 mbh->load_addr, data_len + bss_len); in map_image()
298 if (syslinux_add_memmap(&amap, mbh->load_addr, in map_image()
304 if (syslinux_add_movelist(&ml, mbh->load_addr, (addr_t) data_ptr, in map_image()
323 return mbh; in map_image()