ACPI: bug fix on address convertion

Before referencing to phisical address of acpi tables, switch it to
virtual address.

Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
This commit is contained in:
Zheng, Gen
2018-04-16 12:11:29 +08:00
committed by Jack Ren
parent c5f860e1cb
commit 2a37a4de71
3 changed files with 15 additions and 13 deletions

View File

@@ -166,7 +166,7 @@ void *get_rsdp_from_uefi(void)
if (!efi_initialized)
efi_init();
return efi_ctx->rsdp;
return HPA2HVA(efi_ctx->rsdp);
}
static void efi_init(void)