1*e2841179SLoGin use crate::smp::cpu::ProcessorId; 2*e2841179SLoGin 34fda81ceSLoGin /// 获取当前cpu的id 44fda81ceSLoGin #[inline] 5*e2841179SLoGin pub fn current_cpu_id() -> ProcessorId { 64fda81ceSLoGin unimplemented!("RiscV64 current_cpu_id") 74fda81ceSLoGin } 84fda81ceSLoGin 94fda81ceSLoGin /// 重置cpu 104fda81ceSLoGin pub unsafe fn cpu_reset() -> ! { 11d14e28a8SLuo Jia / Zhouqi Jiang sbi_rt::system_reset(sbi_rt::WarmReboot, sbi_rt::NoReason); 12d14e28a8SLuo Jia / Zhouqi Jiang unimplemented!("RiscV64 reset failed, manual override expected ...") 134fda81ceSLoGin } 14