Skip to content

riscv: Add new SBI v0.2 extensions support

Bin Meng u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5riscv: Mark existing SBI as v0.1 SBIarch/riscv/include/asm/sbi.h+21 -191 reply
2/5riscv: Add basic support for SBI v0.2arch/riscv/Kconfig arch/riscv/include/asm/sbi.h arch/riscv/lib/Makefile +1 more+243 -791 reply
3/5riscv: Add SBI v0.2 extension definitionsarch/riscv/include/asm/sbi.h+17 -01 reply
4/5riscv: Introduce a new config for SBI v0.1arch/riscv/Kconfig arch/riscv/include/asm/sbi.h arch/riscv/lib/sbi.c+16 -01 reply
5/5riscv: Implement new SBI v0.2 extensionsarch/riscv/include/asm/sbi.h arch/riscv/lib/sbi.c+33 -72 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPragnesh Patel
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] riscv: Add new SBI v0.2 extensions support

The SBI v0.2 introduces a base extension which is backward compatible with v0.1. Implement all helper functions and minimum required SBI calls from v0.2 for now. All other base extension function will be added later as per need.

As v0.2 calling convention is backward compatible with v0.1, remove the v0.1 helper functions and just use v0.2 calling convention.

2 new Kconfig options CONFIG_SBI and CONFIG_SBI_V01 are introduced and turned on by default for S-mode U-Boot. If you want to use SBI v0.2 calling convention, turn off CONFIG_SBI_V01.

This series depends on
http://patchwork.ozlabs.org/project/uboot/list/?series=162772

Bin Meng (5):
riscv: Mark existing SBI as v0.1 SBI
riscv: Add basic support for SBI v0.2
riscv: Add SBI v0.2 extension definitions
riscv: Introduce a new config for SBI v0.1
riscv: Implement new SBI v0.2 extensions

 arch/riscv/Kconfig           |  13 +++
 arch/riscv/include/asm/sbi.h | 168 +++++++++++++++++++++-----------------
 arch/riscv/lib/Makefile      |   1 +
 arch/riscv/lib/sbi.c         | 187 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 297 insertions(+), 72 deletions(-)
 create mode 100644 arch/riscv/lib/sbi.c
Signature · 1 line
2.7.4