mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
Make some unsafe
blocks shorter
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
13287c752e
commit
e06509e380
@ -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 {
|
||||
|
Reference in New Issue
Block a user