Return-path: Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KnOHr-0003aQ-6H for kexec@lists.infradead.org; Wed, 08 Oct 2008 01:56:27 +0000 Date: Wed, 8 Oct 2008 12:56:25 +1100 From: Simon Horman Subject: Re: [PATCH 1/3] kexec/kdump: read crash memory ranges from drconf memory Message-ID: <20081008015622.GB22396@verge.net.au> References: <200809241719.07464.chandru@in.ibm.com> <20081008014055.GA22396@verge.net.au> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20081008014055.GA22396@verge.net.au> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Chandru Cc: kexec@lists.infradead.org On Wed, Oct 08, 2008 at 12:40:57PM +1100, Simon Horman wrote: [snip] > > --- kexec-tools-orig/kexec/arch/ppc64/crashdump-ppc64.h 2008-09-24 > > 14:46:55.000000000 +0530 > > +++ kexec-tools/kexec/arch/ppc64/crashdump-ppc64.h 2008-09-16 > > 19:18:57.000000000 +0530 > > @@ -28,4 +28,7 @@ extern uint64_t crash_size; > > extern unsigned int rtas_base; > > extern unsigned int rtas_size; > > > > +uint64_t lmb_size; > > +unsigned int num_of_lmbs; > > + > > I am a little confused about why these variables need to be global > as they only seem to be used inside get_crash_memory_ranges(). > I am also a little confused about how they are initialised. Ok, looking further I see that these are also used by code introduced in patch 2 and are initialised in code added by patch 3. It would be nicer have them intitalised in this patch as I'm not sure that the code will work sensibly with just this patch or just this patch and patch 2 applied, which may be important for bisection in the future. -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec