From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JFsow-0004Kb-5l for mharc-grub-devel@gnu.org; Fri, 18 Jan 2008 10:07:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFsou-0004Gy-44 for grub-devel@gnu.org; Fri, 18 Jan 2008 10:07:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFsop-0004DI-CY for grub-devel@gnu.org; Fri, 18 Jan 2008 10:07:47 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFsop-0004D4-5d for grub-devel@gnu.org; Fri, 18 Jan 2008 10:07:43 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JFsoo-0001TY-C5 for grub-devel@gnu.org; Fri, 18 Jan 2008 10:07:42 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JFsod-0003p6-Ip for grub-devel@gnu.org; Fri, 18 Jan 2008 16:07:32 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JFsn3-0004Eo-Gj for grub-devel@gnu.org; Fri, 18 Jan 2008 16:05:53 +0100 Date: Fri, 18 Jan 2008 16:05:53 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080118150553.GA16187@thorin> References: <20080116031949.qvrrwl9868o4cwsc@webmail.spamcop.net> <20080116104039.GA10888@thorin> <1200507768.3307.7.camel@dv> <20080116193344.GA2181@thorin> <1200520366.6793.14.camel@dv> <20080116225137.GA28482@thorin> <1200632851.9493.6.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1200632851.9493.6.camel@dv> 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.13 (2006-08-11) 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: Fri, 18 Jan 2008 15:07:48 -0000 On Fri, Jan 18, 2008 at 12:07:31AM -0500, Pavel Roskin wrote: > > On Wed, 2008-01-16 at 23:51 +0100, Robert Millan wrote: > > On Wed, Jan 16, 2008 at 04:52:46PM -0500, Pavel Roskin wrote: > > > > > > It seems to me that Linux uses "#size-cells" and "#address-cells" (see > > > drivers/of/base.c and arch/powerpc/kernel/prom_parse.c) > > > > We use "#size-cells" and "#address-cells" too, but they aren't useful by > > themselves. They describe the layout of /memory/available. > > > > See kern/powerpc/ieee1275/openfw.c:grub_available_iterate() > > As I understand, Linux uses "ranges", although it's hard to be sure. > There are many references to "ranges" in Linux sources under > arch/powerpc, although many of them are pertinent to buses rather than > to the system memory. Open Hack'Ware provides "ranges" for the memory. /memory/available is organized in ranges (address, whose length is described by #address-cells, and size, whose length is described by #size-cells). Is that what you mean? > As for yaboot, it uses "claim" both for its needs and for loading the > kernel. And that's probably what GRUB could do. It is: loader/powerpc/ieee1275/linux.c: found_addr = grub_claimmap (linux_addr, linux_size); loader/powerpc/ieee1275/multiboot2.c: rc = grub_claimmap (phdr->p_paddr, phdr->p_memsz); -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)