xref: /DragonOS/kernel/src/arch/riscv64/smp/mod.rs (revision 2b7818e80e00fcfe4d03533f587cc125ea5e4bec)
1 use log::warn;
2 use system_error::SystemError;
3 
4 use crate::smp::{
5     cpu::{CpuHpCpuState, ProcessorId},
6     SMPArch,
7 };
8 
9 pub struct RiscV64SMPArch;
10 
11 impl SMPArch for RiscV64SMPArch {
12     #[inline(never)]
13     fn prepare_cpus() -> Result<(), SystemError> {
14         warn!("RiscV64SMPArch::prepare_cpus() is not implemented");
15         Ok(())
16     }
17 
18     fn start_cpu(_cpu_id: ProcessorId, _hp_state: &CpuHpCpuState) -> Result<(), SystemError> {
19         warn!("RiscV64SMPArch::start_cpu() is not implemented");
20         Ok(())
21     }
22 }
23