search for: kernel_buf

Displaying 16 results from an estimated 16 matches for "kernel_buf".

2017 Mar 05
0
[PATCH] Fix recognition of keeppxe option
...> * Note: the resulting string is typically not null-terminated. > + * For boolean arguments, the returned pointer is valid but meaningless. > */ > static const char *find_argument(const char *cmdline, const char *argument) > { > @@ -166,6 +169,7 @@ int bios_boot_linux(void *kernel_buf, si > struct syslinux_memmap *amap = NULL; > uint32_t memlimit = 0; > uint16_t video_mode = 0; > + uint8_t bootflags = 0; > const char *arg; > > cmdline_size = strlen(cmdline) + 1; > @@ -200,6 +204,14 @@ int bios_boot_linux(void *kernel_buf, si &g...
2016 Jun 10
4
[PATCH] Fix recognition of keeppxe option
...ns NULL if there is no match. * Note: the resulting string is typically not null-terminated. + * For boolean arguments, the returned pointer is valid but meaningless. */ static const char *find_argument(const char *cmdline, const char *argument) { @@ -166,6 +169,7 @@ int bios_boot_linux(void *kernel_buf, si struct syslinux_memmap *amap = NULL; uint32_t memlimit = 0; uint16_t video_mode = 0; + uint8_t bootflags = 0; const char *arg; cmdline_size = strlen(cmdline) + 1; @@ -200,6 +204,14 @@ int bios_boot_linux(void *kernel_buf, si } } + if (syslinux_filesyste...
2013 Dec 04
0
Boot iPXE from syslinux/isolinux
...- return (0x9ff0 - cmdline_size) & ~15; + return min(start - base, max_offset) & ~15; } - return 0x10000; + dprintf("Unable to find lowmem for cmdline\n"); + return (0x9ff0 - cmdline_size) & ~15; /* Legacy value: pure hope... */ } int bios_boot_linux(void *kernel_buf, size_t kernel_size, @@ -159,7 +156,7 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size, { struct linux_header hdr, *whdr; size_t real_mode_size, prot_mode_size, base; - addr_t real_mode_base, prot_mode_base; + addr_t real_mode_base, prot_mode_base, prot_mode_max; ad...
2013 Mar 27
1
[PATCH] Fix support for Linux kernel images with no protected mode code
...+++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c index 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) != S...
2013 Dec 04
2
Boot iPXE from syslinux/isolinux
"H. Peter Anvin" <hpa at zytor.com> on Tue, 2013/12/03 20:26: > On 10/24/2013 01:09 AM, Christian Hesse wrote: > >>> > >>> version 6.02-pre5 works, 6.02-pre6 does not. > >> > >> Struggled with git bisect, but finally succeeded: > >> > >> 8f470e7bfe75f6401f6c5432988c620b863ad274 is the first bad commit > >>
2012 Dec 09
3
Unable to boot Linux kernel in from Syslinux 6.00-pre efi64
Hi, Line 762 of efi/main.c (git firmware branch) should be changed to if (hdr->version < 0x20b) { Without this change syslinux efi64 gives out "handover protocol unimplemented error" and fails to boot. With this change syslinux boots the kernels fine (tested with 3.6.9 and 3.7rc6 kernels). Please fix this. Thanks in advance. Regards. Keshav
2016 Mar 20
0
[PATCH 0/1] EFI image booting capabilities
...include <syslinux/linux.h> > +#include <syslinux/bootrm.h> > +#include <syslinux/movebits.h> > +#include <syslinux/firmware.h> > +#include <syslinux/video.h> > + Seems like a lot of unnecessary #includes. > + > + > +int syslinux_boot_efi(void *kernel_buf, size_t kernel_size, > + char *cmdline, int cmdlineSize) > +{ > + if (firmware->boot_efi) > + return firmware->boot_efi(kernel_buf, kernel_size, cmdline, cmdlineSize); > + > + return -1; > +} Seems good otherwise. > diff -upr...
2015 Feb 05
4
[PATCH] load_linux: correct a type
...d_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c index 06ae2a9..ac73729 100644 --- a/com32/lib/syslinux/load_linux.c +++ b/com32/lib/syslinux/load_linux.c @@ -155,8 +155,8 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size, char *cmdline) { struct linux_header hdr, *whdr; - size_t real_mode_size, prot_mode_size, base; - addr_t real_mode_base, prot_mode_base, prot_mode_max; + size_t real_mode_size, prot_mode_size; + addr_t real_mode_base, prot_mode_base, prot_mode_max, base...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
...ffix_number.h> +#include <dprintf.h> + +#include <syslinux/align.h> +#include <syslinux/linux.h> +#include <syslinux/bootrm.h> +#include <syslinux/movebits.h> +#include <syslinux/firmware.h> +#include <syslinux/video.h> + + + +int syslinux_boot_efi(void *kernel_buf, size_t kernel_size, + char *cmdline, int cmdlineSize) +{ + if (firmware->boot_efi) + return firmware->boot_efi(kernel_buf, kernel_size, cmdline, cmdlineSize); + + return -1; +} diff -uprN a/efi/main.c b/efi/main.c --- a/efi/main.c 2014-10-06 10:27:44.000000000 -0600 +++ b/efi/main.c...
2009 Mar 12
0
[PATCH 1/1] linux.c32: Fix initrd alignment
...x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c index b772056..d09a2cb 100644 --- a/com32/lib/syslinux/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 &...
2015 Feb 08
0
[PATCH] load_linux: relocate protected-mode code as intended
...m32/lib/syslinux/load_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c index 06ae2a9..5cecef4 100644 --- a/com32/lib/syslinux/load_linux.c +++ b/com32/lib/syslinux/load_linux.c @@ -323,6 +323,7 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size, } whdr->code32_start += base - prot_mode_base; + prot_mode_base = base; /* Real mode code */ if (syslinux_memmap_find(amap, &real_mode_base, -- 2.3.0-rc2
2013 Nov 26
0
QEMU dies on any attempt to load a Linux kernel module when using a 9P rootfs
...lt; 1024) */ - if (clnt->trans_mod->zc_request && rsize > 1024) { + if (clnt->trans_mod->zc_request && rsize > 1024 && + !(udata >= (char __user *)VMALLOC_START && + udata < (char __user *)VMALLOC_END)) { char *indata; if (data) { kernel_buf = 1; -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 901 bytes Desc: OpenPGP digital signature URL: <http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20131126/6b10a1b1/attachment.sig>
2010 May 19
3
[PATCH] com32/lib/syslinux/load_linux.c: cmdline truncated
...its as runkernel.inc does. Signed-off-by: Bodo Stroesser <bstroesser at ts.fujitsu.com> ---- --- a/com32/lib/syslinux/load_linux.c 2010-05-18 23:00:11.000000000 +0200 +++ b/com32/lib/syslinux/load_linux.c 2010-05-18 23:10:15.000000000 +0200 @@ -289,8 +289,15 @@ int syslinux_boot_linux(void *kernel_buf if (hdr.version < 0x0205 || !(hdr.loadflags & LOAD_HIGH)) hdr.relocatable_kernel = 0; - if (hdr.version < 0x0206) + if (hdr.version < 0x0202) hdr.cmdline_max_len = 256; + else if (hdr.version < 0x0206) + /* if (!(hdr.loadflags & 0x01)) + * hdr.cmdline_m...
2013 Nov 26
2
QEMU dies on any attempt to load a Linux kernel module when using a 9P rootfs
Hi Richard, On 11/25/2013 04:50 PM, Richard Yao wrote: > I figured out the problem. There is zerocopy IO is being done via DMA to > a buffer allocated with valloc(). Right now, I am running a hack-fix > locally so I can get some other stuff done first. I will propose a > proper fix to the list in a few days. I've also encountered this issue on a non-QEMU simulator and have been
2013 Nov 26
2
QEMU dies on any attempt to load a Linux kernel module when using a 9P rootfs
Hi Richard, On 11/25/2013 04:50 PM, Richard Yao wrote: > I figured out the problem. There is zerocopy IO is being done via DMA to > a buffer allocated with valloc(). Right now, I am running a hack-fix > locally so I can get some other stuff done first. I will propose a > proper fix to the list in a few days. I've also encountered this issue on a non-QEMU simulator and have been
2015 Feb 10
6
[PATCH 0/6] fix some compiler warnings
These patches fix a few compiler warnings. Tested on top of commit aee0dc5565711ef5be7c30fb5fc1c5f3f98db09f Jonathan Boeing (6): Use z width specifier when printing size_t variable pxe: fix truncation warning gpllib: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse com32/gpllib/dmi/dmi.c | 24 +++---