mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
Make intel_tdx feature as default
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
4ae59a8f2e
commit
4292ec2ebb
@ -44,8 +44,6 @@ pub mod trap;
|
||||
pub mod user;
|
||||
|
||||
pub use ostd_macros::main;
|
||||
#[cfg(feature = "intel_tdx")]
|
||||
use tdx_guest::init_tdx;
|
||||
|
||||
pub use self::{cpu::cpu_local::CpuLocal, error::Error, prelude::Result};
|
||||
|
||||
@ -60,15 +58,6 @@ pub use self::{cpu::cpu_local::CpuLocal, error::Error, prelude::Result};
|
||||
pub fn init() {
|
||||
arch::before_all_init();
|
||||
|
||||
#[cfg(feature = "intel_tdx")]
|
||||
let td_info = init_tdx().unwrap();
|
||||
#[cfg(feature = "intel_tdx")]
|
||||
early_println!(
|
||||
"td gpaw: {}, td attributes: {:?}\nTDX guest is initialized",
|
||||
td_info.gpaw,
|
||||
td_info.attributes
|
||||
);
|
||||
|
||||
mm::heap_allocator::init();
|
||||
|
||||
boot::init();
|
||||
|
Reference in New Issue
Block a user