mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: modularization: use abi_module struct in acrn boot info
Use more generic abi_module struct to replace multiboot_module 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:
@@ -17,6 +17,7 @@
|
||||
#define MAX_BOOTARGS_SIZE 2048U
|
||||
#define MAX_LOADER_NAME_SIZE 32U
|
||||
#define MAX_PROTOCOL_NAME_SIZE 16U
|
||||
#define MAX_MOD_STRING_SIZE 2048U
|
||||
|
||||
/* The modules in multiboot are: Pre-launched VM: kernel/ramdisk/acpi; SOS VM: kernel/ramdisk */
|
||||
#define MAX_MODULE_NUM (3U * PRE_VM_NUM + 2U * SOS_VM_NUM)
|
||||
@@ -24,14 +25,20 @@
|
||||
/* The vACPI module size is fixed to 1MB */
|
||||
#define ACPI_MODULE_SIZE MEM_1M
|
||||
|
||||
struct abi_module {
|
||||
void *start; /* HVA */
|
||||
uint32_t size;
|
||||
const char string[MAX_MOD_STRING_SIZE];
|
||||
};
|
||||
|
||||
struct acrn_boot_info {
|
||||
|
||||
char protocol_name[MAX_PROTOCOL_NAME_SIZE];
|
||||
const char cmdline[MAX_BOOTARGS_SIZE];
|
||||
const char loader_name[MAX_LOADER_NAME_SIZE];
|
||||
|
||||
uint32_t mi_mods_count;
|
||||
struct multiboot_module mi_mods[MAX_MODULE_NUM];
|
||||
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];
|
||||
|
Reference in New Issue
Block a user