From c332443c5c5b50441780eaf0a42c71e923a96677 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Mon, 27 May 2019 15:49:37 +0800 Subject: [PATCH] ACRN: Initialize the depriv_boot env to avoid the uninitialized RSDP Currently when get_rsdp is called, the EFI depriv_boot env is not initialized. In such case it will fail to get the ACPI table. On the old platform it still can parse the ACPI table from legacy platform. But it will fail on the new platform. Signed-off-by: Zhao Yakui --- hypervisor/boot/guest/deprivilege_boot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hypervisor/boot/guest/deprivilege_boot.c b/hypervisor/boot/guest/deprivilege_boot.c index 20e844ba6..aec4fae9d 100644 --- a/hypervisor/boot/guest/deprivilege_boot.c +++ b/hypervisor/boot/guest/deprivilege_boot.c @@ -60,6 +60,7 @@ static uint64_t get_depri_boot_ap_trampoline(void) static void* get_depri_boot_rsdp(void) { + init_depri_boot(); return hpa2hva((uint64_t)(depri_boot_ctx.rsdp)); }