Quellcode durchsuchen

remove riscv64 cpu's bootstrap function

Heinz vor 7 Monaten
Ursprung
Commit
03fe491ec6
1 geänderte Dateien mit 0 neuen und 9 gelöschten Zeilen
  1. 0 9
      crates/eonix_hal/src/arch/riscv64/cpu.rs

+ 0 - 9
crates/eonix_hal/src/arch/riscv64/cpu.rs

@@ -57,15 +57,6 @@ impl CPU {
         sscratch::write(TRAP_SCRATCH.as_ptr() as usize);
     }
 
-    /// Boot all other hart.
-    pub unsafe fn bootstrap_cpus(&self) {
-        let total_harts = FDT.hart_count();
-        for i in (0..total_harts).filter(|&i| i != self.cpuid()) {
-            sbi::hsm::hart_start(i, PhysicalAddress::new(0x8020_0078), 0)
-                .expect("Failed to start secondary hart via SBI");
-        }
-    }
-
     pub unsafe fn load_interrupt_stack(self: Pin<&mut Self>, sp: u64) {
         TRAP_SCRATCH
             .as_mut()