Skip to content

RISC-V S-mode support

Anup Patel u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: Add kconfig option to run u-boot in S-modearch/riscv/Kconfig arch/riscv/cpu/start.S+37 -00 replies
2/3riscv: qemu: Use different SYS_TEXT_BASE for S-modeboard/emulation/qemu-riscv/Kconfig+2 -10 replies
3/3riscv: Add S-mode defconfigs for QEMU virt machineconfigs/qemu-riscv32-smode_defconfig configs/qemu-riscv64-smode_defconfig+15 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/3] RISC-V S-mode support

This patchset allows us runing u-boot in S-mode.

This is particularly useful on platforms where M-mode runtime firmware is an independent firmware and u-boot is used as last stage OS bootloader.

The patchset is tested on QEMU in both M-mode and S-mode.

Anup Patel (3):
riscv: Add kconfig option to run u-boot in S-mode
riscv: qemu: Use different SYS_TEXT_BASE for S-mode
riscv: Add S-mode defconfigs for QEMU virt machine

 arch/riscv/Kconfig                   |  6 ++++++
 arch/riscv/cpu/start.S               | 31 ++++++++++++++++++++++++++++
 board/emulation/qemu-riscv/Kconfig   |  3 ++-
 configs/qemu-riscv32-smode_defconfig |  7 +++++++
 configs/qemu-riscv64-smode_defconfig |  8 +++++++
 5 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100644 configs/qemu-riscv32-smode_defconfig
 create mode 100644 configs/qemu-riscv64-smode_defconfig
Signature · 1 line
2.17.1