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