aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Bhat <naresh.bhat@linaro.org>2014-06-30 13:09:40 +0530
committerNaresh Bhat <naresh.bhat@linaro.org>2014-09-03 16:38:45 +0530
commit12f0140170cf9fc6b0f36195d8d3ff10f7287243 (patch)
treed830153c9ab9300dc6b3beae206d9c180cfaf0c5
parent175826c9f99317047eb13a7e60ae6bbbb6c33cf5 (diff)
downloadxen-12f0140170cf9fc6b0f36195d8d3ff10f7287243.tar.gz
ARM64: Initialization of cpu_logical_map(0)
Initialization of cpu_logical_map(0) before acpi_boot_init() Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Naresh Bhat <Naresh.Bhat@linaro.org>
-rw-r--r--xen/arch/arm/setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index 5edca7808f..6a0b25d7a6 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -47,6 +47,7 @@
#include <xsm/xsm.h>
#include <xen/acpi.h>
#include <asm/acpi.h>
+#include <asm-arm/cputype.h>
struct bootinfo __initdata bootinfo;
@@ -778,6 +779,10 @@ void __init start_xen(unsigned long boot_phys_offset,
#if defined(CONFIG_ACPI) && defined(CONFIG_ARM_64)
acpi_boot_table_init();
+
+ /* Get the boot CPU's MPIDR before cpu logical map is built */
+ cpu_logical_map(0) = read_cpuid_mpidr() & MPIDR_HWID_BITMASK;
+
acpi_boot_init();
#endif