[syslinux] [PATCH] mboot: set boot loader name
H. Peter Anvin
hpa at zytor.com
Mon Mar 29 13:15:45 PDT 2010
On 03/21/2010 09:27 AM, Sebastian Herbszt wrote:
> Set a pointer to syslinux_version()->version_string in mbinfo.
>
> Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>
>
> diff --git a/com32/mboot/mboot.c b/com32/mboot/mboot.c
> index 8425e06..76ef7a0 100644
> --- a/com32/mboot/mboot.c
> +++ b/com32/mboot/mboot.c
> @@ -222,6 +222,13 @@ int main(int argc, char *argv[])
> /* Add auxilliary information */
> mboot_make_memmap();
> mboot_apm();
> +
> + /* Set boot loader name */
> + const struct syslinux_version *sv;
> + sv = syslinux_version();
> + mbinfo.boot_loader_name = (uint32_t)sv->version_string;
> + mbinfo.flags |= MB_INFO_BOOT_LOADER_NAME;
> +
> if (opt.solaris)
> mboot_solaris_dhcp_hack();
>
Sorry, this doesn't work. You have to map the string, otherwise it is
liable to be overwritten during shuffling.
-hpa
More information about the Syslinux
mailing list