arch/riscv: Implement the SBI again

Hardware / Coreboot - Jonathan Neuschäfer [gmx.net] - 23 August 2016 16:47 UTC

Not all SBI calls are implemented, but it's enough to see a couple dozen lines of Linux boot output.

It should also be noted that the SBI is still in flux: https://groups.google.com/a/groups.riscv.org/forum/#!topic/sw-dev/6oNhlW0OFKM

Change-Id: I80e4fe508336d6428ca7136bc388fbc3cda4f1e4

857e33e arch/riscv: Implement the SBI again
src/arch/riscv/Makefile.inc | 1 +
src/arch/riscv/include/arch/sbi.h | 36 +++++++
src/arch/riscv/sbi.S | 117 ++++++++++++++++++++++
src/arch/riscv/trap_handler.c | 43 ++++----
src/arch/riscv/virtual_memory.c | 3 +-
src/mainboard/emulation/spike-riscv/spike_util.c | 22 ++--
6 files changed, 183 insertions(+), 39 deletions(-)

Upstream: review.coreboot.org


  • Share