Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LeyEj-0005ws-Ln for mharc-grub-devel@gnu.org; Wed, 04 Mar 2009 16:02:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeyEh-0005wM-F0 for grub-devel@gnu.org; Wed, 04 Mar 2009 16:02:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeyEg-0005w7-ST for grub-devel@gnu.org; Wed, 04 Mar 2009 16:02:39 -0500 Received: from [199.232.76.173] (port=47395 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeyEg-0005w2-Ns for grub-devel@gnu.org; Wed, 04 Mar 2009 16:02:38 -0500 Received: from [74.93.104.97] (port=45372 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LeyEg-0005F8-4v for grub-devel@gnu.org; Wed, 04 Mar 2009 16:02:38 -0500 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 00AC9C8D940; Wed, 4 Mar 2009 13:02:23 -0800 (PST) Date: Wed, 04 Mar 2009 13:02:23 -0800 (PST) Message-Id: <20090304.130223.202852927.davem@davemloft.net> To: grub-devel@gnu.org, lordhabbit@gmail.com From: David Miller In-Reply-To: <1236182302.31907.11.camel@localhost> References: <49AE6756.10404@nic.fi> <20090304.033605.238092958.davem@davemloft.net> <1236182302.31907.11.camel@localhost> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 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, 3) Cc: Subject: Re: [PATCH 1/7]: Fix sparc64 setjmp implementation. 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, 04 Mar 2009 21:02:39 -0000 From: Javier Mart=EDn Date: Wed, 04 Mar 2009 16:58:22 +0100 > As an example of what this entails, the failure to think with the fut= ure > in mind has extraordinarily hampered the 32->64 bit transition: many > Windows apps (among them the Vorbis codecs!) had be nearly rewritten > because they used "unsigned long" interchangeably with pointer types.= I > still wonder if it would have been so difficult to use "void*", and t= he > proper types for pointer arithmetic. Actually the problem is that they used "int" interchangably with pointer types. "unsigned long" is always safe because it is going to be the largest natural word size on the machine, at least as large as a pointer will be. We've been using "unsigned long" for storing virtual addresses in the Linux kernel for 10+ years and it works just fine. :-) Really, nobody is going to touch the grub_jmp_buf[] implementation other than sparc expert. So saying this case will cause problems for grub non-sparc folks is something of a scarecrow.