[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Drivemap module

From: Javier Martín
Subject: Re: [PATCH] Drivemap module
Date: Wed, 16 Jul 2008 17:39:03 +0200

El sáb, 05-07-2008 a las 13:04 +0200, Marco Gerards escribió:
> Javier Martín <address@hidden> writes:
> > Just an updated version of the patch that adds support for device-like
> > names instead of raw BIOS disk numbers, i.e. this is now supported:
> >     grub> drivemap (hd0) (hd1)
> > In addition to the already supported:
> >     grub> drivemap (hd0) 0x81
> > The effect is the same: the second BIOS hard drive will map to (hd0)
> > through the installed int13h routine. The new syntax does not require
> > the target device name to exist (hd1 need not exist in my example), and
> > the parsing is very simple: it accepts names like (fdN) and (hdN) with
> > and without parenthesis, and with N ranging from 0 to 127, thus allowing
> > the full 0x00-0xFF range even though most BIOS-probing OSes don't bother
> > going any further than fd7 and hd7 respectively.
> Great!  Can you please send in a changelog entry?
> --
> Marco
What about this:
        * commands/i386/pc/drivemap.c : New file, main part of the new
        drivemap module allowing BIOS drive remapping not unlike the
        legacy "map" command. This allows to boot OSes with boot-time
        dependencies on the particular ordering of BIOS drives or
        trusting their own to be 0x80, like Windows XP, with
        non-standard boot configurations.
        * commands/i386/pc/drivemap_int13h.S : New file, INT 13h handler
        for the drivemap module. Installed as a TSR routine by
        drivemap.c, performs the actual redirection of BIOS drives.
        * conf/i386-pc.rmk : Added the new module
        * include/grub/loader.h : Added a "just-before-boot" callback
        infrastructure used by drivemap.mod to install the INT13 handler
        only when the "boot" command has been issued.
        * kern/loader.c : Implement the preboot-hook described

By the way, I sent the data to the "assign" mail as you instructed me
to, and I've been told I'll receive some GNU copyright assignment
documents to sign-and-return in a few days.

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

reply via email to

[Prev in Thread] Current Thread [Next in Thread]