Re:RISC-V SBI and the full boot process
by ruslan on Monday September 11, 2023 @04:15AM
(#37464372)
I would like to read a brief review of OpenSBI functions, or a rather minimum required set to get Linux like OS to run. How much Linux kernel depends on supervisor ? Also, worth pointing that there's U-Boot which also does some hardware initialization on which kernel relies on.
[ Parent
| on HN ]
Re:RISC-V SBI and the full boot process
by Taniwha on Monday September 11, 2023 @05:32AM
(#37464813)
UBoot typically runs in supervisor mode while OpenSBI runs in machine mode (as would OPTEE) - OpenSBI's (and OPTEE's) memory is locked behind a PMAP block so it can't be hacked from supervisor mode
If your riscv core has hypervisor support that sits between machine mode and supervisor modes
Re:RISC-V SBI and the full boot process
by synergy20 on Tuesday September 12, 2023 @09:34AM
(#37480964)
isn's OpenSBI's S means 'supervisor' mode? so OpenSBI is supposed to be in supervisor mode?
Re:RISC-V SBI and the full boot process
by Taniwha on Tuesday September 12, 2023 @06:58PM
(#37489786)
Nope, it runs in machine mode (I've ported it) - the S does stand for Supervisor, but I guess that's because it supervises the system
Re:RISC-V SBI and the full boot process
by brucehoult on Wednesday September 13, 2023 @08:41AM
(#37495968)
SBI is the ABI for the Supervisor to call to get certain services that can't be done in S mode.
The SBI spec[0] is not a long read.