Magellan Linux

Annotation of /trunk/grub/patches/grub-0.97-initrdmax.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 1 month ago) by niro
File size: 528 byte(s)
-import

1 niro 144 --- grub-0.94/stage2/boot.c.initrdmax 2004-02-25 13:49:00.801945416 -0500
2     +++ grub-0.94/stage2/boot.c 2004-02-25 13:49:25.267226128 -0500
3     @@ -810,8 +810,12 @@
4     moveto = (mbi.mem_upper + 0x400) << 10;
5    
6     moveto = (moveto - len) & 0xfffff000;
7     +#if 0
8     max_addr = (lh->header == LINUX_MAGIC_SIGNATURE && lh->version >= 0x0203
9     ? lh->initrd_addr_max : LINUX_INITRD_MAX_ADDRESS);
10     +#else
11     + max_addr = LINUX_INITRD_MAX_ADDRESS;
12     +#endif
13     if (moveto + len >= max_addr)
14     moveto = (max_addr - len) & 0xfffff000;
15