~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to grub-core/loader/i386/multiboot_mbi.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-01-11 17:11:44 UTC
  • mto: (17.6.24 experimental)
  • mto: This revision was merged to the branch mainline in revision 100.
  • Revision ID: james.westby@ubuntu.com-20110111171144-o2h6luxzei5fivmf
Tags: upstream-1.99~20110111
ImportĀ upstreamĀ versionĀ 1.99~20110111

Show diffs side-by-side

added added

removed removed

Lines of Context:
539
539
      mbi->u.elf_sec.shndx = elf_sec_shstrndx;
540
540
 
541
541
      mbi->flags |= MULTIBOOT_INFO_ELF_SHDR;
 
542
 
 
543
      ptrorig += elf_sec_entsize * elf_sec_num;
 
544
      ptrdest += elf_sec_entsize * elf_sec_num;
542
545
    }
543
546
 
544
547
  err = retrieve_video_parameters (mbi, ptrorig, ptrdest);
547
550
      grub_print_error ();
548
551
      grub_errno = GRUB_ERR_NONE;
549
552
    }
 
553
 
 
554
  if ((mbi->flags & MULTIBOOT_INFO_FRAMEBUFFER_INFO)
 
555
      && mbi->framebuffer_type == MULTIBOOT_FRAMEBUFFER_TYPE_INDEXED)
 
556
    {
 
557
      ptrorig += mbi->framebuffer_palette_num_colors
 
558
        * sizeof (struct multiboot_color);
 
559
      ptrdest += mbi->framebuffer_palette_num_colors
 
560
        * sizeof (struct multiboot_color);
 
561
    }
 
562
 
550
563
#if GRUB_MACHINE_HAS_VBE
551
564
  ptrorig += sizeof (struct grub_vbe_info_block);
552
565
  ptrdest += sizeof (struct grub_vbe_info_block);