xref: /DragonOS/kernel/src/exception/init.rs (revision ce5850adbf74ec6c6717bbb5b1749f1fbff4ca0d)
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