xref: /DragonOS/kernel/src/smp/core.rs (revision 66f67c6a95b8aad85cfd2146a86e5e3e6a3568e7)
1 /// @brief 获取当前的cpu id
2 #[inline]
3 pub fn smp_get_processor_id() -> u32 {
4     if cfg!(x86_64) {
5         return crate::arch::x86_64::cpu::arch_current_apic_id() as u32;
6     } else {
7         255
8     }
9 }
10 
11 #[inline]
12 pub fn smp_send_reschedule(_cpu: u32) {
13     // todo:
14 }
15