~ubuntu-branches/ubuntu/wily/grub2/wily-proposed

« back to all changes in this revision

Viewing changes to loader/i386/efi/linux.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Zielcke, Robert Millan, Felix Zielcke
  • Date: 2010-01-26 19:26:25 UTC
  • mfrom: (1.13.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126192625-coq6czap2ofjollf
Tags: 1.98~20100126-1
* New Bazaar snapshot.
  - Includes mipsel-yeeloong port.

[ Robert Millan ]
* config.in: Lower priority of grub2/linux_cmdline_default.

[ Felix Zielcke ]
* Drop `CFLAGS=-O0' workaround on powerpc. Should be fixed correctly now.
* Ship grub-bin2h and grub-script-check in grub-common.
* Terminate NEWS.Debian with a blank line like lintian would suggest
  if that check would be working correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  GRUB  --  GRand Unified Bootloader
3
 
 *  Copyright (C) 2006,2007,2008,2009  Free Software Foundation, Inc.
 
3
 *  Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
4
4
 *
5
5
 *  GRUB is free software: you can redistribute it and/or modify
6
6
 *  it under the terms of the GNU General Public License as published by
478
478
    {
479
479
      grub_pci_address_t addr;
480
480
 
481
 
      addr = grub_pci_make_address (dev, 2);
 
481
      addr = grub_pci_make_address (dev, GRUB_PCI_REG_CLASS);
482
482
      if (grub_pci_read (addr) >> 24 == 0x3)
483
483
        {
484
484
          int i;
587
587
  params->reserved_mask_size = 8;
588
588
  params->reserved_field_pos = 24;
589
589
 
590
 
  params->have_vga = GRUB_VIDEO_TYPE_VLFB;
 
590
  params->have_vga = GRUB_VIDEO_LINUX_TYPE_VESA;
591
591
  params->vid_mode = 0x338;  /* 1024x768x32  */
592
592
 
593
593
  return 0;
676
676
      goto fail;
677
677
    }
678
678
 
679
 
  /* XXX Linux assumes that only elilo can boot Linux on EFI!!!  */
680
 
  params->type_of_loader = (LINUX_LOADER_ID_ELILO << 4);
 
679
  params->type_of_loader = (LINUX_LOADER_ID_GRUB << 4);
681
680
 
682
681
  params->cl_magic = GRUB_LINUX_CL_MAGIC;
683
682
  params->cl_offset = 0x1000;
852
851
    else if (grub_memcmp (argv[i], "video=efifb", 11) == 0)
853
852
      {
854
853
        if (params->have_vga)
855
 
          params->have_vga = GRUB_VIDEO_TYPE_EFI;
 
854
          params->have_vga = GRUB_VIDEO_LINUX_TYPE_SIMPLE;
856
855
      }
857
856
 
858
857
  /* Specify the boot file.  */