1 2 3 4 5 6 7 8 9 10 11
use alloc::string::String; use crate::println; pub trait CpuDriver { fn cpu_reset(&mut self) -> !; fn cpu_panic(&mut self, panic_info: String) -> ! { println!("Panic: {}", panic_info); loop {} } }