Commit e53deef3 authored by bors[bot]'s avatar bors[bot] Committed by GitHub
Browse files

Merge #104



104: SBI mode r=almindor a=pgraubner

Introducing Supervisor Binary Interface (SBI) compatibility as a build-time feature. Main goal is to allow riscv-rt based implementations to be bootstrapped by a SBI-firmware (like in `qemu-system-riscv64`).

* Introduce compiler switches for assembly in order to switch between machine mode / supervisor mode
* Introduce cargo feature for conditional compilation
* Patch lib.rs for supervisor-mode compatibility

The only interface this PR is braking is `mp_hook`, which needs a mhartid replacement for smode. The hart id is passed by the caller.
Tested with `qemu-system-riscv64`.

See also documentation/features/sbi for further implementation details.

Co-authored-by: default avatarPablo Graubner <2234137+pgraubner@users.noreply.github.com>
parents 93bc7682 68e99b33
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment