xen/arm: gic: Use the correct CPU ID
authorJulien Grall <julien.grall@linaro.org>
Thu, 26 Sep 2013 11:09:38 +0000 (12:09 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 26 Sep 2013 14:44:46 +0000 (15:44 +0100)
commit1113482036638cb245782631b6d92c2039a7f207
tree0b20803762b6ebeffc6cf3ebd5df69787cf1a42b
parentc9760939c0cea28c7cbaacd3f893fc6cefc09bef
xen/arm: gic: Use the correct CPU ID

The GIC mapping of CPU interfaces does not necessarily match the logical
CPU numbering.

When Xen wants to send an SGI to specific CPU, it needs to use the GIC CPU
ID.  It can be retrieved from ITARGETSR0, in fact when this field is read,
the GIC will return a value that corresponds only to the processor reading
the register.  So Xen can use the PPI 0 to initialize the mapping.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic.c