From 73f83209f3b1d2eecff9f7e51dc4476f889f5e49 Mon Sep 17 00:00:00 2001 From: Sergiu Moga Date: Sun, 21 May 2023 16:22:40 +0300 Subject: [PATCH] plat/kvm/arm: Enable enumerating secondary cores through `ACPI` Allow the existence of two ways to enumerate secondary cores: `ACPI` and `Devicetree`. Signed-off-by: Sergiu Moga Reviewed-by: Razvan Virtan Reviewed-by: Michalis Pappas Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #912 --- plat/kvm/arm/setup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plat/kvm/arm/setup.c b/plat/kvm/arm/setup.c index a4821d030..4975fdc4a 100644 --- a/plat/kvm/arm/setup.c +++ b/plat/kvm/arm/setup.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -181,6 +182,12 @@ void __no_pauth _ukplat_entry(struct ukplat_bootinfo *bi) pl031_init_rtc(fdt); #endif /* CONFIG_RTC_PL031 */ +#if defined(CONFIG_UKPLAT_ACPI) + rc = acpi_init(); + if (unlikely(rc < 0)) + uk_pr_err("ACPI init failed: %d\n", rc); +#endif /* CONFIG_UKPLAT_ACPI */ + /* Initialize interrupt controller */ intctrl_init(); -- 2.39.5