Crate sbi[][src]

Expand description

sbi

A Rust wrapper around the RISC-V Supervisor Binary Interface (SBI).

This crate aims to provide an idiomatic Rust interface to all the core extensions of SBI v0.3.0+.

Modules

The base extension contains all the required functions that any conforming SBI implementation must implement. It permits the supervisor to probe for information about the implementation.

The legacy extensions are deprecated in favor of the other extensions. However, the legacy console extensions have no replacement, and so are provided here.

The system reset extension permits the supervisor to manage system power state.

The timer extension permits the supervisor to program the clock for the next timer event.

Structs

A raw value returned from an SBI call.

Enums

A standard error returned from an SBI call.

Functions

The ecall instruction is used to make SBI calls. This function is exposed to allow access to experimental, vendor-specific, and firmware-specific SBI extensions. For core extensions, you should prefer using the functions in the individual modules of this crate.