From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DB9A9DDE24 for ; Fri, 10 Oct 2008 15:51:03 +1100 (EST) Subject: Re: [RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsize From: Benjamin Herrenschmidt To: Sebastian Siewior In-Reply-To: <20080925214357.GA2929@www.tglx.de> References: <20080923203857.GB10935@www.tglx.de> <200809240146.m8O1kIpZ077447@sullivan.realtime.net> <20080925214357.GA2929@www.tglx.de> Content-Type: text/plain Date: Fri, 10 Oct 2008 14:58:08 +1100 Message-Id: <1223611088.8157.144.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Milton Miller , David Gibson Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2008-09-25 at 23:43 +0200, Sebastian Siewior wrote: > * Milton Miller | 2008-09-23 20:46:18 [-0500]: > > >On Wed Sep 24 at about 06:38:57 EST in 2008, Sebastian Siewior wrote: > >> My mylinux binary incl. bss is ~5 MiB without bss less than 4 MiB. > >> Therefore I though that I could replace ei.memsize with ei.loadsize. It > >> didn't work. I'm not sure why it did not work but I guess that the > >> memset() of bss in the initial kernel code overwrote the cuimage code > >> which is required for some reason. Maybe some device-tree callbacks. > > > >probably because the bss extended beyond the cuboot _end to include > >where your device tree was copied (just a malloc and we start > >simple_malloc at the boot _end on most platforms). > > Right, the bss section went past _dtb_start, moving the device tree > helps. > > Signed-off-by: Sebastian Siewior Please repost in correct form, that is with the changeset comment. Cheers, Ben.