/sbi-rs

Rust type and constant definitions for SBI

Primary LanguageRust

Overview

This crate provides interfaces for both implementing(firmware or hypervisor) and using(S and VS mode supervisors) SBI functionality.

Code Layout

SBI definitions

SBI-defined types are in src/<extension_name>.rs. Each file enumerates the functions for the given extension and declares all data types it uses.

API

Interfaces for invoking SBI calls from S-mode are provided in the src/api directory. There is one file per extension.