From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KJ95q-0008QE-FS for mharc-grub-devel@gnu.org; Wed, 16 Jul 2008 11:39:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJ95o-0008Q7-Oz for grub-devel@gnu.org; Wed, 16 Jul 2008 11:39:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJ95m-0008Pv-CN for grub-devel@gnu.org; Wed, 16 Jul 2008 11:38:59 -0400 Received: from [199.232.76.173] (port=47914 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ95m-0008Ps-60 for grub-devel@gnu.org; Wed, 16 Jul 2008 11:38:58 -0400 Received: from rv-out-0708.google.com ([209.85.198.249]:55426) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJ95l-0004Vb-Qs for grub-devel@gnu.org; Wed, 16 Jul 2008 11:38:58 -0400 Received: by rv-out-0708.google.com with SMTP id k29so6299476rvb.6 for ; Wed, 16 Jul 2008 08:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=IkinOJpVrl8VCwqouXQKKYgs8VcEGsIe2VIQvenjt64=; b=cuWgu/jTYXXIpgCi7eDMJAsf4n+9yXgecBT9UDC5cwKQ9QXWu7nMBXB1sDNSysbwwD mGScynCR5DWpuJhoDlQNfYS42YNV6fGdolCUE1vbRFqBeudMn4+c/cddXw2cGlQPqhNv LeAtJiwF29p6nyo7GBcOokZ7FqPYSH6uXsd7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=rKk4QiBmoMDg3vspFAosxY8wEFXUhr8w+arnK+vVX+uUT/HXOSE41oOufTch3IKdgX 4LcZyvLCLrkOjF4LH4TZsPMziXs3L7YIq8y/A2z+O8G0g38rK24fHxUROSC2D2auaov/ vXYGFeOZffP7WqdPhtKJe8/FfeOhUodz6k8Ec= Received: by 10.141.210.21 with SMTP id m21mr249814rvq.23.1216222736516; Wed, 16 Jul 2008 08:38:56 -0700 (PDT) Received: from ?192.168.1.100? ( [213.37.137.93]) by mx.google.com with ESMTPS id 9sm2420660wrl.31.2008.07.16.08.38.54 (version=SSLv3 cipher=RC4-MD5); Wed, 16 Jul 2008 08:38:55 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: <87lk0gfv7d.fsf@xs4all.nl> References: <1215137528.26019.58.camel@localhost> <87lk0gfv7d.fsf@xs4all.nl> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XCb7IcDTvinV9siZouCj" Date: Wed, 16 Jul 2008 17:39:03 +0200 Message-Id: <1216222743.13612.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] Drivemap module X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2008 15:39:00 -0000 --=-XCb7IcDTvinV9siZouCj Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable El s=C3=A1b, 05-07-2008 a las 13:04 +0200, Marco Gerards escribi=C3=B3: > Javier Mart=C3=ADn writes: >=20 > > 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 allowin= g > > the full 0x00-0xFF range even though most BIOS-probing OSes don't bothe= r > > going any further than fd7 and hd7 respectively. >=20 > Great! Can you please send in a changelog entry? >=20 > -- > 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. --=-XCb7IcDTvinV9siZouCj Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQIVAwUASH4WF6Sl+Fbdeo72AQI41w//SYi6CYdhGB/496dx6HMuMijm9RRjhNj6 HDf7ID8wbNtRkJEcj/rwhTzF7l3adHxlmbBIvg6Sd4oERJfPYDjQS6A91ioJ7pJz WXmA2mLdNaPS+VNFQTbKOJ41VkXqqgLDDEFTwI29/hEXinciSjXlfrJQlAIJYnZV XBZwVz18gyyP8FS7NS77KzhuiAv4r0z503/v/ysZtigp9ymSeKn/KKKkMS3LgPGE cQpPY9VsQnd/36Eh0s5WZsgQX6nARxfHIH6y8EKx8r038Yc/sN+99vuwdblR1b2r 3K47pMjaXEaItkC503UQwhXku3jg6TvejUdNQBLSDVVFGyd0vMu1lfHWjKbgNK/R QoKBK4Ffbedrq1Vnct/BRNQBYAK5E9Tj4bVusyA084/zA0JJRbodLGy37OQpPSwG ChY+E0UZ3YjbDJKmZzx6uCZT4ypPw9mEpj8B1hRRpWO9OWR87pyZiQr5D96QgCGY NEzR4NOuTtqUW/Z/Yaz+O5bt124o2ckA03XNvdOAxDUw4VnMmGeG+tTKQblYahqi 1IBe4knGGMcSSFZTNFBusr52ESFqAXyM2fMsAg3TilCEwxmm0vUPR3gV3fDMLmHr KDulBzdI/KUQBSqCUUoL09W6TfCjHh5UqrwvzP9xiNzr352u+em8XLlLar45IexY Cr0UcDh53hw= =B+Ya -----END PGP SIGNATURE----- --=-XCb7IcDTvinV9siZouCj--