Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DEEdu-0007O0-B0 for mharc-grub-devel@gnu.org; Wed, 23 Mar 2005 17:48:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DEEdn-0007L4-43 for grub-devel@gnu.org; Wed, 23 Mar 2005 17:47:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DEEdm-0007KW-2V for grub-devel@gnu.org; Wed, 23 Mar 2005 17:47:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DEEdl-0007KT-Pu for grub-devel@gnu.org; Wed, 23 Mar 2005 17:47:54 -0500 Received: from [213.228.0.176] (helo=postfix4-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DEEL8-0003uE-Sz for grub-devel@gnu.org; Wed, 23 Mar 2005 17:28:39 -0500 Received: from imp5-q.free.fr (imp5-q.free.fr [212.27.42.5]) by postfix4-2.free.fr (Postfix) with ESMTP id 39C4A2EC9AC; Wed, 23 Mar 2005 23:28:37 +0100 (CET) Received: by imp5-q.free.fr (Postfix, from userid 33) id 8585118759; Wed, 23 Mar 2005 23:28:43 +0100 (MET) Received: from m131.net81-67-132.noos.fr (m131.net81-67-132.noos.fr [81.67.132.131]) by imp5-q.free.fr (IMP) with HTTP for ; Wed, 23 Mar 2005 23:28:43 +0100 Message-ID: <1111616923.4241ed9b706fe@imp5-q.free.fr> Date: Wed, 23 Mar 2005 23:28:43 +0100 From: Antoine Terrienne To: The development of GRUB 2 , "Yoshinori K. Okuji" References: <74cfc9a471d7669b38b24a5a89f35538@free.fr> <200503232145.04398.okuji@enbug.org> In-Reply-To: <200503232145.04398.okuji@enbug.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 81.67.132.131 Content-Transfer-Encoding: quoted-printable Cc: The development of GRUB 2 Subject: Re: Grub2 on Mac OS X 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, 23 Mar 2005 22:47:58 -0000 Selon "Yoshinori K. Okuji" : > > Is it hard to implement memalign using valloc? I don't know how it work= s on > MacOSX. > Should be possible I'll take a look. But in most cases i found on the web= malloc is a good subtitute to memalign. > Technically speaking, argp is superior. So, I prefer keeping it to thro= wing > it > away. > I agree argp is techically superior but adding a library in Grub2 mean ke= eping it up-to-date with the mainstream distribution. This add a little anoyng = work just to add some functionalities that aren't used. If you really want to = add it I can do it but I'm not sure it is necessary. > > I have some others questions about the powerpc part of Grub2. It seem= s > > that many parts are just a copy of the i386. For exemple in the > > conf/powerpc-ieee1275.rmk. grub_emu_sources refer to > > commands/i386/pc/{reboot.c,halt.c,suspend.c} but there exist somme > > commands/ieee1275/{reboot.c,halt.c,suspend.c}. Is this normal ? > > Yes. There are good reasons. Take a look at the archive of this list. > Ok promise next time I will look before asking stupid question ;) > Okuji > > I found another glibc specific function : alloca. Used in cmain in boot/powerpc/ieee1275/cmain.c. I repace it by declaring argv as an array = of 64 elements : char *arg[64] (should be enouth ?). As the variables are alloc= ated in the stack just like alloca do it should work just the same. I have another question about -DGRUB_UTIL. Can it be used to distinguish = the host compiled part and the build compiled part of grub ? I have to handle types differenty in host and build as the build part doe= sn't have stdlib.h. But this method fails on boot/powerpc/ieee1275/cmain.c tha= t is compiled with powerpc-elf-gcc (build) and the -DGRUB_UTIL flag. Thanks for your answers -- -- ____ / \ / antoine.terrienne@free.fr | o o | - http://antoine.terrienne.free.fr | o | \ #153026466 \ V V / \_/\_/