1 use system_error::SystemError; 2 3 use crate::arch::CurrentIrqArch; 4 5 use super::InterruptArch; 6 7 /// 初始化中断 8 #[inline(never)] 9 pub fn irq_init() -> Result<(), SystemError> { 10 // todo: 通用初始化 11 12 // 初始化架构相关的中断 13 unsafe { CurrentIrqArch::arch_irq_init() }?; 14 return Ok(()); 15 } 16