xen/dts: Check the CPU ID is not greater than NR_CPUS
authorJulien Grall <julien.grall@linaro.org>
Fri, 13 Sep 2013 12:49:15 +0000 (13:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 17 Sep 2013 14:28:08 +0000 (15:28 +0100)
commit7a35c108b35b7e008e5a2bf521b24515c5f8a910
tree70104c96e614726f4d0f468358849e16239ad128
parent1fccdfce51ec3367515f73c59765611ed67e747b
xen/dts: Check the CPU ID is not greater than NR_CPUS

On some board CPU IDs are not contiguous (for instance the Versatile Express
with big.LITTLE supports). If the CPU ID is greater than NR_CPUS Xen will hang
without any message. This is because console driver is not yet initialized and
hypervisor data abort uses printk.

For the moment check the CPU ID and print an warning if an error occured.

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