riscv: add support for supervisor binary interface (SBI)

Hardware / Coreboot - Xiang Wang [126.com] - 5 November 2018 09:04 EST

SBI is runtime service for OS. For an introduction, please refer to https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.md

Change-Id: Ib6c1f21d2f085f02208305dc4e3a0f970d400c27

22e0c560bb riscv: add support for supervisor binary interface (SBI)
src/arch/riscv/Makefile.inc | 2 +
src/arch/riscv/include/sbi.h | 37 +++++++++++++
src/arch/riscv/include/vm.h | 8 +++
src/arch/riscv/sbi.c | 121 ++++++++++++++++++++++++++++++++++++++++++
src/arch/riscv/trap_handler.c | 20 ++++++-
5 files changed, 187 insertions(+), 1 deletion(-)

Upstream: review.coreboot.org


  • Share