1 /// 获取当前cpu的id 2 #[inline] 3 pub fn current_cpu_id() -> u32 { 4 unimplemented!("RiscV64 current_cpu_id") 5 } 6 7 /// 重置cpu 8 pub unsafe fn cpu_reset() -> ! { 9 sbi_rt::system_reset(sbi_rt::WarmReboot, sbi_rt::NoReason); 10 unimplemented!("RiscV64 reset failed, manual override expected ...") 11 } 12