search for: syslinux_memmap_type

Displaying 6 results from an estimated 6 matches for "syslinux_memmap_type".

2015 Feb 06
2
regression: relocatable kernels on a chromebook
...after selecting a relocatable kernel from extlinux 6.03. This is a regression caused by commit 8f470e7b movebits: Add syslinux_memmap_find() which factors syslinux_memmap_find() out of bios_boot_linux(). Prior to the refactoring, prot_mode_size was passed as the length in the first call to syslinux_memmap_type(). After the refactoring, hdr.init_size was passed. Now, with commit ef81a3ad, one or the other is passed according to whether the kernel is relocatable. bios_boot_linux() reaches syslinux_shuffle_boot_rm(), rebooting if the kernel is relocatable and successfully starting the kernel if not. If...
2015 Feb 06
0
regression: relocatable kernels on a chromebook
...el from extlinux 6.03. > > This is a regression caused by commit 8f470e7b > movebits: Add syslinux_memmap_find() > > which factors syslinux_memmap_find() out of bios_boot_linux(). Prior to > the refactoring, prot_mode_size was passed as the length in the first call > to syslinux_memmap_type(). After the refactoring, hdr.init_size was > passed. Now, with commit ef81a3ad, one or the other is passed according to > whether the kernel is relocatable. > > bios_boot_linux() reaches syslinux_shuffle_boot_rm(), rebooting if the > kernel is relocatable and successfully starti...
2013 Mar 27
1
[PATCH] Fix support for Linux kernel images with no protected mode code
...471d8a5..04a5210 100644 --- a/com32/lib/syslinux/load_linux.c +++ b/com32/lib/syslinux/load_linux.c @@ -324,7 +324,8 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_size, /* Place the kernel in memory */ /* First, find a suitable place for the protected-mode code */ - if (syslinux_memmap_type(amap, prot_mode_base, prot_mode_size) + if (prot_mode_size && + syslinux_memmap_type(amap, prot_mode_base, prot_mode_size) != SMT_FREE) { const struct syslinux_memmap *mp; if (!hdr.relocatable_kernel) @@ -423,12 +424,15 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_siz...
2014 Nov 22
3
Use z size specifier for printf-ing size_t variable
...int boot_raw(void *ptr, size_t len, addr_t where, char **argv) dprintf("Initial memory map:\n"); syslinux_dump_memmap(mmap); - dprintf("Segment at 0x%08x len 0x%08x\n", where, len); + dprintf("Segment at 0x%08x len 0x%08zx\n", where, len); if (syslinux_memmap_type(amap, where, len) != SMT_FREE) { - printf("Memory segment at 0x%08x (len 0x%08x) is unavailable\n", + printf("Memory segment at 0x%08x (len 0x%08zx) is unavailable\n", where, len); goto bail; /* Memory region unavailable */ } diff --git a/com32/sysdump/dmi.c b/c...
2015 Oct 10
3
[PATCH] Extend Multiboot1 with support for ELF64 file format
...esz); + + if (eh64->e_entry >= ph64->p_vaddr + && eh64->e_entry < ph64->p_vaddr + msize) + regs.eip = eh64->e_entry + (ph64->p_paddr - ph64->p_vaddr); + + dprintf("Segment at 0x%08x data 0x%08x len 0x%08x\n", + addr, dsize, msize); + + if (syslinux_memmap_type(amap, addr, msize) != SMT_FREE) { + printf + ("Memory segment at 0x%08x (len 0x%08x) is unavailable\n", + addr, msize); + return NULL; /* Memory region unavailable */ + } + + /* Mark this region as allocated in the available map */ + if (syslinux_add_memmap(&amap, ad...
2015 Jan 25
0
Use z size specifier for printf-ing size_t variable
...len, addr_t where, char **argv) > dprintf("Initial memory map:\n"); > syslinux_dump_memmap(mmap); > > - dprintf("Segment at 0x%08x len 0x%08x\n", where, len); > + dprintf("Segment at 0x%08x len 0x%08zx\n", where, len); > > if (syslinux_memmap_type(amap, where, len) != SMT_FREE) { > - printf("Memory segment at 0x%08x (len 0x%08x) is unavailable\n", > + printf("Memory segment at 0x%08x (len 0x%08zx) is unavailable\n", > where, len); > goto bail; /* Memory region un...