From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DECyq-0002CY-Iq for mharc-grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DECyf-000273-78 for grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DECyX-00023I-SH for grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DECyX-000238-MQ for grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:13 -0500 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DECiv-0005GS-6M for grub-devel@gnu.org; Wed, 23 Mar 2005 15:45:05 -0500 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id AD6C8FF16CC0 for ; Wed, 23 Mar 2005 21:45:04 +0100 (CET) Received: from 127.0.0.1 ([127.0.0.1] helo=localhost) by ASSP-nospam ; 23 Mar 05 20:45:04 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 23 Mar 2005 21:45:04 +0100 User-Agent: KMail/1.7.1 References: <74cfc9a471d7669b38b24a5a89f35538@free.fr> In-Reply-To: <74cfc9a471d7669b38b24a5a89f35538@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503232145.04398.okuji@enbug.org> 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 21:01:26 -0000 On Wednesday 23 March 2005 02:20 pm, antoine terrienne wrote: > memalign doesn't exist on Mac OS. malloc always returns 16 bytes > aligned memory. This macro is only defined if there is no HAVE_MEMALIGN > defined by the configure script. If 16 bytes alignment not enouth there > is valloc that allocates on a page bondary but there is no such > function as memalign. Is it hard to implement memalign using valloc? I don't know how it works on MacOSX. > You mean include it in Grub ? Sure. > Where such code should be placed in the source three ? normal/ util/ > ... ? Create a directory "lib" at the top source directory and link it if your system library does not have it. > getopt is already used by grub-mkimage and available everywere so why > not just using it with grub-emu ? Are there somme specific reasons ? Technically speaking, argp is superior. So, I prefer keeping it to throwing it away. > I have some others questions about the powerpc part of Grub2. It seems > 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. Okuji