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