mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Enable check of atomic mode
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
4231645c02
commit
32a1a53ee7
@ -30,6 +30,8 @@
|
||||
#![feature(linked_list_retain)]
|
||||
#![register_tool(component_access_control)]
|
||||
|
||||
use core::sync::atomic::Ordering;
|
||||
|
||||
use ostd::{
|
||||
arch::qemu::{exit_qemu, QemuExitCode},
|
||||
boot,
|
||||
@ -80,6 +82,7 @@ pub fn main() {
|
||||
ostd::early_println!("[kernel] OSTD initialized. Preparing components.");
|
||||
component::init_all(component::parse_metadata!()).unwrap();
|
||||
init();
|
||||
ostd::IN_BOOTSTRAP_CONTEXT.store(false, Ordering::Relaxed);
|
||||
Thread::spawn_kernel_thread(ThreadOptions::new(init_thread));
|
||||
unreachable!()
|
||||
}
|
||||
|
Reference in New Issue
Block a user