Displaying 1 result from an estimated 1 matches for "best_addr".
Did you mean:
dest_addr
2009 Mar 12
0
[PATCH 1/1] linux.c32: Fix initrd alignment
...load_linux.c
+++ b/com32/lib/syslinux/load_linux.c
@@ -292,7 +292,7 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_size,
addr_t adj_start = (ml->start+align_mask) & ~align_mask;
if (ml->type == SMT_FREE &&
ml->next->start - adj_start >= irf_size)
- best_addr = (ml->next->start - irf_size) & ~align_mask;
+ best_addr = ((ml->next->start & ~align_mask) - irf_size) & ~align_mask;
}
if (!best_addr)
--
1.5.4.3