From: Ian Campbell Subject: Re: [PATCH v3 08/11] xen: arm: rewrite start of day page table and cpu bring up Date: Fri, 27 Sep 2013 15:26:02 +0100 Message-ID: <1380291962.13347.0.camel@kazak.uk.xensource.com> References: <1380276965.29483.178.camel@kazak.uk.xensource.com> <1380277240-27900-8-git-send-email-ian.campbell@citrix.com> <52458885.9080705@linaro.org> <1380291044.8994.100.camel@hastur.hellion.org.uk> <52459450.9010600@linaro.org> <1380291837.29483.197.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1380291837.29483.197.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xen.org, tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, 2013-09-27 at 15:23 +0100, Ian Campbell wrote: > On Fri, 2013-09-27 at 15:21 +0100, Julien Grall wrote: > > On 09/27/2013 03:10 PM, Ian Campbell wrote: > > > On Fri, 2013-09-27 at 14:30 +0100, Julien Grall wrote: > > > > > >>> @@ -581,6 +589,12 @@ static void __init init_cpus_maps(void) > > >>> } > > >>> } > > >>> > > >>> + if ( (rc = arch_cpu_init(hwid, cpu)) < 0 ) > > >> > > >> As I understand your patch #6, arch_cpu_init take a logical cpu id (on > > >> ARM64 it's used as an index in an array). > > > > > > Yes, I thought I wanted to pass the hwid here, but it looks like I've > > > got my wires crossed. > > > > > >> So you should used j here. > > > > > > You mean cpuidx I think, after having moved the call after the cpuidx++ > > > > In fact I mean i. Because i = 0 (if it's the boot CPU) or cpuidx++ for > > non-boot CPU. > > Right. Ignore the incremental patch I posted, the real one will have the > obvious change made ;-) Actually, looks like I thought cpuidx and wrote i, so the incremental patch is fine ;-) Ian.