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

« back to all changes in this revision

Viewing changes to include/grub/offsets.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Evan Broder, Mario Limonciello
  • Date: 2010-11-24 13:59:55 UTC
  • mfrom: (1.17.6 upstream) (17.6.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124135955-r6ii5sepayr7jt53
Tags: 1.99~20101124-1ubuntu1
[ Colin Watson ]
* Resynchronise with Debian experimental.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu.  Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed.  If it is, show the
    menu, otherwise boot immediately.  If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt.  Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Don't generate /boot/grub/device.map during grub-install or
    grub-mkconfig by default.
  - Adjust upgrade version checks for Ubuntu.
  - Don't display "GRUB loading" unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
    our backport of the grub-doc split.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack as well, in
    preference.
  - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
  - Probe all devices in 'grub-probe --target=drive' if
    /boot/grub/device.map is missing.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Use qemu rather than qemu-system-i386.
  - Program vesafb on BIOS systems rather than efifb.
  - Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
    for EFI-AMD64.
  - On Wubi, don't ask for an install device, but just update wubildr
    using the diverted grub-install.
  - When embedding the core image in a post-MBR gap, check for and avoid
    sectors matching any of a list of known signatures.
  - Disable video_bochs and video_cirrus on PC BIOS systems, as probing
    PCI space seems to break on some systems.
* Downgrade "ACPI shutdown failed" error to a debug message, since it can
  cause spurious test failures.

[ Evan Broder ]
* Enable lua from grub-extras.
* Incorporate the bitop library into lua.
* Add enum_pci function to grub module in lua.
* Switch back to gfxpayload=keep by default, unless the video hardware
  is known to not support it.

[ Mario Limonciello ]
* Built part_msdos and vfat into bootx64.efi (LP: #677758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
/* The offset of GRUB_INSTALL_BSD_PART.  */
35
35
#define GRUB_KERNEL_I386_PC_INSTALL_BSD_PART    0x18
36
36
 
37
 
/* The offset of GRUB_PREFIX.  */
38
 
#define GRUB_KERNEL_I386_PC_PREFIX              0x1c
39
 
 
40
 
/* End of the data section. */
41
 
#define GRUB_KERNEL_I386_PC_DATA_END            0x5c
 
37
/* Offset of reed_solomon_redundancy.  */
 
38
#define GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY     0x1c
42
39
 
43
40
/* The size of the first region which won't be compressed.  */
44
 
#define GRUB_KERNEL_I386_PC_RAW_SIZE            (GRUB_KERNEL_I386_PC_DATA_END + 0x5F0)
 
41
#define GRUB_KERNEL_I386_PC_RAW_SIZE            0xc90
 
42
 
 
43
#define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART 0x6f8
 
44
 
 
45
/* The offset of GRUB_PREFIX.  */
 
46
#define GRUB_KERNEL_I386_PC_PREFIX              GRUB_KERNEL_I386_PC_RAW_SIZE
 
47
 
 
48
/* End of the data section. */
 
49
#define GRUB_KERNEL_I386_PC_PREFIX_END          (GRUB_KERNEL_I386_PC_PREFIX + 0x40)
45
50
 
46
51
/* The segment where the kernel is loaded.  */
47
52
#define GRUB_BOOT_I386_PC_KERNEL_SEG    0x800
65
70
#define GRUB_KERNEL_I386_QEMU_PREFIX            0x10
66
71
 
67
72
/* End of the data section. */
68
 
#define GRUB_KERNEL_I386_QEMU_DATA_END          0x50
 
73
#define GRUB_KERNEL_I386_QEMU_PREFIX_END                0x50
69
74
 
70
75
#define GRUB_KERNEL_I386_QEMU_LINK_ADDR         0x8200
71
76
 
82
87
#define GRUB_KERNEL_SPARC64_IEEE1275_PREFIX             0x14
83
88
 
84
89
/* End of the data section. */
85
 
#define GRUB_KERNEL_SPARC64_IEEE1275_DATA_END           0x114
 
90
#define GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END         0x114
86
91
 
87
92
#define GRUB_BOOT_SPARC64_IEEE1275_LIST_SIZE    12
88
93
 
91
96
#define GRUB_KERNEL_SPARC64_IEEE1275_LINK_ADDR 0x4400
92
97
 
93
98
#define GRUB_KERNEL_POWERPC_IEEE1275_PREFIX             0x4
94
 
#define GRUB_KERNEL_POWERPC_IEEE1275_DATA_END   0x44
 
99
#define GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END 0x44
95
100
#define GRUB_KERNEL_POWERPC_IEEE1275_LINK_ALIGN 4
96
101
#define GRUB_KERNEL_POWERPC_IEEE1275_LINK_ADDR 0x200000
97
102
 
99
104
 
100
105
#define GRUB_KERNEL_MIPS_YEELOONG_LINK_ALIGN  32
101
106
 
102
 
#define GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE        0x200
103
 
#define GRUB_KERNEL_MIPS_YEELOONG_COMPRESSED_SIZE        0x8
104
 
#define GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE      0xc
105
 
#define GRUB_KERNEL_MIPS_YEELOONG_KERNEL_IMAGE_SIZE      0x10
 
107
#define GRUB_KERNEL_MIPS_YEELOONG_COMPRESSED_SIZE          0x8
 
108
#define GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE        0xc
106
109
 
107
 
#define GRUB_KERNEL_MIPS_YEELOONG_PREFIX                GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE
108
 
#define GRUB_KERNEL_MIPS_YEELOONG_DATA_END      GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE + 0x48
 
110
#define GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE     0x08
 
111
#define GRUB_KERNEL_MIPS_YEELOONG_PREFIX                0x0c
 
112
#define GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END            0x54
109
113
 
110
114
/* The offset of GRUB_PREFIX.  */
111
115
#define GRUB_KERNEL_I386_EFI_PREFIX             0x8
112
116
 
113
117
/* End of the data section. */
114
 
#define GRUB_KERNEL_I386_EFI_DATA_END           0x50
 
118
#define GRUB_KERNEL_I386_EFI_PREFIX_END         0x50
115
119
 
116
120
/* The offset of GRUB_PREFIX.  */
117
121
#define GRUB_KERNEL_X86_64_EFI_PREFIX           0x8
118
122
 
119
123
/* End of the data section. */
120
 
#define GRUB_KERNEL_X86_64_EFI_DATA_END         0x50
 
124
#define GRUB_KERNEL_X86_64_EFI_PREFIX_END               0x50
121
125
 
122
126
#define GRUB_KERNEL_I386_COREBOOT_PREFIX        0x2
123
 
#define GRUB_KERNEL_I386_COREBOOT_DATA_END      0x42
 
127
#define GRUB_KERNEL_I386_COREBOOT_PREFIX_END    0x42
124
128
#define GRUB_KERNEL_I386_COREBOOT_LINK_ADDR     0x8200
125
129
 
 
130
#define GRUB_KERNEL_I386_MULTIBOOT_PREFIX       GRUB_KERNEL_I386_COREBOOT_PREFIX
 
131
#define GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END   GRUB_KERNEL_I386_COREBOOT_PREFIX_END
 
132
 
126
133
#define GRUB_KERNEL_I386_IEEE1275_PREFIX        0x2
127
 
#define GRUB_KERNEL_I386_IEEE1275_DATA_END      0x42
 
134
#define GRUB_KERNEL_I386_IEEE1275_PREFIX_END    0x42
128
135
#define GRUB_KERNEL_I386_IEEE1275_LINK_ADDR     0x10000
129
136
 
130
137
#define GRUB_KERNEL_I386_IEEE1275_MOD_ALIGN     0x1000
131
138
#define GRUB_KERNEL_I386_COREBOOT_MOD_ALIGN     0x1
 
139
#define GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN    GRUB_KERNEL_I386_COREBOOT_MOD_ALIGN
132
140
 
133
141
/* Non-zero value is only needed for PowerMacs.  */
134
142
#define GRUB_KERNEL_I386_IEEE1275_MOD_GAP 0x0
143
151
   rewrite grub-mkimage to generate valid ELF files.  */
144
152
#define GRUB_KERNEL_POWERPC_IEEE1275_MOD_GAP 0x8000
145
153
 
146
 
#ifdef MACHINE
 
154
#ifdef GRUB_MACHINE
147
155
#define GRUB_OFFSETS_CONCAT_(a,b,c) a ## b ## c
148
156
#define GRUB_OFFSETS_CONCAT(a,b,c) GRUB_OFFSETS_CONCAT_(a,b,c)
149
 
#define GRUB_KERNEL_MACHINE_MOD_ALIGN GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _MOD_ALIGN)
150
 
#define GRUB_KERNEL_MACHINE_MOD_GAP GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _MOD_GAP)
151
 
#define GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _TOTAL_MODULE_SIZE)
152
 
#define GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _KERNEL_IMAGE_SIZE)
153
 
#define GRUB_KERNEL_MACHINE_COMPRESSED_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _COMPRESSED_SIZE)
 
157
#define GRUB_KERNEL_MACHINE_MOD_ALIGN GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _MOD_ALIGN)
 
158
#define GRUB_KERNEL_MACHINE_MOD_GAP GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _MOD_GAP)
 
159
#define GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _TOTAL_MODULE_SIZE)
 
160
#define GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _KERNEL_IMAGE_SIZE)
 
161
#define GRUB_KERNEL_MACHINE_COMPRESSED_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _COMPRESSED_SIZE)
 
162
#define GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _UNCOMPRESSED_SIZE)
154
163
 
155
 
#define GRUB_KERNEL_MACHINE_PREFIX GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _PREFIX)
156
 
#define GRUB_KERNEL_MACHINE_DATA_END GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _DATA_END)
157
 
#define GRUB_BOOT_MACHINE_KERNEL_SEG GRUB_OFFSETS_CONCAT (GRUB_BOOT_, MACHINE, _KERNEL_SEG)
158
 
#define GRUB_MEMORY_MACHINE_UPPER GRUB_OFFSETS_CONCAT (GRUB_MEMORY_, MACHINE, _UPPER)
159
 
#define GRUB_KERNEL_MACHINE_RAW_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _RAW_SIZE)
160
 
#define GRUB_KERNEL_MACHINE_INSTALL_BSD_PART GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _INSTALL_BSD_PART)
161
 
#define GRUB_KERNEL_MACHINE_INSTALL_DOS_PART GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, MACHINE, _INSTALL_DOS_PART)
 
164
#define GRUB_KERNEL_MACHINE_PREFIX GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _PREFIX)
 
165
#define GRUB_KERNEL_MACHINE_PREFIX_END GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _PREFIX_END)
 
166
#define GRUB_BOOT_MACHINE_KERNEL_SEG GRUB_OFFSETS_CONCAT (GRUB_BOOT_, GRUB_MACHINE, _KERNEL_SEG)
 
167
#define GRUB_MEMORY_MACHINE_UPPER GRUB_OFFSETS_CONCAT (GRUB_MEMORY_, GRUB_MACHINE, _UPPER)
 
168
#define GRUB_KERNEL_MACHINE_RAW_SIZE GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _RAW_SIZE)
 
169
#define GRUB_KERNEL_MACHINE_INSTALL_BSD_PART GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _INSTALL_BSD_PART)
 
170
#define GRUB_KERNEL_MACHINE_INSTALL_DOS_PART GRUB_OFFSETS_CONCAT (GRUB_KERNEL_, GRUB_MACHINE, _INSTALL_DOS_PART)
162
171
#endif
163
172
 
164
173
#ifndef ASM_FILE