[syslinux] [PATCH] gfxboot.c: gfx_media_type setting implementedfor isolinux
Sebastian Herbszt
herbszt at gmx.de
Sat May 29 12:06:51 PDT 2010
Anton V. Boyarshinov wrote:
> Hello
> Here is a small patch, implementing gfx_media_type calculation when
> isolinux is used.
What about SYSLINUX and EXTLINUX?
> Reagrds,
> Anton
>
>
>>From a58d7222c5ddf23bbea91b0356c872b6877798cc Mon Sep 17 00:00:00 2001
> From: Anton V. Boyarshinov <boyarsh at altlinux.org>
> Date: Thu, 27 May 2010 12:50:17 +0400
> Subject: [PATCH] gfxboot.c: gfx_media_type setting implemented for isolinux
>
> ---
> com32/gfxboot/gfxboot.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
> index a6c95fe..ae34598 100644
> --- a/com32/gfxboot/gfxboot.c
> +++ b/com32/gfxboot/gfxboot.c
> @@ -197,6 +197,10 @@ int main(int argc, char **argv)
> __intcall(0x22, &r, &r);
> gfx_config.sector_shift = (uint8_t) r.ecx.l;
> gfx_config.boot_drive = (uint8_t) r.edx.l;
> +
> + if(r.eax.l == 0x33) { // isolinux
syslinux_id == SYSLINUX_FS_ISOLINUX ?
> + gfx_config.media_type = (uint8_t) r.ecx.b[1]?0:2; //CD if El Torito, else HD
> + }
>
> if(syslinux_id == SYSLINUX_FS_PXELINUX) {
> gfx_config.sector_shift = 11;
> --
> 1.7.0.4
Sebastian
More information about the Syslinux
mailing list