From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JFE2w-0006yb-Rb for mharc-grub-devel@gnu.org; Wed, 16 Jan 2008 14:35:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFE2v-0006wm-Ms for grub-devel@gnu.org; Wed, 16 Jan 2008 14:35:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFE2r-0006pk-SI for grub-devel@gnu.org; Wed, 16 Jan 2008 14:35:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFE2r-0006pV-Ol for grub-devel@gnu.org; Wed, 16 Jan 2008 14:35:29 -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 1JFE2r-0005Nc-Dk for grub-devel@gnu.org; Wed, 16 Jan 2008 14:35:29 -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 1JFE2o-0007aJ-Gy for grub-devel@gnu.org; Wed, 16 Jan 2008 20:35:28 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JFE1A-0000d2-Po for grub-devel@gnu.org; Wed, 16 Jan 2008 20:33:44 +0100 Date: Wed, 16 Jan 2008 20:33:44 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080116193344.GA2181@thorin> References: <20080116031949.qvrrwl9868o4cwsc@webmail.spamcop.net> <20080116104039.GA10888@thorin> <1200507768.3307.7.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1200507768.3307.7.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: Wed, 16 Jan 2008 19:35:34 -0000 On Wed, Jan 16, 2008 at 01:22:48PM -0500, Pavel Roskin wrote: > > On Wed, 2008-01-16 at 11:40 +0100, Robert Millan wrote: > > On Wed, Jan 16, 2008 at 03:19:49AM -0500, Pavel Roskin wrote: > > > > > > The unresolved problem is that the "/memory/available" property is not > > > available. I get the "grub rescue" prompt, but all commands fail with > > > "out of memory". > > > > Does this mean all memory is ours to deal with as pleased? :-) > > > > I suggest you try poking it by trying to read all existing memory in your > > address space. > > 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. In any case, if you have to make this assumption, considering reusing the HEAP_MIN_SIZE macro, which has the same meaning. -- 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 /.)