Make some unsafe blocks shorter

This commit is contained in:
Ruihan Li
2025-04-18 12:03:58 +08:00
committed by Tate, Hongliang Tian
parent 13287c752e
commit e06509e380
4 changed files with 16 additions and 31 deletions

View File

@ -78,9 +78,8 @@ unsafe fn init() {
// SAFETY: This function is called only once, before `allocator::init`
// and after memory regions are initialized.
unsafe {
mm::frame::allocator::init_early_allocator();
}
unsafe { mm::frame::allocator::init_early_allocator() };
#[cfg(target_arch = "x86_64")]
arch::if_tdx_enabled!({
} else {