1 use super::{core::smp_get_processor_id, cpu::ProcessorId, kick_cpu};
2 
3 #[no_mangle]
rs_kick_cpu(cpu_id: u32) -> usize4 pub extern "C" fn rs_kick_cpu(cpu_id: u32) -> usize {
5     return kick_cpu(ProcessorId::new(cpu_id))
6         .map(|_| 0usize)
7         .unwrap_or_else(|e| e.to_posix_errno() as usize);
8 }
9 
10 #[no_mangle]
rs_current_cpu_id() -> i3211 pub extern "C" fn rs_current_cpu_id() -> i32 {
12     return smp_get_processor_id().data() as i32;
13 }
14