xref: /DragonOS/kernel/src/init/mod.rs (revision 886ce28516f9e3e5940840d1ae64ec3e9c8875fa)
1 use crate::libs::rwlock::RwLock;
2 
3 use self::boot::BootParams;
4 pub mod boot;
5 #[allow(clippy::module_inception)]
6 pub mod init;
7 pub mod initcall;
8 pub mod initial_kthread;
9 
10 /// 启动参数
11 static BOOT_PARAMS: RwLock<BootParams> = RwLock::new(BootParams::new());
12 
13 #[inline(always)]
14 pub fn boot_params() -> &'static RwLock<BootParams> {
15     &BOOT_PARAMS
16 }
17 
18 #[inline(never)]
19 fn init_intertrait() {
20     intertrait::init_caster_map();
21 }
22