From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JFGBp-00009z-31 for mharc-grub-devel@gnu.org; Wed, 16 Jan 2008 16:52:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFGBn-00008A-E4 for grub-devel@gnu.org; Wed, 16 Jan 2008 16:52:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFGBl-000060-QN for grub-devel@gnu.org; Wed, 16 Jan 2008 16:52:50 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFGBl-00005s-M0 for grub-devel@gnu.org; Wed, 16 Jan 2008 16:52:49 -0500 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JFGBl-0005w4-9a for grub-devel@gnu.org; Wed, 16 Jan 2008 16:52:49 -0500 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 16 Jan 2008 16:52:47 -0500 Received: from [192.168.1.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id BB499618FE1 for ; Wed, 16 Jan 2008 16:52:46 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <20080116193344.GA2181@thorin> References: <20080116031949.qvrrwl9868o4cwsc@webmail.spamcop.net> <20080116104039.GA10888@thorin> <1200507768.3307.7.camel@dv> <20080116193344.GA2181@thorin> Content-Type: text/plain Date: Wed, 16 Jan 2008 16:52:46 -0500 Message-Id: <1200520366.6793.14.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-3.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Running GRUB under qemu on PowerPC 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, 16 Jan 2008 21:52:51 -0000 On Wed, 2008-01-16 at 20:33 +0100, Robert Millan wrote: > On Wed, Jan 16, 2008 at 01:22:48PM -0500, Pavel Roskin wrote: > > > > I guess the simplest approach would be to assume that we have a certain > > amount of memory that would be enough for GRUB. > > What a mess. What does Linux do? They have to support callbacks to get the > memory map, so it can't just claim everything. I don't see any references to "available" in the Linux code, except for some exotic machines. Neither does yaboot use anything like that. yaboot loads under qemu, but hangs trying to load the Linux kernel (both extracted from the Fedora 8 rescue disk), so I don't know if Linux would boot. It seems to me that Linux uses "#size-cells" and "#address-cells" (see drivers/of/base.c and arch/powerpc/kernel/prom_parse.c) As for yaboot, I have no idea. It gets a handle for "/memory" but never uses it. I don't see any references to "cells". > In any case, if you have to make this assumption, considering reusing the > HEAP_MIN_SIZE macro, which has the same meaning. OK, I'll try. -- Regards, Pavel Roskin