OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../grub/grub-0.97-initrdmax.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- grub-0.96/stage2/boot.c
  17. +++ grub-0.96/stage2/boot.c
  18. @@ -824,8 +824,11 @@
  19. moveto = (mbi.mem_upper + 0x400) << 10;
  20. moveto = (moveto - len) & 0xfffff000;
  21. - max_addr = (lh->header == LINUX_MAGIC_SIGNATURE && lh->version >= 0x0203
  22. - ? lh->initrd_addr_max : LINUX_INITRD_MAX_ADDRESS);
  23. + max_addr = LINUX_INITRD_MAX_ADDRESS;
  24. + if (lh->header == LINUX_MAGIC_SIGNATURE &&
  25. + lh->version >= 0x0203 &&
  26. + lh->initrd_addr_max < max_addr)
  27. + max_addr = lh->initrd_addr_max;
  28. if (moveto + len >= max_addr)
  29. moveto = (max_addr - len) & 0xfffff000;