xen/arm: Initialize PERCPU variables at the beginning of start_xen
authorJulien Grall <julien.grall@linaro.org>
Wed, 24 Jul 2013 17:01:36 +0000 (18:01 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 29 Jul 2013 15:54:39 +0000 (16:54 +0100)
commitc433774a6ea84c46c25fdf8ef7e2657aaf2c7f2b
tree6097b8fafd3e5625429a860ac7245033800357f3
parentfc8dbb8b4546b31e0b7d1a7d84d00e02319f245a
xen/arm: Initialize PERCPU variables at the beginning of start_xen

PERCPU variables rely on HTPIDR (TPIDR_EL2) which is in an unknown state when
a processor boot.

For the boot CPU, the first use of PERCPU is in setup_pagetables. So
initialize PERCPU and set the processor ID before.

Bamvor Jian Zhang observed this failure on the sun6i processor which does not
initialise HTPIDR and contributed a very similar patch.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
[ ijc -- added last para of commit message ]
xen/arch/arm/setup.c