From: Ian Campbell Subject: Re: [PATCH v3 6/6] xen/arm: Use the hardware ID to boot correctly secondary cpus Date: Wed, 25 Sep 2013 16:41:06 +0100 Message-ID: <1380123666.4910.45.camel@kazak.uk.xensource.com> References: <1379510122-9467-1-git-send-email-julien.grall@linaro.org> <1379510122-9467-7-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1379510122-9467-7-git-send-email-julien.grall@linaro.org> 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: stefano.stabellini@eu.citrix.com, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-09-18 at 14:15 +0100, Julien Grall wrote: > + /* Browse the logical map and find the associate logical cpu ID */ We already have init_stack (the stack for the cpu which is coming up to use). In my start of day rewrite I also add/extend init_ttbr. You could add init_cpu_id or something. TBH it's getting to the point where we might want struct init_info { ... } > + for ( cpuid = 1; cpuid < nr_cpu_ids; cpuid++ ) > + { > + if ( cpu_logical_map(cpuid) == hwid ) > + break; > + } > +