mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-17 18:32:40 +00:00
HV: relocate SOS kernel before boot modules for SBL
SBL would load multiboot modules to the maximum usable ram below 4GB, in this case the SOS kernel would be failed to load because no room for kernel in the range of end of modules and MEM_4G. So kernel must be relocated to the range of MEM_1M and start of modules, or other appropriate place according to modules layout. Tracked-On: #6162 Signed-off-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -70,6 +70,8 @@ static inline bool boot_from_uefi(struct acrn_boot_info *abi)
|
||||
return (abi->efi_info.system_table != NULL);
|
||||
}
|
||||
|
||||
void get_boot_mods_range(uint64_t *p_start, uint64_t *p_end);
|
||||
|
||||
int32_t init_multiboot_info(uint32_t *registers);
|
||||
int32_t init_multiboot2_info(uint32_t *registers);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user