Trait slos_hal::SystemHardware [−][src]
pub trait SystemHardware: Send + Debug + SystemKmainHooks {
fn system_name(&self) -> &'static str;
fn console(&mut self) -> &'static mut dyn SystemConsole;
fn has_requested_return(&self) -> bool;
fn current_cpu(&mut self) -> &'static mut dyn SystemCpu;
fn virtualization(&self) -> Option<(&'static str, ())>;
}
Expand description
Base system hardware trait
Required methods
fn system_name(&self) -> &'static str
fn system_name(&self) -> &'static str
Name of the crate implementing this system
This method should be implemented as the following:
fn system_name(&self) -> &'static str {
env!("CARGO_PKG_NAME")
}
fn console(&mut self) -> &'static mut dyn SystemConsole
fn console(&mut self) -> &'static mut dyn SystemConsole
Get a reference to the default SystemConsole
instance
fn has_requested_return(&self) -> bool
fn has_requested_return(&self) -> bool
Has the HAL has requested an immediate kmain return?
fn current_cpu(&mut self) -> &'static mut dyn SystemCpu
fn current_cpu(&mut self) -> &'static mut dyn SystemCpu
Current CPU