mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
Fix both the preempt count atomicity and the CPU-local init problem
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
00b9bf9610
commit
3ae884081f
@ -59,6 +59,9 @@ pub use self::{cpu::cpu_local::CpuLocal, error::Error, prelude::Result};
|
||||
pub fn init() {
|
||||
arch::before_all_init();
|
||||
|
||||
// SAFETY: This function is called only once and only on the BSP.
|
||||
unsafe { cpu::cpu_local::early_init_bsp_local_base() };
|
||||
|
||||
mm::heap_allocator::init();
|
||||
|
||||
boot::init();
|
||||
|
Reference in New Issue
Block a user