From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v3 6/6] xen/arm: Use the hardware ID to boot correctly secondary cpus Date: Thu, 26 Sep 2013 11:18:31 +0100 Message-ID: <524409F7.5020403@linaro.org> References: <1379510122-9467-1-git-send-email-julien.grall@linaro.org> <1379510122-9467-7-git-send-email-julien.grall@linaro.org> <1380123666.4910.45.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: <1380123666.4910.45.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: Ian Campbell Cc: stefano.stabellini@eu.citrix.com, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 09/25/2013 04:41 PM, Ian Campbell wrote: > 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 > { ... } Good idea. I will add a patch for this solution in my patch series. >> + for ( cpuid = 1; cpuid < nr_cpu_ids; cpuid++ ) >> + { >> + if ( cpu_logical_map(cpuid) == hwid ) >> + break; >> + } >> + > -- Julien Grall