os/arch/riscv/kernel/
cpu.rs

1//! RISC-V 架构的 CPU 相关功能
2
3/// 获取当前 CPU 的 ID
4/// TODO: 暂时只支持单核,返回 0
5pub fn cpu_id() -> usize {
6    0
7}