From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lfu5b-0005kc-GK for mharc-grub-devel@gnu.org; Sat, 07 Mar 2009 05:49:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lfu5Y-0005kU-Sc for grub-devel@gnu.org; Sat, 07 Mar 2009 05:49:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lfu5W-0005kI-3n for grub-devel@gnu.org; Sat, 07 Mar 2009 05:49:03 -0500 Received: from [199.232.76.173] (port=59447 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lfu5V-0005kF-U6 for grub-devel@gnu.org; Sat, 07 Mar 2009 05:49:01 -0500 Received: from aybabtu.com ([69.60.117.155]:51969) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lfu5V-0004v0-C6 for grub-devel@gnu.org; Sat, 07 Mar 2009 05:49:01 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1Lftxc-0004vB-P7 for grub-devel@gnu.org; Sat, 07 Mar 2009 11:40:53 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1Lfu5Q-0005Ni-RH for grub-devel@gnu.org; Sat, 07 Mar 2009 11:48:56 +0100 Date: Sat, 7 Mar 2009 11:48:56 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090307104856.GC20604@thorin> References: <20090306191933.GA29098@thorin> <49B18154.80008@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <49B18154.80008@nic.fi> 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.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] make the generic Linux loader usable on i386-pc again 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: Sat, 07 Mar 2009 10:49:05 -0000 On Fri, Mar 06, 2009 at 10:02:28PM +0200, Vesa Jääskeläinen wrote: > Robert Millan wrote: > > This patch makes the generic Linux loader usable on i386-pc again. It > > doesn't seem like it's badly needed to spend a bit of time and a bit of > > code in adding low memory to the heap, and Vesa's work on the new memory > > manager should give a proper solution to this problem. > > > > I think in the meantime we could just not allocate low mem, assuming > > nobody has a problem with that. > > If this really blocks it I have nothing against it. But could you share > a bit insight what kind of memories are required to be where for Linux? Sure. Note that my experience is merely derived from our existing code (which I had to in order to produce the initial loader/i386/linux.c). Linux developers reading this (hi Dave ;-)) probably know better. There's an area between 0x10000 and 0x90000 which is where struct linux_kernel_params needs to be stored. This includes a statically allocated memory map. There's an area between 0x100000 and min(0x37FFFFFF,(grub_os_area_addr + grub_os_area_size)) where the actual Linux image is loaded, as well as the initrd (inmediately after it, with some alignment). I think that's all. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."