Pass kernel command line option to logger

This commit is contained in:
Yuke Peng
2024-06-28 13:29:28 +08:00
committed by Tate, Hongliang Tian
parent edc1412cc8
commit cf56bce57c
4 changed files with 46 additions and 19 deletions

View File

@ -59,7 +59,6 @@ pub use self::{cpu::cpu_local::CpuLocal, error::Error, prelude::Result};
/// boot stage only global variables.
pub fn init() {
arch::before_all_init();
logger::init();
#[cfg(feature = "intel_tdx")]
let td_info = init_tdx().unwrap();
@ -73,6 +72,7 @@ pub fn init() {
mm::heap_allocator::init();
boot::init();
logger::init();
mm::page::allocator::init();
mm::kspace::init_boot_page_table();