Displaying 6 results from an estimated 6 matches for "prot_mode_size".
2013 Mar 27
1
[PATCH] Fix support for Linux kernel images with no protected mode code
...slinux/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_size,
}
/* Protected-mode co...
2015 Feb 06
2
regression: relocatable kernels on a chromebook
...ba CB35 Chromebook running Google's stock SeaBIOS reboots 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
ke...
2013 Dec 04
0
Boot iPXE from syslinux/isolinux
...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;
addr_t irf_size;
size_t cmdline_size, cmdline_offset;
struct setup_data *sdp;
@@ -243,9 +240,19 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size,
real_mode_si...
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
> >>
2015 Feb 06
0
regression: relocatable kernels on a chromebook
...39;s stock SeaBIOS reboots 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_r...
2015 Feb 05
4
[PATCH] load_linux: correct a type
...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;
addr_t irf_size;
size_t cmdline_size, cmdline_offset;
struct setup_data *sdp;
--
2.3.0-rc2