mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
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:
@@ -31,6 +31,19 @@ struct abi_module {
|
||||
const char string[MAX_MOD_STRING_SIZE];
|
||||
};
|
||||
|
||||
/* ABI memory map types, compatible to Multiboot/Multiboot2/E820; */
|
||||
#define MMAP_TYPE_RAM 1U
|
||||
#define MMAP_TYPE_RESERVED 2U
|
||||
#define MMAP_TYPE_ACPI_RECLAIM 3U
|
||||
#define MMAP_TYPE_ACPI_NVS 4U
|
||||
#define MMAP_TYPE_UNUSABLE 5U
|
||||
|
||||
struct abi_mmap {
|
||||
uint64_t baseaddr;
|
||||
uint64_t length;
|
||||
uint32_t type;
|
||||
};
|
||||
|
||||
struct acrn_boot_info {
|
||||
|
||||
char protocol_name[MAX_PROTOCOL_NAME_SIZE];
|
||||
@@ -40,8 +53,8 @@ struct acrn_boot_info {
|
||||
uint32_t mods_count;
|
||||
struct abi_module mods[MAX_MODULE_NUM];
|
||||
|
||||
uint32_t mi_mmap_entries;
|
||||
struct multiboot_mmap mi_mmap_entry[MAX_MMAP_ENTRIES];
|
||||
uint32_t mmap_entries;
|
||||
struct abi_mmap mmap_entry[MAX_MMAP_ENTRIES];
|
||||
|
||||
const void *mi_acpi_rsdp_va;
|
||||
struct efi_info mi_efi_info;
|
||||
|
Reference in New Issue
Block a user