syslinux.git-83aad4f.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 83aad4f69065509ba5b1c080edccfed316a4cff0 Mon Sep 17 00:00:00 2001
  2. From: Scot Doyle <lkml14@scotdoyle.com>
  3. Date: Sat, 7 Feb 2015 13:52:05 -0500
  4. Subject: [PATCH] load_linux: correct a type
  5. Correct base's type to match its initialization from prot_mode_base and
  6. passage to syslinux_memmap_find(). Tested with extlinux.
  7. Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>
  8. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  9. ---
  10. com32/lib/syslinux/load_linux.c | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c
  13. index 06ae2a9..ac73729 100644
  14. --- a/com32/lib/syslinux/load_linux.c
  15. +++ b/com32/lib/syslinux/load_linux.c
  16. @@ -155,8 +155,8 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size,
  17. char *cmdline)
  18. {
  19. struct linux_header hdr, *whdr;
  20. - size_t real_mode_size, prot_mode_size, base;
  21. - addr_t real_mode_base, prot_mode_base, prot_mode_max;
  22. + size_t real_mode_size, prot_mode_size;
  23. + addr_t real_mode_base, prot_mode_base, prot_mode_max, base;
  24. addr_t irf_size;
  25. size_t cmdline_size, cmdline_offset;
  26. struct setup_data *sdp;
  27. --
  28. 2.7.4.GIT