xref: /DragonOS/kernel/src/arch/riscv64/smp/mod.rs (revision c635d8a9cfe25bc11779f323ef0c7d7a0f597d4a)
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