Enable check of atomic mode

This commit is contained in:
jellllly420
2024-08-22 21:17:38 +08:00
committed by Tate, Hongliang Tian
parent 4231645c02
commit 32a1a53ee7
6 changed files with 58 additions and 16 deletions

View File

@ -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!()
}