Home | History | Annotate | Download | only in image

Lines Matching refs:hdr

312  * @v hdr		Multiboot header descriptor to fill in
316 struct multiboot_header_info *hdr ) {
340 copy_from_user ( &hdr->mb, image->data, offset,
341 sizeof ( hdr->mb ) );
342 checksum = ( hdr->mb.magic + hdr->mb.flags +
343 hdr->mb.checksum );
347 hdr->offset = offset;
359 * @v hdr Multiboot header descriptor
363 struct multiboot_header_info *hdr ) {
371 if ( ! ( hdr->mb.flags & MB_FLAG_RAW ) ) {
378 offset = ( hdr->offset - hdr->mb.header_addr + hdr->mb.load_addr );
379 filesz = ( hdr->mb.load_end_addr ?
380 ( hdr->mb.load_end_addr - hdr->mb.load_addr ) :
382 memsz = ( hdr->mb.bss_end_addr ?
383 ( hdr->mb.bss_end_addr - hdr->mb.load_addr ) : filesz );
384 buffer = phys_to_user ( hdr->mb.load_addr );
395 image->priv.phys = hdr->mb.entry_addr;
426 struct multiboot_header_info hdr;
430 if ( ( rc = multiboot_find_header ( image, &hdr ) ) != 0 ) {
436 image, hdr.mb.flags );
443 if ( hdr.mb.flags & MB_UNSUPPORTED_FLAGS ) {
445 image, ( hdr.mb.flags & MB_UNSUPPORTED_FLAGS ) );
455 ( ( rc = multiboot_load_raw ( image, &hdr ) ) != 0 ) )