On Mon, Oct 08, 2012 at 02:59:17PM +0100, Jon Medhurst (Tixy) wrote:
> From: Jon Medhurst <t...@linaro.org>
> 
> Check all the CPU affinity fields of MPIDR, so we select only
> the first CPU of the first cluster as the one to boot on.

Shame, we can't run this on pre-v7 CPUs now ;)
(Well, v6T2).

The chance of us wanting to do that (motivating bic instead of bfc) is
minimal, though.

Acked-by: Dave Martin <dave.mar...@linaro.org>

> 
> Signed-off-by: Jon Medhurst <t...@linaro.org>
> ---
>  boot.S |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/boot.S b/boot.S
> index 727119a..40ebd33 100644
> --- a/boot.S
> +++ b/boot.S
> @@ -121,7 +121,7 @@ start:
>  
>       @ Check CPU nr again
>       mrc     p15, 0, r0, c0, c0, 5           @ MPIDR (ARMv7 only)
> -     and     r0, r0, #15                     @ CPU number
> +     bfc     r0, #24, #8                     @ CPU number, taking 
> multicluster into account
>       cmp     r0, #0                          @ primary CPU?
>       beq     2f
>  
> -- 
> 1.7.10.4
> 

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to