Expand description
Re-exports§
pub use sbi::*;
Modules§
- asm
- Assembly wrappers for low-level CPU instructions.
- bits
- Bit-manipulation functions from the riscv crate.
- clint
- Functions to access a global Clint instance.
- console
- JH7110 Console implementation for early boot I/O.
- early_
trap - Early trap handler for interrupts and exceptions.
- ecall
- Functions and types for SBI environment calls (
ECALL). - env_
info - Implementation of the EnvInfo trait.
- exception
- Types and functions for exception and interrupt handling.
- executor
- Main SBI executor implementation.
- fw_
dynamic_ info - Firmware dynamic information
- harts
- HARTs information and helpers.
- hpm
- Represents types and functions for the HPM (Hardware Performance Monitor) subsystem.
- init
- Functions for board initialization.
- ipi
- RustSBI Ipi implementation.
- kernel
- Basic “kernel” integration tests.
- l2pm
- Represents L2 Performance Monitor Event counter configuration and counters.
- pmp
- Physical Memory Protection
- pmu
- PMU extension implementation from the SBI specification §11.
- probe
- Implementation of the
ProbeSBIBaseextension function. - register
- Register types for common RISC-V CSRs.
- rfence
- Implementation of the SBI
RFNCextension. - sbi
- SBI convenience functions wrapping low-level assembly.
- scratch
- Representation of per-HART scratch space.
- timer
- RustSBI Timer implementation.
- tlb
- Implementation of a
Translation Lookaside Bufferfor the SBIRFNCextension. - trap
- Main trap handler impementation.
- version
- Implementation of the
Versionfunctions from the SBIBASEextension.
Macros§
- bitfield_
ops - Convenience macro to define bitfield operations on a user-defined type.
- eprintln
- Serial implementation of the
eprintlnmacro fromcore. - Serial implementation of the
printmacro fromcore. - println
- Serial implementation of the
printlnmacro fromcore.
Enums§
- Error
- Represents error variants for the library.
Constants§
- PER_
HART_ STACK_ SIZE - 16 KiB stack for each HART
- SBI_
STACK_ SIZE - 5 HARTS