xref: /DragonOS/kernel/src/exception/ipi.rs (revision 40314b30ab2a7e1fd06a05a00f693e644e446035)
1 #[allow(dead_code)]
2 #[derive(Debug, Copy, Clone, Eq, PartialEq)]
3 #[repr(u8)]
4 pub enum IpiKind {
5     KickCpu,
6     FlushTLB,
7 }
8 
9 /// IPI投递目标
10 #[derive(Debug, Copy, Clone, Eq, PartialEq)]
11 #[allow(dead_code)]
12 pub enum IpiTarget {
13     /// 当前CPU
14     Current,
15     /// 所有CPU
16     All,
17     /// 除了当前CPU以外的所有CPU
18     Other,
19     /// 指定的CPU
20     Specified(usize),
21 }
22