Trait EnvInfo

Source
pub trait EnvInfo {
    // Required methods
    fn mvendorid(&self) -> usize;
    fn marchid(&self) -> usize;
    fn mimpid(&self) -> usize;
}
Expand description

Machine environment information.

This trait is useful to build an SBI environment when RustSBI is not run directly on RISC-V machine mode.

Required Methods§

Source

fn mvendorid(&self) -> usize

Vendor ID for the supervisor environment.

Provides JEDEC manufacturer ID for the provider of the core.

Source

fn marchid(&self) -> usize

Architecture ID for the supervisor environment.

Encodes the base micro-architecture of the hart.

Source

fn mimpid(&self) -> usize

Implementation ID for the supervisor environment.

Provides a unique encoding for the version of the processor implementation.

Implementations on Foreign Types§

Source§

impl<T: EnvInfo> EnvInfo for &T

Source§

fn mvendorid(&self) -> usize

Source§

fn marchid(&self) -> usize

Source§

fn mimpid(&self) -> usize

Implementors§