Hi Parth,
On 04/02/2015 14:01, parth.di...@linaro.org wrote:
From: Naresh Bhat <naresh.b...@linaro.org>
Initialization of cpu_logical_map(0) before acpi_boot_init()
Perhaps, merging with the previous patch?
Regards,
Signed-off-by: Hanjun Guo <hanjun....@linaro.org>
Signed-off-by: Naresh Bhat <naresh.b...@linaro.org>
---
xen/arch/arm/setup.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index 3531d47..569b2da 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;
@@ -749,6 +750,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
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel