HV: modularization: use abi_mmap struct in acrn boot info

Use more generic abi_mmap struct to replace multiboot_mmap struct in
acrn_boot_info;

Tracked-On: #5661

Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Victor Sun
2021-06-08 15:22:46 +08:00
committed by wenlingz
parent c59ea6c250
commit 82a1d4406c
5 changed files with 36 additions and 22 deletions

View File

@@ -104,12 +104,12 @@ void init_e820(void)
uint64_t top_addr_space = CONFIG_PLATFORM_RAM_SIZE + PLATFORM_LO_MMIO_SIZE;
struct acrn_boot_info *abi = get_acrn_boot_info();
struct multiboot_mmap *mmap = abi->mi_mmap_entry;
struct abi_mmap *mmap = abi->mmap_entry;
hv_e820_entries_nr = abi->mi_mmap_entries;
hv_e820_entries_nr = abi->mmap_entries;
dev_dbg(DBG_LEVEL_E820, "mmap addr 0x%x entries %d\n",
abi->mi_mmap_entry, hv_e820_entries_nr);
abi->mmap_entry, hv_e820_entries_nr);
for (i = 0U; i < hv_e820_entries_nr; i++) {