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