mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
HV: modularization: use loader_name char array in acrn boot info
The patch has below changes: 1. rename mi_loader_name in acrn_boot_info struct to loader_name; 2. change loader_name type from pointer to array to avoid accessing original multiboot info region; 3. remove mi_drivers_length and mi_drivers_addr which are never used; 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:
@@ -15,7 +15,7 @@
|
||||
#define MAX_MMAP_ENTRIES 32U
|
||||
|
||||
#define MAX_BOOTARGS_SIZE 2048U
|
||||
|
||||
#define MAX_LOADER_NAME_SIZE 32U
|
||||
#define MAX_PROTOCOL_NAME_SIZE 16U
|
||||
|
||||
/* The modules in multiboot are: Pre-launched VM: kernel/ramdisk/acpi; SOS VM: kernel/ramdisk */
|
||||
@@ -28,14 +28,11 @@ struct acrn_boot_info {
|
||||
|
||||
char protocol_name[MAX_PROTOCOL_NAME_SIZE];
|
||||
const char cmdline[MAX_BOOTARGS_SIZE];
|
||||
const char *mi_loader_name;
|
||||
const char loader_name[MAX_LOADER_NAME_SIZE];
|
||||
|
||||
uint32_t mi_mods_count;
|
||||
struct multiboot_module mi_mods[MAX_MODULE_NUM];
|
||||
|
||||
uint32_t mi_drives_length;
|
||||
uint32_t mi_drives_addr;
|
||||
|
||||
uint32_t mi_mmap_entries;
|
||||
struct multiboot_mmap mi_mmap_entry[MAX_MMAP_ENTRIES];
|
||||
|
||||
|
Reference in New Issue
Block a user