mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
HV: modularization: add boot.c to wrap multiboot module
Add a wrapper API init_acrn_boot_info() so that it could be used to boot ACRN with any boot protocol; Another change is change term of multiboot1 to multiboot because there is no such term officially; 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:
@@ -91,12 +91,12 @@ void init_primary_pcpu(void)
|
||||
/* Clear BSS */
|
||||
(void)memset(&ld_bss_start, 0U, (size_t)(&ld_bss_end - &ld_bss_start));
|
||||
|
||||
init_acrn_boot_info(boot_regs[0], boot_regs[1]);
|
||||
init_acrn_boot_info(boot_regs);
|
||||
|
||||
init_debug_pre();
|
||||
|
||||
if (sanitize_acrn_boot_info(boot_regs[0], boot_regs[1]) != 0) {
|
||||
panic("Multiboot info error!");
|
||||
if (sanitize_acrn_boot_info(get_acrn_boot_info()) != 0) {
|
||||
panic("Sanitize boot info failed!");
|
||||
}
|
||||
|
||||
init_pcpu_pre(true);
|
||||
|
Reference in New Issue
Block a user