mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
Use TDVMCALL serial output in the early stages of kernel initialization
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
49e6cd2712
commit
b6cf27507c
@ -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.
|
||||
|
Reference in New Issue
Block a user