xref: /DragonOS/kernel/src/arch/riscv64/cpu.rs (revision 3bc96fa4a9c01d91cddeb152fe78d6408351c29f)
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