Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MWDUG-0004Ih-Cj for mharc-grub-devel@gnu.org; Wed, 29 Jul 2009 14:02:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWDUF-0004IW-F9 for grub-devel@gnu.org; Wed, 29 Jul 2009 14:02:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWDUA-0004IE-VQ for grub-devel@gnu.org; Wed, 29 Jul 2009 14:02:47 -0400 Received: from [199.232.76.173] (port=43846 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWDUA-0004IB-OS for grub-devel@gnu.org; Wed, 29 Jul 2009 14:02:42 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]:52154) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWDUA-0002HR-14 for grub-devel@gnu.org; Wed, 29 Jul 2009 14:02:42 -0400 Received: by fxm1 with SMTP id 1so139556fxm.31 for ; Wed, 29 Jul 2009 11:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gfz5SgzKbNjWpRzxeXp9pS1WNqEPR3Dd1IpTFy5mLmE=; b=gDsSuHCSY+pElEgGVv7J29sgmRky0xxMREHmkQ+bQtKDQdSDgiK4UEDF5dVUM6j8sO ENERLBONGAw+bAtJdR7kxHwR6YSb3LXsQw0T9XkVUfTa9RoPBh/L1/GZrwlsWFQkDqPT 8JprgBaSlhBVI1IGRBDtaSEZbfY82qVSYibbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=GLIYNa5svcptt7DKt6tbo+0LSbsZGZy+J0dztRZnz2dlpaKZoRZOO2Z/R1pF8r4+QO lH+t88pEBroYPj9U2H0xlibjUFgVomqDdcwOQxm0UMlYah8rBMCieOmNzmmUKlPK4n3p 0dSc2934uZP45e2iIAZLb4LawevL9Tenrsn1k= MIME-Version: 1.0 Received: by 10.204.118.207 with SMTP id w15mr66533bkq.126.1248890560877; Wed, 29 Jul 2009 11:02:40 -0700 (PDT) In-Reply-To: <4A6F9A81.6080209@gmail.com> References: <1248561149.4660.245.camel@accesodirecto.casa> <20090728181103.GH32726@thorin> <4A6F9A81.6080209@gmail.com> Date: Wed, 29 Jul 2009 20:02:40 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Centralizing understanding of far pointers 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, 29 Jul 2009 18:02:47 -0000 2009/7/29 Javier Mart=EDn : > Robert Millan escribi=F3: >> First of all, please don't call them far pointers. =A0They're an i8086 l= egacy >> cruft, which have nothing to do with far or close really (although we se= em to >> have some code that makes this reference already). > So... how do we call them? I am an utter failure at making up sensible > names. > grub_i386_realmode_ptr_t >> Is there a usefulness in this `raw_bits' member? =A0It doesn't have any >> real meaning, as it doesn't correspond to an actual address. > Mainly, the possibility of checking equality against a particular bit > pattern without using another instance of the structure/union. Also, > some code might want to still use the raw bits for some reason, instead > of either the nearly-opaque handling described above or the more > detailed view provided by the inner structure. raw_bits don't seem very useful and using them is error-prone. E.g. two pointers may reffer to same address even having different raw_bits. So I would prefer not to include them unless there are real examples when it's useful > OK then... That means the code will have to move from i386/pc/memory.h > to i386/memory.h. And what about x86_64? Put a memory.h in x86_64/memory.h which will include i386/memory.h --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git