Use TDVMCALL serial output in the early stages of kernel initialization

This commit is contained in:
Hsy-Intel
2025-03-19 19:03:29 +00:00
committed by Tate, Hongliang Tian
parent 49e6cd2712
commit b6cf27507c
5 changed files with 38 additions and 14 deletions

View File

@ -77,7 +77,10 @@ unsafe fn init() {
mm::frame::allocator::init_early_allocator();
}
arch::serial::init();
if_tdx_enabled!({
} else {
arch::serial::init();
});
logger::init();
@ -106,6 +109,10 @@ unsafe fn init() {
unsafe { arch::late_init_on_bsp() };
if_tdx_enabled!({
arch::serial::init();
});
smp::init();
// SAFETY: This function is called only once on the BSP.