[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Ensure boot CD can be accessed
From: |
Bean |
Subject: |
Re: [PATCH] Ensure boot CD can be accessed |
Date: |
Sun, 10 Feb 2008 20:37:36 +0800 |
On Feb 10, 2008 8:23 PM, Christian Franke <address@hidden> wrote:
> Detecting BIOS CD device by INT13 "Check Extensions" (AH=42) call does
> not work for all BIOSes.
>
> This patch fixes this to allow access to the boot CD.
>
> See also thread "[PATCH] Create floppy emulation boot CD with
> grub-mkimage". The "(cd0" patch from Bean is not included here but
> should also be applied.
>
> Christian
>
> 2008-02-10 Christian Franke <address@hidden>
>
> * disk/i386/pc/biosdisk.c: Include <grub/machine/kernel.h>.
> (GRUB_MOD_INIT): Make boot CD accessible even if BIOS does not report
> INT13 Extensions for grub_boot_drive.
> * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
> Change from 0xe0 to 0x9f to cover more BIOS variants.
> * include/grub/i386/pc/kernel.h (grub_boot_drive): Add EXPORT_VAR.
i think we can assume grub_boot_drive as (cd0) if it's within range,
and start scanning from grub_boot_drive + 1.
--
Bean