diff --git a/hypervisor/arch/x86/cpu.c b/hypervisor/arch/x86/cpu.c index 1be14e6e7..859bda103 100644 --- a/hypervisor/arch/x86/cpu.c +++ b/hypervisor/arch/x86/cpu.c @@ -131,10 +131,6 @@ void init_pcpu_pre(bool is_bsp) panic("hardware not support!"); } - if (sanitize_multiboot_info() != 0) { - panic("Multiboot info error!"); - } - init_pcpu_model_name(); load_pcpu_state_data(); diff --git a/hypervisor/arch/x86/init.c b/hypervisor/arch/x86/init.c index d627a01df..3d667881c 100644 --- a/hypervisor/arch/x86/init.c +++ b/hypervisor/arch/x86/init.c @@ -90,6 +90,10 @@ void init_primary_pcpu(void) init_debug_pre(); + if (sanitize_multiboot_info() != 0) { + panic("Multiboot info error!"); + } + init_pcpu_pre(true); init_seed();