From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MiRp9-0001Hn-LP for mharc-grub-devel@gnu.org; Tue, 01 Sep 2009 07:46:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiRp6-0001DV-FZ for grub-devel@gnu.org; Tue, 01 Sep 2009 07:46:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiRp1-00013t-DM for grub-devel@gnu.org; Tue, 01 Sep 2009 07:46:51 -0400 Received: from [199.232.76.173] (port=51154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiRp0-00013I-8P for grub-devel@gnu.org; Tue, 01 Sep 2009 07:46:47 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:45751 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MiRoz-0001eo-Gn for grub-devel@gnu.org; Tue, 01 Sep 2009 07:46:45 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MiRox-0003Ps-Jh for grub-devel@gnu.org; Tue, 01 Sep 2009 13:46:43 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MiRox-0006bk-34 for grub-devel@gnu.org; Tue, 01 Sep 2009 13:46:43 +0200 Date: Tue, 1 Sep 2009 13:46:43 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090901114643.GB25290@thorin> References: <20090810114103.GG9344@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Report: compil error on OSX for target=i386 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: Tue, 01 Sep 2009 11:46:52 -0000 On Mon, Aug 31, 2009 at 11:10:17PM +0200, Yves Blusseau wrote: >>> What about following compromise: >>> diff --git a/loader/i386/linux.c b/loader/i386/linux.c >>> index 4144384..1380eb8 100644 >>> --- a/loader/i386/linux.c >>> +++ b/loader/i386/linux.c >>> @@ -543,7 +543,8 @@ grub_linux_boot (void) >>> asm volatile ("lgdt %0" : : "m" (gdt_desc)); >>> >>> /* Enter Linux. */ >>> - asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" >>> (params->code32_start)); >>> + asm volatile ("xorl %%ebx, %%ebx\n" >>> + "jmp *%1" : : "S" (real_mode_mem), "g" >>> (params->code32_start)); >>> >>> #endif >>> >> Is this compromise acceptable? > > Compil and work on OSX. > > Is it ok to commit it ? Apple is free to cripple the version of GCC they're shipping (we wanted them to have this freedom, even if they're unfriendly towards free software). I think it's short-sighted, but it's their problem. However, on our side, I'm not satisfied at all with accomodating to arbitrary limitations like this one. This seems like a slippery slope. If we do it now, what's the next one? It's much easier to make official GCC a build requirement. People hacking on GRUB source, or distributors (e.g. Fink) should have no problem with a dependency on GCC. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."