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

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")
}

Get a reference to the default SystemConsole instance

Has the HAL has requested an immediate kmain return?

Current CPU

Virtualization

Implementors