Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MAq6t-000683-W3 for mharc-grub-devel@gnu.org; Sun, 31 May 2009 14:50:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAq6r-00067j-Tr for grub-devel@gnu.org; Sun, 31 May 2009 14:50:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAq6n-00066p-Fn for grub-devel@gnu.org; Sun, 31 May 2009 14:50:17 -0400 Received: from [199.232.76.173] (port=55125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAq6n-00066l-AA for grub-devel@gnu.org; Sun, 31 May 2009 14:50:13 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:50041) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAq6m-0003Aj-RB for grub-devel@gnu.org; Sun, 31 May 2009 14:50:13 -0400 Received: by ewy6 with SMTP id 6so9110936ewy.42 for ; Sun, 31 May 2009 11:50:12 -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=70mxLTtX+Jxo123VLhH47wrnt0P9GMSQG+AiwPd+jDU=; b=b4KDMF6V/IHRw/bw1ODGgBhkxY0n3O2s/nBcB6A06YF/NQgJG27ftopeq4P7qVDihm oER679C6jhVVqdxJ8bDMNQ2hZdNYq0uBd+VAOJXa7eRx1j5bljJ2bUEVAkMBVOdd2rLb jvYUUzzSUZ0Ms+TFpIBwz5/4fVR/BAPfdyxM4= 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=bwt4RWdx0a9v32W3N30ZJoLIlfKAgdEiPswS1e2RQZbhc74DM6n9RnbYwEoIDHDt4Y HB+sbRo9Ucp424lOpr27udfCS+jqlZvWPD4ZAgYwIsHAohGKOAt5vrZxfO5ZaffGsiH2 PHQZQvEruFoF+xv+NA53WJJLrajfAoZBQb6W0= Received: by 10.210.27.14 with SMTP id a14mr5385238eba.83.1243795811986; Sun, 31 May 2009 11:50:11 -0700 (PDT) Received: from ?192.168.1.100? (89.141.11.145.dyn.user.ono.com [89.141.11.145]) by mx.google.com with ESMTPS id 28sm5636623eye.56.2009.05.31.11.50.10 (version=SSLv3 cipher=RC4-MD5); Sun, 31 May 2009 11:50:11 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: References: <49E3E0FB.1070907@verizon.net> <1242309828.12546.15.camel@mj> <1242325022.6056.7.camel@mj> <1243764078.22342.10.camel@accesodirecto.casa> <1243774114.8044.2.camel@accesodirecto.casa> <1243787189.8044.21.camel@accesodirecto.casa> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-4YpoNGIbDrFDOL8zaraJ" Date: Sun, 31 May 2009 20:50:11 +0200 Message-Id: <1243795811.8044.64.camel@accesodirecto.casa> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: status grub2 port of grub-legasy map command 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: Sun, 31 May 2009 18:50:18 -0000 --=-4YpoNGIbDrFDOL8zaraJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El dom, 31-05-2009 a las 20:05 +0200, Vladimir 'phcoder' Serbinenko escribi=C3=B3: > > The only semi-rational action we can take is to reverse the mapping > > _only_ if %dl still contains the mapped data we passed into the int13 > > handler, but that leaves the question - how do we know that some 0x81 i= s > > actually the 0x81 we put there in substitution of the 0x80 the payload > > called with, and not the true result of the call? > > > Or we can maintain a list of interrupts under which we restore %dx. It > would contain only well documented BIOS interrupts and not TSR ones. > This approach will work with normal interrupts and has high chance of > working with TSR. But I don't think TSR compatibility is important. > > I have yet to find a bootsector that uses such information. > AFAIR CHS FAT32 FreeDOS sector does No, it doesn't: check it out. It overwrites es and di quite soon indeed: real_start: cld cli sub ax, ax mov ds, ax mov bp, 0x7c00 =20 mov ax, 0x1FE0 mov es, ax mov si, bp mov di, bp Same applies to the other two FreeDOS bootsectors. > > Regarding that "biosdrive", it would add more > > complexity to what already is a non-simple system. I'd say that either > > this mapping gets done automagically > biosdrive is necessary only when authomatic routines fail (no or wrong re= sult) The point is writing the automatic routine you described so that biosdrive is not required. --=20 -- Lazy, Oblivious, Recurrent Disaster -- Habbit --=-4YpoNGIbDrFDOL8zaraJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Esto es una parte de mensaje firmado digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAABAgAGBQJKItFfAAoJEKSl+Fbdeo729FUP/3rsxUdcfVvCY5Oa6EWL/ob6 UeTqLr31in7bGzEqITg+JUeb2LmNqY5zu7ksL+4E7GxhKdS5Sha2uSGlpHOCfTmF E0S2oNfPfbkxo5pNECe9PzlMcbooHLwxbDH/+k2f40ADjKj8C9tVDyx8+JkIdE2d UqpfPCGbO7GT/c+7n6aVsj6RjhowGrYW2r1MPn5QRCHHY7sr2DJVLGDUdnz992Sf r9+jl8icUos3rI+lIPGHz4QmX/U8ckKQT2TqATxBI01Jo2hZ5rGQ7mtViB6ZeteW n4pZf+s+sxx8XTfYQQk3qtWof537ikGkzs2UGY+/6Y3MEEwLHm+a7iqUuOH4Cfxv +ZphjFl3J8gm3CdrkHw8o5AqyhGHu92mRWQgbS9WAFqoAgEaBKbqhhKXETlCSfGE /0K5cdM0KhzKpmKhDHEGlMpcYboGPtQVYTSFPaxFzWhYol/8zmyOSVXfNkSrpijm Nm9QJJGysUUfTwegEPADvAr8x8B2p7ja1NxVgYxlQAgJMeKM4T2ajrVA8r1uIL/t nbrTnFcmoViU5QUoPxuYHPft5IKtj0J3WKMCBd8V9xE5ObWUq5Nzq0esP+2xy9E9 yxTRoaGFjQ1C6AHaha/Ka73LawnVPAA6wA79a+iNwS2YBBO87xdITZj+ldxeNpH/ yCSgKzQK/h/xFWhVjV5D =g2Ew -----END PGP SIGNATURE----- --=-4YpoNGIbDrFDOL8zaraJ--