Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MArPw-0000LN-NO for mharc-grub-devel@gnu.org; Sun, 31 May 2009 16:14:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MArPv-0000JI-15 for grub-devel@gnu.org; Sun, 31 May 2009 16:14:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MArPl-000050-U1 for grub-devel@gnu.org; Sun, 31 May 2009 16:14:01 -0400 Received: from [199.232.76.173] (port=57256 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MArPl-00004u-RF for grub-devel@gnu.org; Sun, 31 May 2009 16:13:53 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:47330) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MArPl-0005W0-Cf for grub-devel@gnu.org; Sun, 31 May 2009 16:13:53 -0400 Received: by ewy6 with SMTP id 6so9149626ewy.42 for ; Sun, 31 May 2009 13:13:52 -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=jm/pZgR1X/WeuUMUvEvwbnOI7Yx+8PcrgtkzVANy+xI=; b=E9l9isGc+6JqtYdUvZVOlVP9hB+fbP/PX/Yu0sJxeyXwHh1sf0a7Gx3xOEaHJYAw+T pdd3tFpdzgKXDIPFlShldnT9aFv/UIj6ID49OlPj+EwxybhCXJ9pf6kz/Ae2Li9YpjY0 stbODlXUqw7cS46kw8eUdTd6CuyJe+nFJTi5s= 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=WgqLV0NeYOwH4X2neO60RGF+W6SJMyuX0kKzUOE4D87PkA3lzPXwHGwLZMLC+QkaBb 5Md/gXXcMtaJhMjKhcTH4NF4w23WY+R6rwmts2kJCYYBi1moCUeJ1WgevXpIeFDXKf7M 2b7gHbq8MBTj2hnRiA6X0xIjUjorXu7hPBYso= Received: by 10.210.136.10 with SMTP id j10mr3156435ebd.13.1243800831697; Sun, 31 May 2009 13:13:51 -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 28sm6349925eyg.24.2009.05.31.13.13.50 (version=SSLv3 cipher=RC4-MD5); Sun, 31 May 2009 13:13:51 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: <4A22DC18.7000709@t-online.de> References: <49E3E0FB.1070907@verizon.net> <1242265918.21129.27.camel@mj> <1242309828.12546.15.camel@mj> <1242325022.6056.7.camel@mj> <1243764078.22342.10.camel@accesodirecto.casa> <1243774114.8044.2.camel@accesodirecto.casa> <4A22DC18.7000709@t-online.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-QqT5qwJ9LOxFncmcU8oV" Date: Sun, 31 May 2009 22:13:52 +0200 Message-Id: <1243800832.8044.80.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 20:14:03 -0000 --=-QqT5qwJ9LOxFncmcU8oV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El dom, 31-05-2009 a las 21:35 +0200, Christian Franke escribi=C3=B3: > Vladimir 'phcoder' Serbinenko wrote: > >> > >> Do not do this. Some BIOS functions (like ah=3D08h) return data in dl. > >> Clients should not expect data in registers to be preserved across > >> interrupt calls. I don't know if there is something like a 8086/PC-BIO= S > >> ABI document that we can find to confirm the non-preservation of dl, b= ut > >> the FreeDOS MBR should be fixed then. > >> =20 > > Thank you for pointing ah=3D8 function > > AFAIK there is no normative reference. The source which was mainly > > used for long years is helppc and it states following: > > - registers DS, BX, CX and DX are preserved > > (http://heim.ifi.uio.no/~stanisls/helppc/int_13.html) > > But now this reference is terribly outdated. > > SeaBIOS preserves %dl too > > =20 >=20 > T13 EDD provides a probably more up to date documentation of int13. >=20 > There was no requirement to preserve registers is in EDD (2000) and=20 > EDD-2 (2002). It appeared in EDD-3 (2004) and is still in first EDD-4=20 > draft (2009): >=20 > "The values in all registers that are not explicitly defined in the=20 > following sections shall be preserved at the completion of each function=20 > call" > From Section 8 of: BIOS Enhanced Disk Drive Services - 3 (T13/1572D=20 > Revision 3) >=20 > Fortunately, T13 docs are (unlike T10 and SATA-IO) still publicly availab= le: > http://www.t13.org/Documents/MinutesDefault.aspx?DocumentType=3D4&Documen= tStage=3D2 >=20 Hmm... from those docs, and accepting that we ignore TSRs, we need to save %ah and %dl at handler entry, then check the saved %ah at exit, like the old handler from GRUB Legacy did - by the way, when writing the new handler, I asked what that code did and noone was able to tell me =C2= =AC=C2=AC The only functions in the standard that return in %dl are 08h and 15h, so the check should be simple. If we want to be even more extensible, we could have a 32-byte bitmap, one bit per %ah function, and restore %dl depending on the value of the particular bit. However, I think that would be going too far. --=20 -- Lazy, Oblivious, Recurrent Disaster -- Habbit --=-QqT5qwJ9LOxFncmcU8oV 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) iQIcBAABAgAGBQJKIuT6AAoJEKSl+Fbdeo72bg0P/3X2D2hbw93GDDPsFZmLfp1z Gt+uVRLb4ajuDVBKnRXE0MAHT+HM7wRJbw7f4I6ZPWFtmKu0RFaxlTxxBxBtbCYM NvaQWBMS1Mn7Bs3+OIxc6vlCCNvPdqEioO5PzLp06RthozefUEuPUX1dP5aZIgb1 gzxdK61B+ZXWY6XTLuMl15Vj7boHa5I4PcXxp1FsC81VCzPGqE+0i+Tglw217ayj /6VQjPbA5XeJRf+7V4rQJ3eaHYvEx+or25bNYPBdfS/+JJFq0DHXfzsHgw1d9ny3 vY/b51J8VUjQSuLueilIGyJaCVKLXtaDBn7KV2eafa4Ec2CjMC2E4mZfrJUe8iee 4KC3V9ukF46p8zEFp5So21eID656F+b7N8Y5PnX3h9KbxzJLRU9i8tnQnvnbUjd1 lUvgQQ9qtyqZG6or6yBdH5aViq2vWj1Lu/2CY1pSzP5MDfGKQzoxx95VZsErIbSD RB5g6ldE3RoPInbmep+kOpbC28kBHIUN7z62ARJgXg6qedwgvb5av8plVHCZQSoo PxnFXbPfCqEgfEFIXT5WUCQDdm505nS9Fwl7/79FK8Eb+GfdKVjlVY4g8wrbv616 UDOj2aay6kuGOWpTxWacUH3qJUY09LsEeksYZi70UBmlxDCChjG+jdJZDI3fu7YA y+9Kt35SR9ThNKnPzJb6 =BL5e -----END PGP SIGNATURE----- --=-QqT5qwJ9LOxFncmcU8oV--