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